@grapadigital/shared-schemas 1.0.241 → 1.1.0
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 +42 -42
- package/dist/schemas/action.schema.d.ts +13 -38
- package/dist/schemas/action.schema.js +81 -64
- package/dist/schemas/assignment.schema.d.ts +6 -31
- package/dist/schemas/assignment.schema.js +44 -44
- package/dist/schemas/benchmark.schema.d.ts +5 -30
- package/dist/schemas/benchmark.schema.js +11 -6
- package/dist/schemas/campaign.schema.d.ts +4 -29
- package/dist/schemas/campaign.schema.js +4 -4
- package/dist/schemas/client.schema.d.ts +30 -91
- package/dist/schemas/client.schema.js +73 -71
- package/dist/schemas/comment.schema.d.ts +9 -34
- package/dist/schemas/comment.schema.js +42 -37
- package/dist/schemas/commission.schema.d.ts +7 -32
- package/dist/schemas/commission.schema.js +10 -10
- package/dist/schemas/content-capture-process.schema.d.ts +12 -37
- package/dist/schemas/content-capture-process.schema.js +24 -17
- package/dist/schemas/content-draft.schema.d.ts +4 -29
- package/dist/schemas/content-draft.schema.js +5 -5
- package/dist/schemas/content.schema.d.ts +20 -45
- package/dist/schemas/content.schema.js +84 -74
- package/dist/schemas/contract.schema.d.ts +5 -30
- package/dist/schemas/contract.schema.js +5 -5
- package/dist/schemas/creative.schema.d.ts +11 -36
- package/dist/schemas/creative.schema.js +22 -31
- package/dist/schemas/export-comments-job.schema.d.ts +4 -29
- package/dist/schemas/export-comments-job.schema.js +6 -6
- package/dist/schemas/group.schema.d.ts +2 -27
- package/dist/schemas/group.schema.js +5 -5
- package/dist/schemas/influencer.schema.d.ts +12 -37
- package/dist/schemas/influencer.schema.js +16 -18
- package/dist/schemas/invoice.schema.d.ts +6 -31
- package/dist/schemas/invoice.schema.js +42 -32
- package/dist/schemas/job.schema.d.ts +4 -29
- package/dist/schemas/job.schema.js +14 -14
- package/dist/schemas/lead.schema.d.ts +15 -40
- package/dist/schemas/lead.schema.js +67 -64
- package/dist/schemas/log.schema.d.ts +3 -28
- package/dist/schemas/log.schema.js +24 -24
- package/dist/schemas/note.schema.d.ts +3 -28
- package/dist/schemas/note.schema.js +9 -9
- package/dist/schemas/notifications.schema.d.ts +3 -28
- package/dist/schemas/notifications.schema.js +8 -8
- package/dist/schemas/organization.schema.d.ts +2 -27
- package/dist/schemas/organization.schema.js +4 -4
- package/dist/schemas/party.schema.d.ts +6 -31
- package/dist/schemas/party.schema.js +11 -11
- package/dist/schemas/payment.schema.d.ts +20 -45
- package/dist/schemas/payment.schema.js +63 -54
- package/dist/schemas/profile.schema.d.ts +5 -30
- package/dist/schemas/profile.schema.js +6 -6
- package/dist/schemas/project.schema.d.ts +9 -34
- package/dist/schemas/project.schema.js +13 -13
- package/dist/schemas/prospect.schema.d.ts +6 -31
- package/dist/schemas/prospect.schema.js +9 -9
- package/dist/schemas/recruitment.schema.d.ts +19 -44
- package/dist/schemas/recruitment.schema.js +36 -36
- package/dist/schemas/responsible.schema.d.ts +1 -27
- package/dist/schemas/responsible.schema.js +6 -6
- package/dist/schemas/sale.schema.d.ts +19 -44
- package/dist/schemas/sale.schema.js +43 -51
- package/dist/schemas/script.schema.d.ts +11 -36
- package/dist/schemas/script.schema.js +21 -30
- package/dist/schemas/snapshot.schema.d.ts +5 -30
- package/dist/schemas/snapshot.schema.js +6 -6
- package/dist/schemas/store-visit.schema.d.ts +3 -28
- package/dist/schemas/store-visit.schema.js +21 -17
- package/dist/schemas/store.schema.d.ts +5 -30
- package/dist/schemas/store.schema.js +8 -8
- package/dist/schemas/supplier.schema.d.ts +4 -29
- package/dist/schemas/supplier.schema.js +3 -3
- package/dist/schemas/tag.schema.d.ts +2 -27
- package/dist/schemas/tag.schema.js +5 -5
- package/dist/schemas/task.schema.d.ts +11 -36
- package/dist/schemas/task.schema.js +67 -67
- package/dist/schemas/token.schema.d.ts +3 -28
- package/dist/schemas/token.schema.js +3 -3
- package/dist/schemas/trigger.schema.d.ts +3 -28
- package/dist/schemas/trigger.schema.js +5 -5
- package/dist/schemas/user.schema.d.ts +3 -28
- package/dist/schemas/user.schema.js +7 -7
- package/dist/schemas/webhook.schema.d.ts +6 -31
- package/dist/schemas/webhook.schema.js +10 -10
- package/dist/utils/merge-metrics-breakdown.util.d.ts +1 -1
- package/dist/utils/merge-metrics-breakdown.util.js +7 -2
- package/dist/utils/normalize-content-link.util.js +7 -7
- package/package.json +29 -16
- package/.eslintrc.json +0 -28
- package/.prettierrc +0 -4
- package/dist/schemas/profile-followers-snapshot.schema.d.ts +0 -67
- package/dist/schemas/profile-followers-snapshot.schema.js +0 -65
- package/dist/schemas/schedule.schema.d.ts +0 -73
- package/dist/schemas/schedule.schema.js +0 -116
- package/dist/utils/cost-per-impact.util.d.ts +0 -37
- package/dist/utils/cost-per-impact.util.js +0 -72
- package/dist/utils/influencer-contract.util.d.ts +0 -32
- package/dist/utils/influencer-contract.util.js +0 -77
- package/docs/code-review.md +0 -27
- package/docs/constitution.md +0 -75
- package/docs/specs/GD-692.md +0 -112
- package/docs/specs/GD-761.md +0 -94
- package/index.d.ts +0 -3
- package/src/index.ts +0 -42
- package/src/schemas/action.schema.ts +0 -328
- package/src/schemas/assignment.schema.ts +0 -154
- package/src/schemas/benchmark.schema.ts +0 -39
- package/src/schemas/campaign.schema.ts +0 -38
- package/src/schemas/client.schema.ts +0 -319
- package/src/schemas/comment.schema.ts +0 -216
- package/src/schemas/commission.schema.ts +0 -108
- package/src/schemas/content-capture-process.schema.ts +0 -195
- package/src/schemas/content-draft.schema.ts +0 -49
- package/src/schemas/content.schema.ts +0 -688
- package/src/schemas/contract.schema.ts +0 -44
- package/src/schemas/creative.schema.ts +0 -256
- package/src/schemas/export-comments-job.schema.ts +0 -59
- package/src/schemas/group.schema.ts +0 -23
- package/src/schemas/influencer.schema.ts +0 -184
- package/src/schemas/invoice.schema.ts +0 -164
- package/src/schemas/job.schema.ts +0 -111
- package/src/schemas/lead.schema.ts +0 -372
- package/src/schemas/log.schema.ts +0 -91
- package/src/schemas/note.schema.ts +0 -34
- package/src/schemas/notifications.schema.ts +0 -61
- package/src/schemas/organization.schema.ts +0 -29
- package/src/schemas/party.schema.ts +0 -65
- package/src/schemas/payment.schema.ts +0 -275
- package/src/schemas/profile.schema.ts +0 -77
- package/src/schemas/project.schema.ts +0 -116
- package/src/schemas/prospect.schema.ts +0 -62
- package/src/schemas/recruitment.schema.ts +0 -277
- package/src/schemas/responsible.schema.ts +0 -27
- package/src/schemas/sale.schema.ts +0 -297
- package/src/schemas/script.schema.ts +0 -235
- package/src/schemas/snapshot.schema.ts +0 -55
- package/src/schemas/store-visit.schema.ts +0 -68
- package/src/schemas/store.schema.ts +0 -52
- package/src/schemas/supplier.schema.ts +0 -12
- package/src/schemas/tag.schema.ts +0 -26
- package/src/schemas/task.schema.ts +0 -205
- package/src/schemas/token.schema.ts +0 -42
- package/src/schemas/trigger.schema.ts +0 -48
- package/src/schemas/user.schema.ts +0 -59
- package/src/schemas/webhook.schema.ts +0 -81
- package/src/utils/merge-metrics-breakdown.util.ts +0 -51
- package/src/utils/normalize-content-link.util.ts +0 -31
- package/tsconfig.build.json +0 -5
- package/tsconfig.json +0 -29
|
@@ -15,6 +15,7 @@ const mongoose_2 = require("mongoose");
|
|
|
15
15
|
const normalize_content_link_util_1 = require("../utils/normalize-content-link.util");
|
|
16
16
|
let SentimentComment = class SentimentComment {
|
|
17
17
|
};
|
|
18
|
+
exports.SentimentComment = SentimentComment;
|
|
18
19
|
__decorate([
|
|
19
20
|
(0, mongoose_1.Prop)({ type: String, required: false }),
|
|
20
21
|
__metadata("design:type", String)
|
|
@@ -27,13 +28,13 @@ __decorate([
|
|
|
27
28
|
(0, mongoose_1.Prop)({ type: String, required: false }),
|
|
28
29
|
__metadata("design:type", String)
|
|
29
30
|
], SentimentComment.prototype, "comment_text", void 0);
|
|
30
|
-
SentimentComment = __decorate([
|
|
31
|
+
exports.SentimentComment = SentimentComment = __decorate([
|
|
31
32
|
(0, mongoose_1.Schema)({ _id: false })
|
|
32
33
|
], SentimentComment);
|
|
33
|
-
exports.SentimentComment = SentimentComment;
|
|
34
34
|
exports.SentimentCommentSchema = mongoose_1.SchemaFactory.createForClass(SentimentComment);
|
|
35
35
|
let WordCloud = class WordCloud {
|
|
36
36
|
};
|
|
37
|
+
exports.WordCloud = WordCloud;
|
|
37
38
|
__decorate([
|
|
38
39
|
(0, mongoose_1.Prop)({ type: [String], required: false, default: [] }),
|
|
39
40
|
__metadata("design:type", Array)
|
|
@@ -46,13 +47,13 @@ __decorate([
|
|
|
46
47
|
(0, mongoose_1.Prop)({ type: [String], required: false, default: [] }),
|
|
47
48
|
__metadata("design:type", Array)
|
|
48
49
|
], WordCloud.prototype, "neutral", void 0);
|
|
49
|
-
WordCloud = __decorate([
|
|
50
|
+
exports.WordCloud = WordCloud = __decorate([
|
|
50
51
|
(0, mongoose_1.Schema)({ _id: false })
|
|
51
52
|
], WordCloud);
|
|
52
|
-
exports.WordCloud = WordCloud;
|
|
53
53
|
exports.WordCloudSchema = mongoose_1.SchemaFactory.createForClass(WordCloud);
|
|
54
54
|
let SentimentScore = class SentimentScore {
|
|
55
55
|
};
|
|
56
|
+
exports.SentimentScore = SentimentScore;
|
|
56
57
|
__decorate([
|
|
57
58
|
(0, mongoose_1.Prop)({ type: Number, required: false, default: null }),
|
|
58
59
|
__metadata("design:type", Object)
|
|
@@ -65,13 +66,13 @@ __decorate([
|
|
|
65
66
|
(0, mongoose_1.Prop)({ type: Number, required: false, default: null }),
|
|
66
67
|
__metadata("design:type", Object)
|
|
67
68
|
], SentimentScore.prototype, "neutral", void 0);
|
|
68
|
-
SentimentScore = __decorate([
|
|
69
|
+
exports.SentimentScore = SentimentScore = __decorate([
|
|
69
70
|
(0, mongoose_1.Schema)({ _id: false })
|
|
70
71
|
], SentimentScore);
|
|
71
|
-
exports.SentimentScore = SentimentScore;
|
|
72
72
|
exports.SentimentScoreSchema = mongoose_1.SchemaFactory.createForClass(SentimentScore);
|
|
73
73
|
let SentimentAnalysis = class SentimentAnalysis {
|
|
74
74
|
};
|
|
75
|
+
exports.SentimentAnalysis = SentimentAnalysis;
|
|
75
76
|
__decorate([
|
|
76
77
|
(0, mongoose_1.Prop)({ type: [exports.SentimentCommentSchema], required: false, default: [] }),
|
|
77
78
|
__metadata("design:type", Array)
|
|
@@ -96,13 +97,13 @@ __decorate([
|
|
|
96
97
|
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.Mixed, required: false, default: null }),
|
|
97
98
|
__metadata("design:type", Object)
|
|
98
99
|
], SentimentAnalysis.prototype, "reactions", void 0);
|
|
99
|
-
SentimentAnalysis = __decorate([
|
|
100
|
+
exports.SentimentAnalysis = SentimentAnalysis = __decorate([
|
|
100
101
|
(0, mongoose_1.Schema)({ _id: false })
|
|
101
102
|
], SentimentAnalysis);
|
|
102
|
-
exports.SentimentAnalysis = SentimentAnalysis;
|
|
103
103
|
exports.SentimentAnalysisSchema = mongoose_1.SchemaFactory.createForClass(SentimentAnalysis);
|
|
104
104
|
let Metrics = class Metrics {
|
|
105
105
|
};
|
|
106
|
+
exports.Metrics = Metrics;
|
|
106
107
|
__decorate([
|
|
107
108
|
(0, mongoose_1.Prop)({ type: Number, required: false, default: null }),
|
|
108
109
|
__metadata("design:type", Object)
|
|
@@ -243,48 +244,48 @@ __decorate([
|
|
|
243
244
|
(0, mongoose_1.Prop)({ type: Boolean, required: false, default: null }),
|
|
244
245
|
__metadata("design:type", Object)
|
|
245
246
|
], Metrics.prototype, "isViral", void 0);
|
|
246
|
-
Metrics = __decorate([
|
|
247
|
+
exports.Metrics = Metrics = __decorate([
|
|
247
248
|
(0, mongoose_1.Schema)({ _id: false })
|
|
248
249
|
], Metrics);
|
|
249
|
-
exports.Metrics = Metrics;
|
|
250
250
|
exports.MetricsSchema = mongoose_1.SchemaFactory.createForClass(Metrics);
|
|
251
251
|
/** Coautor do post (Colab), com os seguidores dele no momento do post. Ver GD-703. */
|
|
252
252
|
let ContentCollab = class ContentCollab {
|
|
253
253
|
};
|
|
254
|
+
exports.ContentCollab = ContentCollab;
|
|
254
255
|
__decorate([
|
|
255
|
-
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, ref:
|
|
256
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, ref: "Profile", required: true }),
|
|
256
257
|
__metadata("design:type", Object)
|
|
257
258
|
], ContentCollab.prototype, "profile", void 0);
|
|
258
259
|
__decorate([
|
|
259
260
|
(0, mongoose_1.Prop)({ type: Number, required: false, default: null }),
|
|
260
261
|
__metadata("design:type", Object)
|
|
261
262
|
], ContentCollab.prototype, "followersAtPost", void 0);
|
|
262
|
-
ContentCollab = __decorate([
|
|
263
|
+
exports.ContentCollab = ContentCollab = __decorate([
|
|
263
264
|
(0, mongoose_1.Schema)({ _id: false })
|
|
264
265
|
], ContentCollab);
|
|
265
|
-
exports.ContentCollab = ContentCollab;
|
|
266
266
|
exports.ContentCollabSchema = mongoose_1.SchemaFactory.createForClass(ContentCollab);
|
|
267
267
|
/** Chaves brutas de Metrics que têm parte Orgânica e Impulsionada. Ver GD-707. */
|
|
268
268
|
exports.CONTENT_BASE_METRIC_KEYS = [
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
269
|
+
"impressionCount",
|
|
270
|
+
"reachCount",
|
|
271
|
+
"likeCount",
|
|
272
|
+
"commentCount",
|
|
273
|
+
"savedCount",
|
|
274
|
+
"shareCount",
|
|
275
|
+
"storyCount",
|
|
276
|
+
"tapBackCount",
|
|
277
|
+
"clickCount",
|
|
278
|
+
"replyCount",
|
|
279
|
+
"tapForwardCount",
|
|
280
|
+
"swipeForwardCount",
|
|
281
|
+
"exitCount",
|
|
282
|
+
"favoriteCount",
|
|
283
|
+
"dislikeCount",
|
|
284
|
+
"earnedMediaValue",
|
|
285
285
|
];
|
|
286
286
|
let ContentBaseMetrics = class ContentBaseMetrics {
|
|
287
287
|
};
|
|
288
|
+
exports.ContentBaseMetrics = ContentBaseMetrics;
|
|
288
289
|
__decorate([
|
|
289
290
|
(0, mongoose_1.Prop)({ type: Number, required: false, default: null }),
|
|
290
291
|
__metadata("design:type", Object)
|
|
@@ -349,14 +350,14 @@ __decorate([
|
|
|
349
350
|
(0, mongoose_1.Prop)({ type: Number, required: false, default: null }),
|
|
350
351
|
__metadata("design:type", Object)
|
|
351
352
|
], ContentBaseMetrics.prototype, "earnedMediaValue", void 0);
|
|
352
|
-
ContentBaseMetrics = __decorate([
|
|
353
|
+
exports.ContentBaseMetrics = ContentBaseMetrics = __decorate([
|
|
353
354
|
(0, mongoose_1.Schema)({ _id: false })
|
|
354
355
|
], ContentBaseMetrics);
|
|
355
|
-
exports.ContentBaseMetrics = ContentBaseMetrics;
|
|
356
356
|
exports.ContentBaseMetricsSchema = mongoose_1.SchemaFactory.createForClass(ContentBaseMetrics);
|
|
357
357
|
/** Divisão Orgânico e Impulsionado; o total em Content.metrics é sempre a soma. Ver GD-707. */
|
|
358
358
|
let ContentMetricsBreakdown = class ContentMetricsBreakdown {
|
|
359
359
|
};
|
|
360
|
+
exports.ContentMetricsBreakdown = ContentMetricsBreakdown;
|
|
360
361
|
__decorate([
|
|
361
362
|
(0, mongoose_1.Prop)({ type: exports.ContentBaseMetricsSchema, required: false, default: () => ({}) }),
|
|
362
363
|
__metadata("design:type", ContentBaseMetrics)
|
|
@@ -365,10 +366,9 @@ __decorate([
|
|
|
365
366
|
(0, mongoose_1.Prop)({ type: exports.ContentBaseMetricsSchema, required: false, default: () => ({}) }),
|
|
366
367
|
__metadata("design:type", ContentBaseMetrics)
|
|
367
368
|
], ContentMetricsBreakdown.prototype, "boosted", void 0);
|
|
368
|
-
ContentMetricsBreakdown = __decorate([
|
|
369
|
+
exports.ContentMetricsBreakdown = ContentMetricsBreakdown = __decorate([
|
|
369
370
|
(0, mongoose_1.Schema)({ _id: false })
|
|
370
371
|
], ContentMetricsBreakdown);
|
|
371
|
-
exports.ContentMetricsBreakdown = ContentMetricsBreakdown;
|
|
372
372
|
exports.ContentMetricsBreakdownSchema = mongoose_1.SchemaFactory.createForClass(ContentMetricsBreakdown);
|
|
373
373
|
/**
|
|
374
374
|
* Dados do vídeo para o VCR. Views não ficam aqui: impressões e views são
|
|
@@ -376,6 +376,7 @@ exports.ContentMetricsBreakdownSchema = mongoose_1.SchemaFactory.createForClass(
|
|
|
376
376
|
*/
|
|
377
377
|
let ContentVideo = class ContentVideo {
|
|
378
378
|
};
|
|
379
|
+
exports.ContentVideo = ContentVideo;
|
|
379
380
|
__decorate([
|
|
380
381
|
(0, mongoose_1.Prop)({ type: Number, required: false, default: null }),
|
|
381
382
|
__metadata("design:type", Object)
|
|
@@ -388,13 +389,13 @@ __decorate([
|
|
|
388
389
|
(0, mongoose_1.Prop)({ type: Number, required: false, default: null }),
|
|
389
390
|
__metadata("design:type", Object)
|
|
390
391
|
], ContentVideo.prototype, "videoCompletionRate", void 0);
|
|
391
|
-
ContentVideo = __decorate([
|
|
392
|
+
exports.ContentVideo = ContentVideo = __decorate([
|
|
392
393
|
(0, mongoose_1.Schema)({ _id: false })
|
|
393
394
|
], ContentVideo);
|
|
394
|
-
exports.ContentVideo = ContentVideo;
|
|
395
395
|
exports.ContentVideoSchema = mongoose_1.SchemaFactory.createForClass(ContentVideo);
|
|
396
396
|
let ContentMetricsHistoryEntry = class ContentMetricsHistoryEntry {
|
|
397
397
|
};
|
|
398
|
+
exports.ContentMetricsHistoryEntry = ContentMetricsHistoryEntry;
|
|
398
399
|
__decorate([
|
|
399
400
|
(0, mongoose_1.Prop)({ type: exports.MetricsSchema, required: true }),
|
|
400
401
|
__metadata("design:type", Metrics)
|
|
@@ -403,15 +404,15 @@ __decorate([
|
|
|
403
404
|
(0, mongoose_1.Prop)({ type: Date, required: true, default: Date.now }),
|
|
404
405
|
__metadata("design:type", Date)
|
|
405
406
|
], ContentMetricsHistoryEntry.prototype, "recordedAt", void 0);
|
|
406
|
-
ContentMetricsHistoryEntry = __decorate([
|
|
407
|
+
exports.ContentMetricsHistoryEntry = ContentMetricsHistoryEntry = __decorate([
|
|
407
408
|
(0, mongoose_1.Schema)({ _id: false })
|
|
408
409
|
], ContentMetricsHistoryEntry);
|
|
409
|
-
exports.ContentMetricsHistoryEntry = ContentMetricsHistoryEntry;
|
|
410
410
|
exports.ContentMetricsHistoryEntrySchema = mongoose_1.SchemaFactory.createForClass(ContentMetricsHistoryEntry);
|
|
411
411
|
/** Métricas estimadas pelo porte do perfil, para quando a rede não informa. Ver GD-751. */
|
|
412
412
|
// null é valor válido (sem estimativa): required recusaria null no create.
|
|
413
413
|
let EstimatedMetrics = class EstimatedMetrics {
|
|
414
414
|
};
|
|
415
|
+
exports.EstimatedMetrics = EstimatedMetrics;
|
|
415
416
|
__decorate([
|
|
416
417
|
(0, mongoose_1.Prop)({ type: Number, required: false, default: null }),
|
|
417
418
|
__metadata("design:type", Object)
|
|
@@ -428,41 +429,41 @@ __decorate([
|
|
|
428
429
|
(0, mongoose_1.Prop)({ type: Number, required: false, default: null }),
|
|
429
430
|
__metadata("design:type", Object)
|
|
430
431
|
], EstimatedMetrics.prototype, "engagementRate", void 0);
|
|
431
|
-
EstimatedMetrics = __decorate([
|
|
432
|
+
exports.EstimatedMetrics = EstimatedMetrics = __decorate([
|
|
432
433
|
(0, mongoose_1.Schema)({ _id: false })
|
|
433
434
|
], EstimatedMetrics);
|
|
434
|
-
exports.EstimatedMetrics = EstimatedMetrics;
|
|
435
435
|
exports.EstimatedMetricsSchema = mongoose_1.SchemaFactory.createForClass(EstimatedMetrics);
|
|
436
436
|
// error: captura de comentários falhou ou a classificação falhou por inteiro.
|
|
437
437
|
// partial_error: parte dos comentários não foi classificada. Nenhum dos dois
|
|
438
438
|
// volta sozinho pro pipeline — só por reenvio manual (aprovação).
|
|
439
439
|
exports.CONTENT_STATUS_VALUES = [
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
440
|
+
"pending",
|
|
441
|
+
"approved",
|
|
442
|
+
"deleted",
|
|
443
|
+
"processing",
|
|
444
|
+
"classified",
|
|
445
|
+
"error",
|
|
446
|
+
"partial_error",
|
|
447
447
|
];
|
|
448
448
|
// Status que entram em relatórios/KPIs (pending e deleted ficam de fora). error
|
|
449
449
|
// e partial_error entram: as métricas da Primetag são válidas, só os
|
|
450
450
|
// comentários ficaram incompletos.
|
|
451
451
|
exports.CONTENT_REPORTABLE_STATUS_VALUES = [
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
452
|
+
"approved",
|
|
453
|
+
"processing",
|
|
454
|
+
"classified",
|
|
455
|
+
"error",
|
|
456
|
+
"partial_error",
|
|
457
457
|
];
|
|
458
|
-
exports.CONTENT_COMMENT_COUNT_SOURCE_VALUES = [
|
|
459
|
-
exports.CONTENT_METRICS_SOURCE_VALUES = [
|
|
458
|
+
exports.CONTENT_COMMENT_COUNT_SOURCE_VALUES = ["primetag", "exportcomments"];
|
|
459
|
+
exports.CONTENT_METRICS_SOURCE_VALUES = ["real", "organic", "estimated"];
|
|
460
460
|
/** Quem criou o Conteúdo (metricsFile = Métricas por arquivo, ainda sem uso). Ver GD-767. */
|
|
461
|
-
exports.CONTENT_ORIGIN_VALUES = [
|
|
461
|
+
exports.CONTENT_ORIGIN_VALUES = ["primetag", "manual", "tagger", "metricsFile"];
|
|
462
462
|
/** Origem do Tipo e da Fase: auto = regra da captura, manual = quem revisou. Ver GD-691. */
|
|
463
|
-
exports.CONTENT_CLASSIFICATION_SOURCE_VALUES = [
|
|
463
|
+
exports.CONTENT_CLASSIFICATION_SOURCE_VALUES = ["auto", "manual"];
|
|
464
464
|
let ContentStatusChangedBy = class ContentStatusChangedBy {
|
|
465
465
|
};
|
|
466
|
+
exports.ContentStatusChangedBy = ContentStatusChangedBy;
|
|
466
467
|
__decorate([
|
|
467
468
|
(0, mongoose_1.Prop)({ type: String, required: false }),
|
|
468
469
|
__metadata("design:type", String)
|
|
@@ -475,19 +476,19 @@ __decorate([
|
|
|
475
476
|
(0, mongoose_1.Prop)({ type: String, required: false }),
|
|
476
477
|
__metadata("design:type", String)
|
|
477
478
|
], ContentStatusChangedBy.prototype, "email", void 0);
|
|
478
|
-
ContentStatusChangedBy = __decorate([
|
|
479
|
+
exports.ContentStatusChangedBy = ContentStatusChangedBy = __decorate([
|
|
479
480
|
(0, mongoose_1.Schema)({ _id: false })
|
|
480
481
|
], ContentStatusChangedBy);
|
|
481
|
-
exports.ContentStatusChangedBy = ContentStatusChangedBy;
|
|
482
482
|
exports.ContentStatusChangedBySchema = mongoose_1.SchemaFactory.createForClass(ContentStatusChangedBy);
|
|
483
483
|
let Content = class Content {
|
|
484
484
|
};
|
|
485
|
+
exports.Content = Content;
|
|
485
486
|
__decorate([
|
|
486
487
|
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, auto: true, required: false }),
|
|
487
488
|
__metadata("design:type", mongoose_2.Types.ObjectId)
|
|
488
489
|
], Content.prototype, "_id", void 0);
|
|
489
490
|
__decorate([
|
|
490
|
-
(0, mongoose_1.Prop)({ type: String, required: false, default:
|
|
491
|
+
(0, mongoose_1.Prop)({ type: String, required: false, default: "" }),
|
|
491
492
|
__metadata("design:type", String)
|
|
492
493
|
], Content.prototype, "caption", void 0);
|
|
493
494
|
__decorate([
|
|
@@ -497,7 +498,7 @@ __decorate([
|
|
|
497
498
|
__decorate([
|
|
498
499
|
(0, mongoose_1.Prop)({
|
|
499
500
|
type: String,
|
|
500
|
-
enum: [
|
|
501
|
+
enum: ["reel", "image", "carousel", "story", "video", "post", "pin", "tweet"],
|
|
501
502
|
required: true,
|
|
502
503
|
}),
|
|
503
504
|
__metadata("design:type", String)
|
|
@@ -505,7 +506,7 @@ __decorate([
|
|
|
505
506
|
__decorate([
|
|
506
507
|
(0, mongoose_1.Prop)({
|
|
507
508
|
type: String,
|
|
508
|
-
enum: [
|
|
509
|
+
enum: ["withTag", "withoutTag", "brandExposure"],
|
|
509
510
|
required: true,
|
|
510
511
|
}),
|
|
511
512
|
__metadata("design:type", String)
|
|
@@ -513,7 +514,7 @@ __decorate([
|
|
|
513
514
|
__decorate([
|
|
514
515
|
(0, mongoose_1.Prop)({
|
|
515
516
|
type: String,
|
|
516
|
-
enum: [
|
|
517
|
+
enum: ["instagram", "tiktok", "youtube", "pinterest", "linkedin", "twitter", "facebook"],
|
|
517
518
|
required: true,
|
|
518
519
|
}),
|
|
519
520
|
__metadata("design:type", String)
|
|
@@ -523,7 +524,7 @@ __decorate([
|
|
|
523
524
|
type: String,
|
|
524
525
|
enum: exports.CONTENT_STATUS_VALUES,
|
|
525
526
|
required: true,
|
|
526
|
-
default:
|
|
527
|
+
default: "pending",
|
|
527
528
|
}),
|
|
528
529
|
__metadata("design:type", String)
|
|
529
530
|
], Content.prototype, "status", void 0);
|
|
@@ -552,11 +553,11 @@ __decorate([
|
|
|
552
553
|
__metadata("design:type", Object)
|
|
553
554
|
], Content.prototype, "approvedBy", void 0);
|
|
554
555
|
__decorate([
|
|
555
|
-
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, ref:
|
|
556
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, ref: "Profile", required: true }),
|
|
556
557
|
__metadata("design:type", Object)
|
|
557
558
|
], Content.prototype, "profile", void 0);
|
|
558
559
|
__decorate([
|
|
559
|
-
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, ref:
|
|
560
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, ref: "Action", required: true }),
|
|
560
561
|
__metadata("design:type", Object)
|
|
561
562
|
], Content.prototype, "action", void 0);
|
|
562
563
|
__decorate([
|
|
@@ -664,7 +665,12 @@ __decorate([
|
|
|
664
665
|
__metadata("design:type", Object)
|
|
665
666
|
], Content.prototype, "isOrganic", void 0);
|
|
666
667
|
__decorate([
|
|
667
|
-
(0, mongoose_1.Prop)({
|
|
668
|
+
(0, mongoose_1.Prop)({
|
|
669
|
+
type: String,
|
|
670
|
+
enum: exports.CONTENT_CLASSIFICATION_SOURCE_VALUES,
|
|
671
|
+
required: false,
|
|
672
|
+
default: null,
|
|
673
|
+
}),
|
|
668
674
|
__metadata("design:type", Object)
|
|
669
675
|
], Content.prototype, "isOrganicSource", void 0);
|
|
670
676
|
__decorate([
|
|
@@ -672,7 +678,12 @@ __decorate([
|
|
|
672
678
|
__metadata("design:type", Object)
|
|
673
679
|
], Content.prototype, "phase", void 0);
|
|
674
680
|
__decorate([
|
|
675
|
-
(0, mongoose_1.Prop)({
|
|
681
|
+
(0, mongoose_1.Prop)({
|
|
682
|
+
type: String,
|
|
683
|
+
enum: exports.CONTENT_CLASSIFICATION_SOURCE_VALUES,
|
|
684
|
+
required: false,
|
|
685
|
+
default: null,
|
|
686
|
+
}),
|
|
676
687
|
__metadata("design:type", Object)
|
|
677
688
|
], Content.prototype, "phaseSource", void 0);
|
|
678
689
|
__decorate([
|
|
@@ -687,15 +698,14 @@ __decorate([
|
|
|
687
698
|
(0, mongoose_1.Prop)({ type: Date, required: false, default: null }),
|
|
688
699
|
__metadata("design:type", Object)
|
|
689
700
|
], Content.prototype, "metricsCalculatedAt", void 0);
|
|
690
|
-
Content = __decorate([
|
|
701
|
+
exports.Content = Content = __decorate([
|
|
691
702
|
(0, mongoose_1.Schema)({ timestamps: true })
|
|
692
703
|
], Content);
|
|
693
|
-
exports.Content = Content;
|
|
694
704
|
exports.ContentSchema = mongoose_1.SchemaFactory.createForClass(Content);
|
|
695
705
|
// Mantém o linkKey em todo create/save (captura, create-content, scripts com o
|
|
696
706
|
// schema). updateOne/findOneAndUpdate não passam por aqui.
|
|
697
|
-
exports.ContentSchema.pre(
|
|
698
|
-
if (this.isNew || this.isModified(
|
|
707
|
+
exports.ContentSchema.pre("save", function (next) {
|
|
708
|
+
if (this.isNew || this.isModified("link")) {
|
|
699
709
|
this.linkKey = (0, normalize_content_link_util_1.normalizeContentLink)(this.link);
|
|
700
710
|
}
|
|
701
711
|
next();
|
|
@@ -712,10 +722,10 @@ exports.ContentSchema.index({ createdAt: -1, status: 1 });
|
|
|
712
722
|
exports.ContentSchema.index({ primetagId: 1 });
|
|
713
723
|
exports.ContentSchema.index({ linkKey: 1 });
|
|
714
724
|
// Visão por Influenciador (GD-703): posts em que o Perfil é coautor.
|
|
715
|
-
exports.ContentSchema.index({
|
|
725
|
+
exports.ContentSchema.index({ "collabs.profile": 1 });
|
|
716
726
|
// Chave de idempotência da captura da Primetag — conteúdos manuais (sem
|
|
717
727
|
// primetagId) ficam fora do índice.
|
|
718
|
-
exports.ContentSchema.index({ action: 1, primetagId: 1 }, { unique: true, partialFilterExpression: { primetagId: { $type:
|
|
728
|
+
exports.ContentSchema.index({ action: 1, primetagId: 1 }, { unique: true, partialFilterExpression: { primetagId: { $type: "string" } } });
|
|
719
729
|
// Chave do import da Tagger (GD-767) — Conteúdos sem taggerId ficam fora.
|
|
720
|
-
exports.ContentSchema.index({ action: 1, taggerId: 1 }, { unique: true, partialFilterExpression: { taggerId: { $type:
|
|
721
|
-
exports.ContentModel = (0, mongoose_2.model)(
|
|
730
|
+
exports.ContentSchema.index({ action: 1, taggerId: 1 }, { unique: true, partialFilterExpression: { taggerId: { $type: "string" } } });
|
|
731
|
+
exports.ContentModel = (0, mongoose_2.model)("Content", exports.ContentSchema);
|
|
@@ -1,35 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 { Recruitment } from './recruitment.schema';
|
|
1
|
+
import { HydratedDocument, Schema as MongooseSchema, Types } from "mongoose";
|
|
2
|
+
import { Recruitment } from "./recruitment.schema";
|
|
28
3
|
export type ContractDocument = HydratedDocument<Contract>;
|
|
29
4
|
export declare class Contract {
|
|
30
5
|
_id?: Types.ObjectId;
|
|
31
6
|
variables: MongooseSchema.Types.Mixed;
|
|
32
|
-
status:
|
|
7
|
+
status: "none" | "signed";
|
|
33
8
|
ip: string;
|
|
34
9
|
userAgent: string;
|
|
35
10
|
signedAt: Date;
|
|
@@ -43,7 +18,7 @@ export declare const ContractSchema: MongooseSchema<Contract, import("mongoose")
|
|
|
43
18
|
_id: Types.ObjectId;
|
|
44
19
|
}> & {
|
|
45
20
|
__v: number;
|
|
46
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Contract, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Contract>, {}, import("mongoose").
|
|
21
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Contract, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Contract>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<Contract> & Required<{
|
|
47
22
|
_id: Types.ObjectId;
|
|
48
23
|
}> & {
|
|
49
24
|
__v: number;
|
|
@@ -56,7 +31,7 @@ export declare const ContractModel: import("mongoose").Model<Contract, {}, {}, {
|
|
|
56
31
|
_id: Types.ObjectId;
|
|
57
32
|
}> & {
|
|
58
33
|
__v: number;
|
|
59
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Contract, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Contract>, {}, import("mongoose").
|
|
34
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Contract, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Contract>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<Contract> & Required<{
|
|
60
35
|
_id: Types.ObjectId;
|
|
61
36
|
}> & {
|
|
62
37
|
__v: number;
|
|
@@ -14,6 +14,7 @@ const mongoose_1 = require("@nestjs/mongoose");
|
|
|
14
14
|
const mongoose_2 = require("mongoose");
|
|
15
15
|
let Contract = class Contract {
|
|
16
16
|
};
|
|
17
|
+
exports.Contract = Contract;
|
|
17
18
|
__decorate([
|
|
18
19
|
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, auto: true, required: false }),
|
|
19
20
|
__metadata("design:type", mongoose_2.Types.ObjectId)
|
|
@@ -23,7 +24,7 @@ __decorate([
|
|
|
23
24
|
__metadata("design:type", mongoose_2.Schema.Types.Mixed)
|
|
24
25
|
], Contract.prototype, "variables", void 0);
|
|
25
26
|
__decorate([
|
|
26
|
-
(0, mongoose_1.Prop)({ type: String, default:
|
|
27
|
+
(0, mongoose_1.Prop)({ type: String, default: "none", enum: ["none", "signed"] }),
|
|
27
28
|
__metadata("design:type", String)
|
|
28
29
|
], Contract.prototype, "status", void 0);
|
|
29
30
|
__decorate([
|
|
@@ -47,7 +48,7 @@ __decorate([
|
|
|
47
48
|
__metadata("design:type", String)
|
|
48
49
|
], Contract.prototype, "contractHash", void 0);
|
|
49
50
|
__decorate([
|
|
50
|
-
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, ref:
|
|
51
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, ref: "Recruitment" }),
|
|
51
52
|
__metadata("design:type", Object)
|
|
52
53
|
], Contract.prototype, "recruitment", void 0);
|
|
53
54
|
__decorate([
|
|
@@ -58,9 +59,8 @@ __decorate([
|
|
|
58
59
|
(0, mongoose_1.Prop)({ default: Date.now, required: false }),
|
|
59
60
|
__metadata("design:type", Date)
|
|
60
61
|
], Contract.prototype, "updatedAt", void 0);
|
|
61
|
-
Contract = __decorate([
|
|
62
|
+
exports.Contract = Contract = __decorate([
|
|
62
63
|
(0, mongoose_1.Schema)({ timestamps: true })
|
|
63
64
|
], Contract);
|
|
64
|
-
exports.Contract = Contract;
|
|
65
65
|
exports.ContractSchema = mongoose_1.SchemaFactory.createForClass(Contract);
|
|
66
|
-
exports.ContractModel = (0, mongoose_2.model)(
|
|
66
|
+
exports.ContractModel = (0, mongoose_2.model)("Contract", exports.ContractSchema);
|
|
@@ -1,33 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
import { Client } from './client.schema';
|
|
29
|
-
import { Profile } from './profile.schema';
|
|
30
|
-
import { TaskFormat } from './task.schema';
|
|
1
|
+
import { HydratedDocument, Schema as MongooseSchema, Types } from "mongoose";
|
|
2
|
+
import { Action } from "./action.schema";
|
|
3
|
+
import { Client } from "./client.schema";
|
|
4
|
+
import { Profile } from "./profile.schema";
|
|
5
|
+
import { TaskFormat } from "./task.schema";
|
|
31
6
|
export type CreativeDocument = HydratedDocument<Creative>;
|
|
32
7
|
export declare const CREATIVE_STATUS_VALUES: readonly ["draft", "pending", "approved", "reproved"];
|
|
33
8
|
export type CreativeStatus = (typeof CREATIVE_STATUS_VALUES)[number];
|
|
@@ -46,7 +21,7 @@ export declare const CreativeDecisionSchema: MongooseSchema<CreativeDecision, im
|
|
|
46
21
|
_id: Types.ObjectId;
|
|
47
22
|
} & {
|
|
48
23
|
__v: number;
|
|
49
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, CreativeDecision, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<CreativeDecision>, {}, import("mongoose").
|
|
24
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, CreativeDecision, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<CreativeDecision>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<CreativeDecision> & {
|
|
50
25
|
_id: Types.ObjectId;
|
|
51
26
|
} & {
|
|
52
27
|
__v: number;
|
|
@@ -60,7 +35,7 @@ export declare const CreativeStaffReplySchema: MongooseSchema<CreativeStaffReply
|
|
|
60
35
|
_id: Types.ObjectId;
|
|
61
36
|
} & {
|
|
62
37
|
__v: number;
|
|
63
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, CreativeStaffReply, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<CreativeStaffReply>, {}, import("mongoose").
|
|
38
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, CreativeStaffReply, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<CreativeStaffReply>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<CreativeStaffReply> & {
|
|
64
39
|
_id: Types.ObjectId;
|
|
65
40
|
} & {
|
|
66
41
|
__v: number;
|
|
@@ -71,7 +46,7 @@ export declare class CreativeVersion {
|
|
|
71
46
|
fileName?: string | null;
|
|
72
47
|
mediaType?: CreativeMediaType | null;
|
|
73
48
|
caption?: string | null;
|
|
74
|
-
status:
|
|
49
|
+
status: "approved" | "reproved";
|
|
75
50
|
submittedBy?: string;
|
|
76
51
|
submittedAt?: Date;
|
|
77
52
|
decisions: CreativeDecision[];
|
|
@@ -82,7 +57,7 @@ export declare const CreativeVersionSchema: MongooseSchema<CreativeVersion, impo
|
|
|
82
57
|
_id: Types.ObjectId;
|
|
83
58
|
} & {
|
|
84
59
|
__v: number;
|
|
85
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, CreativeVersion, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<CreativeVersion>, {}, import("mongoose").
|
|
60
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, CreativeVersion, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<CreativeVersion>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<CreativeVersion> & {
|
|
86
61
|
_id: Types.ObjectId;
|
|
87
62
|
} & {
|
|
88
63
|
__v: number;
|
|
@@ -121,7 +96,7 @@ export declare const CreativeSchema: MongooseSchema<Creative, import("mongoose")
|
|
|
121
96
|
_id: Types.ObjectId;
|
|
122
97
|
}> & {
|
|
123
98
|
__v: number;
|
|
124
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Creative, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Creative>, {}, import("mongoose").
|
|
99
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Creative, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Creative>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<Creative> & Required<{
|
|
125
100
|
_id: Types.ObjectId;
|
|
126
101
|
}> & {
|
|
127
102
|
__v: number;
|
|
@@ -134,7 +109,7 @@ export declare const CreativeModel: import("mongoose").Model<Creative, {}, {}, {
|
|
|
134
109
|
_id: Types.ObjectId;
|
|
135
110
|
}> & {
|
|
136
111
|
__v: number;
|
|
137
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Creative, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Creative>, {}, import("mongoose").
|
|
112
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Creative, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Creative>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<Creative> & Required<{
|
|
138
113
|
_id: Types.ObjectId;
|
|
139
114
|
}> & {
|
|
140
115
|
__v: number;
|