@grapadigital/shared-schemas 1.0.152 → 1.0.154

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.
@@ -154,6 +154,7 @@ export declare class Payment {
154
154
  canceled?: Canceled;
155
155
  notes?: Note[];
156
156
  tags?: string[];
157
+ omieId?: string;
157
158
  createdAt?: Date;
158
159
  updatedAt?: Date;
159
160
  }
@@ -289,6 +289,10 @@ __decorate([
289
289
  (0, mongoose_1.Prop)({ type: [String], required: false, default: [] }),
290
290
  __metadata("design:type", Array)
291
291
  ], Payment.prototype, "tags", void 0);
292
+ __decorate([
293
+ (0, mongoose_1.Prop)(),
294
+ __metadata("design:type", String)
295
+ ], Payment.prototype, "omieId", void 0);
292
296
  __decorate([
293
297
  (0, mongoose_1.Prop)({ default: Date.now, required: false }),
294
298
  __metadata("design:type", Date)
@@ -26,6 +26,7 @@
26
26
  import { HydratedDocument, Schema as MongooseSchema, Types } from 'mongoose';
27
27
  import { Profile } from './profile.schema';
28
28
  import { Client } from './client.schema';
29
+ import { Influencer } from './influencer.schema';
29
30
  export type SaleDocument = HydratedDocument<Sale>;
30
31
  export declare class Screening {
31
32
  subject: string;
@@ -40,6 +41,7 @@ export declare class Proposal {
40
41
  initialScope: string;
41
42
  origin: 'inbound' | 'outbound';
42
43
  profile?: Types.ObjectId | Profile;
44
+ influencer?: Types.ObjectId | Influencer;
43
45
  responsable: {
44
46
  team: string;
45
47
  name: string;
@@ -68,6 +68,14 @@ __decorate([
68
68
  }),
69
69
  __metadata("design:type", Object)
70
70
  ], Proposal.prototype, "profile", void 0);
71
+ __decorate([
72
+ (0, mongoose_1.Prop)({
73
+ type: mongoose_2.Schema.Types.ObjectId,
74
+ ref: 'Influencer',
75
+ required: false,
76
+ }),
77
+ __metadata("design:type", Object)
78
+ ], Proposal.prototype, "influencer", void 0);
71
79
  __decorate([
72
80
  (0, mongoose_1.Prop)({
73
81
  _id: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grapadigital/shared-schemas",
3
- "version": "1.0.152",
3
+ "version": "1.0.154",
4
4
  "description": "Shared Mongoose Schemas",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -225,6 +225,9 @@ export class Payment {
225
225
  @Prop({ type: [String], required: false, default: [] })
226
226
  tags?: string[];
227
227
 
228
+ @Prop()
229
+ omieId?: string;
230
+
228
231
  @Prop({ default: Date.now, required: false })
229
232
  createdAt?: Date;
230
233
 
@@ -7,6 +7,7 @@ import {
7
7
  } from 'mongoose';
8
8
  import { Profile } from './profile.schema';
9
9
  import { Client } from './client.schema';
10
+ import { Influencer } from './influencer.schema';
10
11
 
11
12
  export type SaleDocument = HydratedDocument<Sale>;
12
13
 
@@ -39,6 +40,13 @@ export class Proposal {
39
40
  })
40
41
  profile?: Types.ObjectId | Profile;
41
42
 
43
+ @Prop({
44
+ type: MongooseSchema.Types.ObjectId,
45
+ ref: 'Influencer',
46
+ required: false,
47
+ })
48
+ influencer?: Types.ObjectId | Influencer;
49
+
42
50
  @Prop({
43
51
  _id: false,
44
52
  required: true,