@grapadigital/shared-schemas 1.0.231 → 1.0.233
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/schemas/action.schema.d.ts +2 -0
- package/dist/schemas/action.schema.js +5 -0
- package/dist/schemas/content.schema.d.ts +1 -1
- package/dist/schemas/content.schema.js +1 -1
- package/dist/schemas/recruitment.schema.d.ts +6 -0
- package/dist/schemas/recruitment.schema.js +4 -0
- package/package.json +1 -1
- package/src/schemas/action.schema.ts +5 -0
- package/src/schemas/content.schema.ts +9 -2
- package/src/schemas/recruitment.schema.ts +8 -0
|
@@ -148,6 +148,8 @@ export declare class Action {
|
|
|
148
148
|
phases?: ActionPhase[];
|
|
149
149
|
/** Metas da Ação: mesmo { metric, value } e catálogo dos Tiers do cliente. Ver GD-691. */
|
|
150
150
|
goals?: ClientMetricGoal[];
|
|
151
|
+
/** Fora dos relatórios do cliente no Hub (total de campanhas, lista e métricas). */
|
|
152
|
+
hideFromReports?: boolean;
|
|
151
153
|
}
|
|
152
154
|
export declare const ActionSchema: MongooseSchema<Action, import("mongoose").Model<Action, any, any, any, import("mongoose").Document<unknown, any, Action, any, {}> & Action & Required<{
|
|
153
155
|
_id: Types.ObjectId;
|
|
@@ -368,6 +368,11 @@ __decorate([
|
|
|
368
368
|
(0, mongoose_1.Prop)({ type: [client_schema_1.ClientMetricGoalSchema], default: [] }),
|
|
369
369
|
__metadata("design:type", Array)
|
|
370
370
|
], Action.prototype, "goals", void 0);
|
|
371
|
+
__decorate([
|
|
372
|
+
(0, swagger_1.ApiProperty)({ required: false, default: false }),
|
|
373
|
+
(0, mongoose_1.Prop)({ type: Boolean, default: false }),
|
|
374
|
+
__metadata("design:type", Boolean)
|
|
375
|
+
], Action.prototype, "hideFromReports", void 0);
|
|
371
376
|
Action = __decorate([
|
|
372
377
|
(0, mongoose_1.Schema)({ timestamps: true })
|
|
373
378
|
], Action);
|
|
@@ -291,7 +291,7 @@ export declare class Content {
|
|
|
291
291
|
link: string;
|
|
292
292
|
type: 'reel' | 'carousel' | 'image' | 'story' | 'video' | 'post' | 'pin' | 'tweet';
|
|
293
293
|
tagType: 'withTag' | 'withoutTag' | 'brandExposure';
|
|
294
|
-
socialnetwork: 'instagram' | 'tiktok' | 'youtube' | 'pinterest' | 'linkedin' | 'twitter';
|
|
294
|
+
socialnetwork: 'instagram' | 'tiktok' | 'youtube' | 'pinterest' | 'linkedin' | 'twitter' | 'facebook';
|
|
295
295
|
status: ContentStatus;
|
|
296
296
|
metricsSource?: ContentMetricsSource | null;
|
|
297
297
|
processedCommentCount?: number | null;
|
|
@@ -503,7 +503,7 @@ __decorate([
|
|
|
503
503
|
__decorate([
|
|
504
504
|
(0, mongoose_1.Prop)({
|
|
505
505
|
type: String,
|
|
506
|
-
enum: ['instagram', 'tiktok', 'youtube', 'pinterest', 'linkedin', 'twitter'],
|
|
506
|
+
enum: ['instagram', 'tiktok', 'youtube', 'pinterest', 'linkedin', 'twitter', 'facebook'],
|
|
507
507
|
required: true,
|
|
508
508
|
}),
|
|
509
509
|
__metadata("design:type", String)
|
|
@@ -190,6 +190,12 @@ export declare class Scope {
|
|
|
190
190
|
optIn?: OptIn;
|
|
191
191
|
exchange?: Exchange;
|
|
192
192
|
exclusivity?: boolean;
|
|
193
|
+
/**
|
|
194
|
+
* Squad do Influenciador nesta Ação (ex.: "Team Galaxy", "Content Creator",
|
|
195
|
+
* "Tech"). Nasce com o Squad do Contrato e é editável no escopo; os filtros de
|
|
196
|
+
* Squad da Samsung no Hub usam este valor.
|
|
197
|
+
*/
|
|
198
|
+
squad?: string | null;
|
|
193
199
|
estimates?: ScopeEstimates;
|
|
194
200
|
}
|
|
195
201
|
export declare const ScopeSchema: MongooseSchema<Scope, import("mongoose").Model<Scope, any, any, any, import("mongoose").Document<unknown, any, Scope, any, {}> & Scope & {
|
|
@@ -286,6 +286,10 @@ __decorate([
|
|
|
286
286
|
(0, mongoose_1.Prop)({ required: false }),
|
|
287
287
|
__metadata("design:type", Boolean)
|
|
288
288
|
], Scope.prototype, "exclusivity", void 0);
|
|
289
|
+
__decorate([
|
|
290
|
+
(0, mongoose_1.Prop)({ type: String, required: false, default: null }),
|
|
291
|
+
__metadata("design:type", Object)
|
|
292
|
+
], Scope.prototype, "squad", void 0);
|
|
289
293
|
__decorate([
|
|
290
294
|
(0, mongoose_1.Prop)({ type: exports.ScopeEstimatesSchema, required: false }),
|
|
291
295
|
__metadata("design:type", ScopeEstimates)
|
package/package.json
CHANGED
|
@@ -324,6 +324,11 @@ export class Action {
|
|
|
324
324
|
@ApiProperty({ type: () => [ClientMetricGoal], required: false })
|
|
325
325
|
@Prop({ type: [ClientMetricGoalSchema], default: [] })
|
|
326
326
|
goals?: ClientMetricGoal[];
|
|
327
|
+
|
|
328
|
+
/** Fora dos relatórios do cliente no Hub (total de campanhas, lista e métricas). */
|
|
329
|
+
@ApiProperty({ required: false, default: false })
|
|
330
|
+
@Prop({ type: Boolean, default: false })
|
|
331
|
+
hideFromReports?: boolean;
|
|
327
332
|
}
|
|
328
333
|
|
|
329
334
|
export const ActionSchema = SchemaFactory.createForClass(Action);
|
|
@@ -432,10 +432,17 @@ export class Content {
|
|
|
432
432
|
|
|
433
433
|
@Prop({
|
|
434
434
|
type: String,
|
|
435
|
-
enum: ['instagram', 'tiktok', 'youtube', 'pinterest', 'linkedin', 'twitter'],
|
|
435
|
+
enum: ['instagram', 'tiktok', 'youtube', 'pinterest', 'linkedin', 'twitter', 'facebook'],
|
|
436
436
|
required: true,
|
|
437
437
|
})
|
|
438
|
-
socialnetwork:
|
|
438
|
+
socialnetwork:
|
|
439
|
+
| 'instagram'
|
|
440
|
+
| 'tiktok'
|
|
441
|
+
| 'youtube'
|
|
442
|
+
| 'pinterest'
|
|
443
|
+
| 'linkedin'
|
|
444
|
+
| 'twitter'
|
|
445
|
+
| 'facebook';
|
|
439
446
|
|
|
440
447
|
// pending: capturado da Primetag, aguardando aprovação manual.
|
|
441
448
|
// approved: aprovado manualmente, entra no pipeline (comentários → classificação → métricas).
|
|
@@ -184,6 +184,14 @@ export class Scope {
|
|
|
184
184
|
@Prop({ required: false })
|
|
185
185
|
exclusivity?: boolean;
|
|
186
186
|
|
|
187
|
+
/**
|
|
188
|
+
* Squad do Influenciador nesta Ação (ex.: "Team Galaxy", "Content Creator",
|
|
189
|
+
* "Tech"). Nasce com o Squad do Contrato e é editável no escopo; os filtros de
|
|
190
|
+
* Squad da Samsung no Hub usam este valor.
|
|
191
|
+
*/
|
|
192
|
+
@Prop({ type: String, required: false, default: null })
|
|
193
|
+
squad?: string | null;
|
|
194
|
+
|
|
187
195
|
@Prop({ type: ScopeEstimatesSchema, required: false })
|
|
188
196
|
estimates?: ScopeEstimates;
|
|
189
197
|
}
|