@grapadigital/shared-schemas 1.0.151 → 1.0.153
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.
|
@@ -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,
|
|
@@ -51,6 +51,8 @@ export declare class Company {
|
|
|
51
51
|
digit: string;
|
|
52
52
|
pix: string;
|
|
53
53
|
email: string;
|
|
54
|
+
omieGrapaId?: string;
|
|
55
|
+
omieOmaId?: string;
|
|
54
56
|
}
|
|
55
57
|
export declare const CompanySchema: MongooseSchema<Company, import("mongoose").Model<Company, any, any, any, import("mongoose").Document<unknown, any, Company, any, {}> & Company & {
|
|
56
58
|
_id: Types.ObjectId;
|
|
@@ -77,6 +77,14 @@ __decorate([
|
|
|
77
77
|
(0, mongoose_1.Prop)(),
|
|
78
78
|
__metadata("design:type", String)
|
|
79
79
|
], Company.prototype, "email", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
82
|
+
__metadata("design:type", String)
|
|
83
|
+
], Company.prototype, "omieGrapaId", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
86
|
+
__metadata("design:type", String)
|
|
87
|
+
], Company.prototype, "omieOmaId", void 0);
|
|
80
88
|
Company = __decorate([
|
|
81
89
|
(0, mongoose_1.Schema)({ _id: false })
|
|
82
90
|
], Company);
|
package/package.json
CHANGED
|
@@ -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,
|
|
@@ -51,6 +51,14 @@ export class Company {
|
|
|
51
51
|
|
|
52
52
|
@Prop()
|
|
53
53
|
email: string;
|
|
54
|
+
|
|
55
|
+
@Prop({ required: false })
|
|
56
|
+
omieGrapaId?: string;
|
|
57
|
+
|
|
58
|
+
@Prop({ required: false })
|
|
59
|
+
omieOmaId?: string;
|
|
60
|
+
|
|
61
|
+
|
|
54
62
|
}
|
|
55
63
|
|
|
56
64
|
export const CompanySchema = SchemaFactory.createForClass(Company);
|