@grapadigital/shared-schemas 1.0.223 → 1.0.224
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.
|
@@ -334,6 +334,18 @@ export declare class Content {
|
|
|
334
334
|
* junto. Ver GD-699.
|
|
335
335
|
*/
|
|
336
336
|
linkKey?: string | null;
|
|
337
|
+
/**
|
|
338
|
+
* Quando a edição pediu o recálculo das métricas (api-campaigns). A tela
|
|
339
|
+
* mostra "Recalculando…" enquanto for mais novo que metricsCalculatedAt.
|
|
340
|
+
* Ver GD-705.
|
|
341
|
+
*/
|
|
342
|
+
metricsRequestedAt?: Date | null;
|
|
343
|
+
/**
|
|
344
|
+
* metricsRequestedAt que o metrics-generator-worker atendeu, gravado ao
|
|
345
|
+
* terminar o recálculo (não a hora do fim: um pedido que chegou durante o
|
|
346
|
+
* cálculo continua pendente). Ver GD-705.
|
|
347
|
+
*/
|
|
348
|
+
metricsCalculatedAt?: Date | null;
|
|
337
349
|
}
|
|
338
350
|
export declare const ContentSchema: MongooseSchema<Content, import("mongoose").Model<Content, any, any, any, import("mongoose").Document<unknown, any, Content, any, {}> & Content & Required<{
|
|
339
351
|
_id: Types.ObjectId;
|
|
@@ -651,6 +651,14 @@ __decorate([
|
|
|
651
651
|
(0, mongoose_1.Prop)({ type: String, required: false, default: null }),
|
|
652
652
|
__metadata("design:type", Object)
|
|
653
653
|
], Content.prototype, "linkKey", void 0);
|
|
654
|
+
__decorate([
|
|
655
|
+
(0, mongoose_1.Prop)({ type: Date, required: false, default: null }),
|
|
656
|
+
__metadata("design:type", Object)
|
|
657
|
+
], Content.prototype, "metricsRequestedAt", void 0);
|
|
658
|
+
__decorate([
|
|
659
|
+
(0, mongoose_1.Prop)({ type: Date, required: false, default: null }),
|
|
660
|
+
__metadata("design:type", Object)
|
|
661
|
+
], Content.prototype, "metricsCalculatedAt", void 0);
|
|
654
662
|
Content = __decorate([
|
|
655
663
|
(0, mongoose_1.Schema)({ timestamps: true })
|
|
656
664
|
], Content);
|
package/package.json
CHANGED
|
@@ -573,6 +573,22 @@ export class Content {
|
|
|
573
573
|
*/
|
|
574
574
|
@Prop({ type: String, required: false, default: null })
|
|
575
575
|
linkKey?: string | null;
|
|
576
|
+
|
|
577
|
+
/**
|
|
578
|
+
* Quando a edição pediu o recálculo das métricas (api-campaigns). A tela
|
|
579
|
+
* mostra "Recalculando…" enquanto for mais novo que metricsCalculatedAt.
|
|
580
|
+
* Ver GD-705.
|
|
581
|
+
*/
|
|
582
|
+
@Prop({ type: Date, required: false, default: null })
|
|
583
|
+
metricsRequestedAt?: Date | null;
|
|
584
|
+
|
|
585
|
+
/**
|
|
586
|
+
* metricsRequestedAt que o metrics-generator-worker atendeu, gravado ao
|
|
587
|
+
* terminar o recálculo (não a hora do fim: um pedido que chegou durante o
|
|
588
|
+
* cálculo continua pendente). Ver GD-705.
|
|
589
|
+
*/
|
|
590
|
+
@Prop({ type: Date, required: false, default: null })
|
|
591
|
+
metricsCalculatedAt?: Date | null;
|
|
576
592
|
}
|
|
577
593
|
|
|
578
594
|
export const ContentSchema = SchemaFactory.createForClass(Content);
|