@grapadigital/shared-schemas 1.0.156 → 1.0.157

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.
@@ -69,7 +69,8 @@ export declare class Action {
69
69
  endDate: Date;
70
70
  nps?: number;
71
71
  status: 'config' | 'inProgress' | 'onHold' | 'finished' | 'archived';
72
- type: 'partner' | 'exclusive';
72
+ partnership: 'partner' | 'exclusive';
73
+ type: 'seeding' | 'ugc' | 'creator';
73
74
  socialnetworks?: string[];
74
75
  recruitedInfluencers?: number;
75
76
  hiredInfluencers?: number;
@@ -120,6 +120,11 @@ __decorate([
120
120
  (0, swagger_1.ApiProperty)({ enum: ['partner', 'exclusive'], example: 'partner' }),
121
121
  (0, mongoose_1.Prop)({ type: String, enum: ['partner', 'exclusive'], required: true }),
122
122
  __metadata("design:type", String)
123
+ ], Action.prototype, "partnership", void 0);
124
+ __decorate([
125
+ (0, swagger_1.ApiProperty)({ enum: ['seeding', 'ugc', 'creator'], example: 'seeding' }),
126
+ (0, mongoose_1.Prop)({ type: String, enum: ['seeding', 'ugc', 'creator'], required: true }),
127
+ __metadata("design:type", String)
123
128
  ], Action.prototype, "type", void 0);
124
129
  __decorate([
125
130
  (0, swagger_1.ApiProperty)({ example: ['instagram', 'tiktok'], required: false }),
@@ -36,7 +36,7 @@ export declare class Screening {
36
36
  text: string;
37
37
  }
38
38
  export declare class Proposal {
39
- businessUnit: 'enterprise' | 'artistic';
39
+ businessUnit: 'service' | 'comercial';
40
40
  contact: string;
41
41
  initialScope: string;
42
42
  origin: 'inbound' | 'outbound';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grapadigital/shared-schemas",
3
- "version": "1.0.156",
3
+ "version": "1.0.157",
4
4
  "description": "Shared Mongoose Schemas",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -91,7 +91,11 @@ export class Action {
91
91
 
92
92
  @ApiProperty({ enum: ['partner', 'exclusive'], example: 'partner' })
93
93
  @Prop({ type: String, enum: ['partner', 'exclusive'], required: true })
94
- type: 'partner' | 'exclusive';
94
+ partnership: 'partner' | 'exclusive';
95
+
96
+ @ApiProperty({ enum: ['seeding', 'ugc', 'creator'], example: 'seeding' })
97
+ @Prop({ type: String, enum: ['seeding', 'ugc', 'creator'], required: true })
98
+ type: 'seeding' | 'ugc' | 'creator';
95
99
 
96
100
  @ApiProperty({ example: ['instagram', 'tiktok'], required: false })
97
101
  @Prop({ type: [String], required: false })
@@ -22,7 +22,7 @@ export class Screening {
22
22
 
23
23
  @Schema({ _id: false })
24
24
  export class Proposal {
25
- @Prop({ required: true }) businessUnit: 'enterprise' | 'artistic';
25
+ @Prop({ required: true }) businessUnit: 'service' | 'comercial';
26
26
  @Prop({ required: true }) contact: string;
27
27
  @Prop({ required: true }) initialScope: string;
28
28