@grapadigital/shared-schemas 1.0.231 → 1.0.232

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.
@@ -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);
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grapadigital/shared-schemas",
3
- "version": "1.0.231",
3
+ "version": "1.0.232",
4
4
  "description": "Shared Mongoose Schemas",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -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);
@@ -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
  }