@grapadigital/shared-schemas 1.0.105 → 1.0.107
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.
|
@@ -28,13 +28,13 @@ import { Action } from './action.schema';
|
|
|
28
28
|
import { Profile } from './profile.schema';
|
|
29
29
|
export type RecruitmentDocument = HydratedDocument<Recruitment>;
|
|
30
30
|
export declare class Delivery {
|
|
31
|
-
reels
|
|
32
|
-
images
|
|
33
|
-
carousels
|
|
34
|
-
stories
|
|
35
|
-
tiktok
|
|
36
|
-
youtube
|
|
37
|
-
dayAllocation
|
|
31
|
+
reels?: number;
|
|
32
|
+
images?: number;
|
|
33
|
+
carousels?: number;
|
|
34
|
+
stories?: number;
|
|
35
|
+
tiktok?: number;
|
|
36
|
+
youtube?: number;
|
|
37
|
+
dayAllocation?: number;
|
|
38
38
|
}
|
|
39
39
|
export declare const DeliverySchema: MongooseSchema<Delivery, import("mongoose").Model<Delivery, any, any, any, import("mongoose").Document<unknown, any, Delivery, any, {}> & Delivery & {
|
|
40
40
|
_id: Types.ObjectId;
|
|
@@ -85,40 +85,13 @@ export declare const InstallmentInfoSchema: MongooseSchema<InstallmentInfo, impo
|
|
|
85
85
|
} & {
|
|
86
86
|
__v: number;
|
|
87
87
|
}>;
|
|
88
|
-
|
|
88
|
+
declare class Payment {
|
|
89
89
|
hasPayment: boolean;
|
|
90
90
|
hasInstallment: boolean;
|
|
91
91
|
value: number;
|
|
92
92
|
installmentInfo: InstallmentInfo[];
|
|
93
93
|
deadline: number;
|
|
94
|
-
passThrough: boolean;
|
|
95
94
|
}
|
|
96
|
-
export declare const InfluencerPaymentSchema: MongooseSchema<InfluencerPayment, import("mongoose").Model<InfluencerPayment, any, any, any, import("mongoose").Document<unknown, any, InfluencerPayment, any, {}> & InfluencerPayment & {
|
|
97
|
-
_id: Types.ObjectId;
|
|
98
|
-
} & {
|
|
99
|
-
__v: number;
|
|
100
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, InfluencerPayment, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<InfluencerPayment>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<InfluencerPayment> & {
|
|
101
|
-
_id: Types.ObjectId;
|
|
102
|
-
} & {
|
|
103
|
-
__v: number;
|
|
104
|
-
}>;
|
|
105
|
-
export declare class AdvisorPayment {
|
|
106
|
-
hasPayment: boolean;
|
|
107
|
-
hasInstallment: boolean;
|
|
108
|
-
value: number;
|
|
109
|
-
installmentInfo: InstallmentInfo[];
|
|
110
|
-
deadline: number;
|
|
111
|
-
passThrough: boolean;
|
|
112
|
-
}
|
|
113
|
-
export declare const AdvisorPaymentSchema: MongooseSchema<AdvisorPayment, import("mongoose").Model<AdvisorPayment, any, any, any, import("mongoose").Document<unknown, any, AdvisorPayment, any, {}> & AdvisorPayment & {
|
|
114
|
-
_id: Types.ObjectId;
|
|
115
|
-
} & {
|
|
116
|
-
__v: number;
|
|
117
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, AdvisorPayment, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<AdvisorPayment>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<AdvisorPayment> & {
|
|
118
|
-
_id: Types.ObjectId;
|
|
119
|
-
} & {
|
|
120
|
-
__v: number;
|
|
121
|
-
}>;
|
|
122
95
|
export declare class Exchange {
|
|
123
96
|
hasExchange: boolean;
|
|
124
97
|
valueInProduct: number;
|
|
@@ -145,19 +118,28 @@ export declare const CollabSchema: MongooseSchema<Collab, import("mongoose").Mod
|
|
|
145
118
|
} & {
|
|
146
119
|
__v: number;
|
|
147
120
|
}>;
|
|
121
|
+
export declare class Exclusivity {
|
|
122
|
+
startDate: Date;
|
|
123
|
+
endDate: Date;
|
|
124
|
+
category: string;
|
|
125
|
+
}
|
|
126
|
+
export declare const ExclusivitySchema: MongooseSchema<Exclusivity, import("mongoose").Model<Exclusivity, any, any, any, import("mongoose").Document<unknown, any, Exclusivity, any, {}> & Exclusivity & {
|
|
127
|
+
_id: Types.ObjectId;
|
|
128
|
+
} & {
|
|
129
|
+
__v: number;
|
|
130
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Exclusivity, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Exclusivity>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<Exclusivity> & {
|
|
131
|
+
_id: Types.ObjectId;
|
|
132
|
+
} & {
|
|
133
|
+
__v: number;
|
|
134
|
+
}>;
|
|
148
135
|
export declare class Scope {
|
|
149
136
|
delivery: Delivery;
|
|
150
|
-
rights
|
|
151
|
-
payment
|
|
152
|
-
advisorPayment
|
|
153
|
-
collab
|
|
154
|
-
exchange
|
|
155
|
-
|
|
156
|
-
totalAcceptanceTermSent: number;
|
|
157
|
-
paymentMethod: string;
|
|
158
|
-
exclusivity: boolean;
|
|
159
|
-
passThrough: boolean;
|
|
160
|
-
childPermit: boolean;
|
|
137
|
+
rights?: Rights;
|
|
138
|
+
payment?: Payment;
|
|
139
|
+
advisorPayment?: Payment;
|
|
140
|
+
collab?: Collab;
|
|
141
|
+
exchange?: Exchange;
|
|
142
|
+
exclusivity?: Exclusivity;
|
|
161
143
|
}
|
|
162
144
|
export declare const ScopeSchema: MongooseSchema<Scope, import("mongoose").Model<Scope, any, any, any, import("mongoose").Document<unknown, any, Scope, any, {}> & Scope & {
|
|
163
145
|
_id: Types.ObjectId;
|
|
@@ -201,3 +183,4 @@ export declare const RecruitmentModel: import("mongoose").Model<Recruitment, {},
|
|
|
201
183
|
}> & {
|
|
202
184
|
__v: number;
|
|
203
185
|
}>>;
|
|
186
|
+
export {};
|
|
@@ -9,37 +9,37 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.RecruitmentModel = exports.RecruitmentSchema = exports.Recruitment = exports.ScopeSchema = exports.Scope = exports.
|
|
12
|
+
exports.RecruitmentModel = exports.RecruitmentSchema = exports.Recruitment = exports.ScopeSchema = exports.Scope = exports.ExclusivitySchema = exports.Exclusivity = exports.CollabSchema = exports.Collab = exports.ExchangeSchema = exports.Exchange = exports.InstallmentInfoSchema = exports.InstallmentInfo = exports.RightsSchema = exports.Rights = exports.RightSchema = exports.Right = exports.DeliverySchema = exports.Delivery = void 0;
|
|
13
13
|
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
14
|
const mongoose_2 = require("mongoose");
|
|
15
15
|
let Delivery = class Delivery {
|
|
16
16
|
};
|
|
17
17
|
__decorate([
|
|
18
|
-
(0, mongoose_1.Prop)(),
|
|
18
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
19
19
|
__metadata("design:type", Number)
|
|
20
20
|
], Delivery.prototype, "reels", void 0);
|
|
21
21
|
__decorate([
|
|
22
|
-
(0, mongoose_1.Prop)(),
|
|
22
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
23
23
|
__metadata("design:type", Number)
|
|
24
24
|
], Delivery.prototype, "images", void 0);
|
|
25
25
|
__decorate([
|
|
26
|
-
(0, mongoose_1.Prop)(),
|
|
26
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
27
27
|
__metadata("design:type", Number)
|
|
28
28
|
], Delivery.prototype, "carousels", void 0);
|
|
29
29
|
__decorate([
|
|
30
|
-
(0, mongoose_1.Prop)(),
|
|
30
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
31
31
|
__metadata("design:type", Number)
|
|
32
32
|
], Delivery.prototype, "stories", void 0);
|
|
33
33
|
__decorate([
|
|
34
|
-
(0, mongoose_1.Prop)(),
|
|
34
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
35
35
|
__metadata("design:type", Number)
|
|
36
36
|
], Delivery.prototype, "tiktok", void 0);
|
|
37
37
|
__decorate([
|
|
38
|
-
(0, mongoose_1.Prop)(),
|
|
38
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
39
39
|
__metadata("design:type", Number)
|
|
40
40
|
], Delivery.prototype, "youtube", void 0);
|
|
41
41
|
__decorate([
|
|
42
|
-
(0, mongoose_1.Prop)(),
|
|
42
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
43
43
|
__metadata("design:type", Number)
|
|
44
44
|
], Delivery.prototype, "dayAllocation", void 0);
|
|
45
45
|
Delivery = __decorate([
|
|
@@ -96,68 +96,32 @@ InstallmentInfo = __decorate([
|
|
|
96
96
|
], InstallmentInfo);
|
|
97
97
|
exports.InstallmentInfo = InstallmentInfo;
|
|
98
98
|
exports.InstallmentInfoSchema = mongoose_1.SchemaFactory.createForClass(InstallmentInfo);
|
|
99
|
-
let
|
|
99
|
+
let Payment = class Payment {
|
|
100
100
|
};
|
|
101
101
|
__decorate([
|
|
102
102
|
(0, mongoose_1.Prop)(),
|
|
103
103
|
__metadata("design:type", Boolean)
|
|
104
|
-
],
|
|
104
|
+
], Payment.prototype, "hasPayment", void 0);
|
|
105
105
|
__decorate([
|
|
106
106
|
(0, mongoose_1.Prop)(),
|
|
107
107
|
__metadata("design:type", Boolean)
|
|
108
|
-
],
|
|
108
|
+
], Payment.prototype, "hasInstallment", void 0);
|
|
109
109
|
__decorate([
|
|
110
110
|
(0, mongoose_1.Prop)(),
|
|
111
111
|
__metadata("design:type", Number)
|
|
112
|
-
],
|
|
112
|
+
], Payment.prototype, "value", void 0);
|
|
113
113
|
__decorate([
|
|
114
114
|
(0, mongoose_1.Prop)([{ type: exports.InstallmentInfoSchema }]),
|
|
115
115
|
__metadata("design:type", Array)
|
|
116
|
-
],
|
|
116
|
+
], Payment.prototype, "installmentInfo", void 0);
|
|
117
117
|
__decorate([
|
|
118
118
|
(0, mongoose_1.Prop)(),
|
|
119
119
|
__metadata("design:type", Number)
|
|
120
|
-
],
|
|
121
|
-
__decorate([
|
|
122
|
-
(0, mongoose_1.Prop)(),
|
|
123
|
-
__metadata("design:type", Boolean)
|
|
124
|
-
], InfluencerPayment.prototype, "passThrough", void 0);
|
|
125
|
-
InfluencerPayment = __decorate([
|
|
126
|
-
(0, mongoose_1.Schema)({ _id: false })
|
|
127
|
-
], InfluencerPayment);
|
|
128
|
-
exports.InfluencerPayment = InfluencerPayment;
|
|
129
|
-
exports.InfluencerPaymentSchema = mongoose_1.SchemaFactory.createForClass(InfluencerPayment);
|
|
130
|
-
let AdvisorPayment = class AdvisorPayment {
|
|
131
|
-
};
|
|
132
|
-
__decorate([
|
|
133
|
-
(0, mongoose_1.Prop)(),
|
|
134
|
-
__metadata("design:type", Boolean)
|
|
135
|
-
], AdvisorPayment.prototype, "hasPayment", void 0);
|
|
136
|
-
__decorate([
|
|
137
|
-
(0, mongoose_1.Prop)(),
|
|
138
|
-
__metadata("design:type", Boolean)
|
|
139
|
-
], AdvisorPayment.prototype, "hasInstallment", void 0);
|
|
140
|
-
__decorate([
|
|
141
|
-
(0, mongoose_1.Prop)(),
|
|
142
|
-
__metadata("design:type", Number)
|
|
143
|
-
], AdvisorPayment.prototype, "value", void 0);
|
|
144
|
-
__decorate([
|
|
145
|
-
(0, mongoose_1.Prop)([{ type: exports.InstallmentInfoSchema }]),
|
|
146
|
-
__metadata("design:type", Array)
|
|
147
|
-
], AdvisorPayment.prototype, "installmentInfo", void 0);
|
|
148
|
-
__decorate([
|
|
149
|
-
(0, mongoose_1.Prop)(),
|
|
150
|
-
__metadata("design:type", Number)
|
|
151
|
-
], AdvisorPayment.prototype, "deadline", void 0);
|
|
152
|
-
__decorate([
|
|
153
|
-
(0, mongoose_1.Prop)(),
|
|
154
|
-
__metadata("design:type", Boolean)
|
|
155
|
-
], AdvisorPayment.prototype, "passThrough", void 0);
|
|
156
|
-
AdvisorPayment = __decorate([
|
|
120
|
+
], Payment.prototype, "deadline", void 0);
|
|
121
|
+
Payment = __decorate([
|
|
157
122
|
(0, mongoose_1.Schema)({ _id: false })
|
|
158
|
-
],
|
|
159
|
-
|
|
160
|
-
exports.AdvisorPaymentSchema = mongoose_1.SchemaFactory.createForClass(AdvisorPayment);
|
|
123
|
+
], Payment);
|
|
124
|
+
const PaymentSchema = mongoose_1.SchemaFactory.createForClass(Payment);
|
|
161
125
|
let Exchange = class Exchange {
|
|
162
126
|
};
|
|
163
127
|
__decorate([
|
|
@@ -188,6 +152,25 @@ Collab = __decorate([
|
|
|
188
152
|
], Collab);
|
|
189
153
|
exports.Collab = Collab;
|
|
190
154
|
exports.CollabSchema = mongoose_1.SchemaFactory.createForClass(Collab);
|
|
155
|
+
let Exclusivity = class Exclusivity {
|
|
156
|
+
};
|
|
157
|
+
__decorate([
|
|
158
|
+
(0, mongoose_1.Prop)(),
|
|
159
|
+
__metadata("design:type", Date)
|
|
160
|
+
], Exclusivity.prototype, "startDate", void 0);
|
|
161
|
+
__decorate([
|
|
162
|
+
(0, mongoose_1.Prop)(),
|
|
163
|
+
__metadata("design:type", Date)
|
|
164
|
+
], Exclusivity.prototype, "endDate", void 0);
|
|
165
|
+
__decorate([
|
|
166
|
+
(0, mongoose_1.Prop)(),
|
|
167
|
+
__metadata("design:type", String)
|
|
168
|
+
], Exclusivity.prototype, "category", void 0);
|
|
169
|
+
Exclusivity = __decorate([
|
|
170
|
+
(0, mongoose_1.Schema)({ _id: false })
|
|
171
|
+
], Exclusivity);
|
|
172
|
+
exports.Exclusivity = Exclusivity;
|
|
173
|
+
exports.ExclusivitySchema = mongoose_1.SchemaFactory.createForClass(Exclusivity);
|
|
191
174
|
let Scope = class Scope {
|
|
192
175
|
};
|
|
193
176
|
__decorate([
|
|
@@ -195,49 +178,29 @@ __decorate([
|
|
|
195
178
|
__metadata("design:type", Delivery)
|
|
196
179
|
], Scope.prototype, "delivery", void 0);
|
|
197
180
|
__decorate([
|
|
198
|
-
(0, mongoose_1.Prop)({ type: exports.RightsSchema }),
|
|
181
|
+
(0, mongoose_1.Prop)({ type: exports.RightsSchema, required: false }),
|
|
199
182
|
__metadata("design:type", Rights)
|
|
200
183
|
], Scope.prototype, "rights", void 0);
|
|
201
184
|
__decorate([
|
|
202
|
-
(0, mongoose_1.Prop)({ type:
|
|
203
|
-
__metadata("design:type",
|
|
185
|
+
(0, mongoose_1.Prop)({ type: PaymentSchema, required: false }),
|
|
186
|
+
__metadata("design:type", Payment)
|
|
204
187
|
], Scope.prototype, "payment", void 0);
|
|
205
188
|
__decorate([
|
|
206
|
-
(0, mongoose_1.Prop)({ type:
|
|
207
|
-
__metadata("design:type",
|
|
189
|
+
(0, mongoose_1.Prop)({ type: PaymentSchema, required: false }),
|
|
190
|
+
__metadata("design:type", Payment)
|
|
208
191
|
], Scope.prototype, "advisorPayment", void 0);
|
|
209
192
|
__decorate([
|
|
210
|
-
(0, mongoose_1.Prop)({ type: exports.CollabSchema }),
|
|
193
|
+
(0, mongoose_1.Prop)({ type: exports.CollabSchema, required: false }),
|
|
211
194
|
__metadata("design:type", Collab)
|
|
212
195
|
], Scope.prototype, "collab", void 0);
|
|
213
196
|
__decorate([
|
|
214
|
-
(0, mongoose_1.Prop)({ type: exports.ExchangeSchema }),
|
|
197
|
+
(0, mongoose_1.Prop)({ type: exports.ExchangeSchema, required: false }),
|
|
215
198
|
__metadata("design:type", Exchange)
|
|
216
199
|
], Scope.prototype, "exchange", void 0);
|
|
217
200
|
__decorate([
|
|
218
|
-
(0, mongoose_1.Prop)(),
|
|
219
|
-
__metadata("design:type",
|
|
220
|
-
], Scope.prototype, "sendAcceptanceTerm", void 0);
|
|
221
|
-
__decorate([
|
|
222
|
-
(0, mongoose_1.Prop)(),
|
|
223
|
-
__metadata("design:type", Number)
|
|
224
|
-
], Scope.prototype, "totalAcceptanceTermSent", void 0);
|
|
225
|
-
__decorate([
|
|
226
|
-
(0, mongoose_1.Prop)(),
|
|
227
|
-
__metadata("design:type", String)
|
|
228
|
-
], Scope.prototype, "paymentMethod", void 0);
|
|
229
|
-
__decorate([
|
|
230
|
-
(0, mongoose_1.Prop)(),
|
|
231
|
-
__metadata("design:type", Boolean)
|
|
201
|
+
(0, mongoose_1.Prop)({ type: exports.ExclusivitySchema, required: false }),
|
|
202
|
+
__metadata("design:type", Exclusivity)
|
|
232
203
|
], Scope.prototype, "exclusivity", void 0);
|
|
233
|
-
__decorate([
|
|
234
|
-
(0, mongoose_1.Prop)(),
|
|
235
|
-
__metadata("design:type", Boolean)
|
|
236
|
-
], Scope.prototype, "passThrough", void 0);
|
|
237
|
-
__decorate([
|
|
238
|
-
(0, mongoose_1.Prop)(),
|
|
239
|
-
__metadata("design:type", Boolean)
|
|
240
|
-
], Scope.prototype, "childPermit", void 0);
|
|
241
204
|
Scope = __decorate([
|
|
242
205
|
(0, mongoose_1.Schema)({ _id: false })
|
|
243
206
|
], Scope);
|
package/package.json
CHANGED
|
@@ -7,26 +7,26 @@ export type RecruitmentDocument = HydratedDocument<Recruitment>;
|
|
|
7
7
|
|
|
8
8
|
@Schema({ _id: false })
|
|
9
9
|
export class Delivery {
|
|
10
|
-
@Prop()
|
|
11
|
-
reels
|
|
10
|
+
@Prop({ required: false })
|
|
11
|
+
reels?: number;
|
|
12
12
|
|
|
13
|
-
@Prop()
|
|
14
|
-
images
|
|
13
|
+
@Prop({ required: false })
|
|
14
|
+
images?: number;
|
|
15
15
|
|
|
16
|
-
@Prop()
|
|
17
|
-
carousels
|
|
16
|
+
@Prop({ required: false })
|
|
17
|
+
carousels?: number;
|
|
18
18
|
|
|
19
|
-
@Prop()
|
|
20
|
-
stories
|
|
19
|
+
@Prop({ required: false })
|
|
20
|
+
stories?: number;
|
|
21
21
|
|
|
22
|
-
@Prop()
|
|
23
|
-
tiktok
|
|
22
|
+
@Prop({ required: false })
|
|
23
|
+
tiktok?: number;
|
|
24
24
|
|
|
25
|
-
@Prop()
|
|
26
|
-
youtube
|
|
25
|
+
@Prop({ required: false })
|
|
26
|
+
youtube?: number;
|
|
27
27
|
|
|
28
|
-
@Prop()
|
|
29
|
-
dayAllocation
|
|
28
|
+
@Prop({ required: false })
|
|
29
|
+
dayAllocation?: number;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
export const DeliverySchema = SchemaFactory.createForClass(Delivery);
|
|
@@ -68,7 +68,7 @@ export const InstallmentInfoSchema =
|
|
|
68
68
|
SchemaFactory.createForClass(InstallmentInfo);
|
|
69
69
|
|
|
70
70
|
@Schema({ _id: false })
|
|
71
|
-
|
|
71
|
+
class Payment {
|
|
72
72
|
@Prop()
|
|
73
73
|
hasPayment: boolean;
|
|
74
74
|
|
|
@@ -83,37 +83,9 @@ export class InfluencerPayment {
|
|
|
83
83
|
|
|
84
84
|
@Prop()
|
|
85
85
|
deadline: number;
|
|
86
|
-
|
|
87
|
-
@Prop()
|
|
88
|
-
passThrough: boolean;
|
|
89
86
|
}
|
|
90
87
|
|
|
91
|
-
|
|
92
|
-
SchemaFactory.createForClass(InfluencerPayment);
|
|
93
|
-
|
|
94
|
-
@Schema({ _id: false })
|
|
95
|
-
export class AdvisorPayment {
|
|
96
|
-
@Prop()
|
|
97
|
-
hasPayment: boolean;
|
|
98
|
-
|
|
99
|
-
@Prop()
|
|
100
|
-
hasInstallment: boolean;
|
|
101
|
-
|
|
102
|
-
@Prop()
|
|
103
|
-
value: number;
|
|
104
|
-
|
|
105
|
-
@Prop([{ type: InstallmentInfoSchema }])
|
|
106
|
-
installmentInfo: InstallmentInfo[];
|
|
107
|
-
|
|
108
|
-
@Prop()
|
|
109
|
-
deadline: number;
|
|
110
|
-
|
|
111
|
-
@Prop()
|
|
112
|
-
passThrough: boolean;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
export const AdvisorPaymentSchema =
|
|
116
|
-
SchemaFactory.createForClass(AdvisorPayment);
|
|
88
|
+
const PaymentSchema = SchemaFactory.createForClass(Payment);
|
|
117
89
|
|
|
118
90
|
@Schema({ _id: false })
|
|
119
91
|
export class Exchange {
|
|
@@ -138,42 +110,41 @@ export class Collab {
|
|
|
138
110
|
export const CollabSchema = SchemaFactory.createForClass(Collab);
|
|
139
111
|
|
|
140
112
|
@Schema({ _id: false })
|
|
141
|
-
export class
|
|
142
|
-
@Prop(
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
@Prop({ type: RightsSchema })
|
|
146
|
-
rights: Rights;
|
|
113
|
+
export class Exclusivity {
|
|
114
|
+
@Prop()
|
|
115
|
+
startDate: Date;
|
|
147
116
|
|
|
148
|
-
@Prop(
|
|
149
|
-
|
|
117
|
+
@Prop()
|
|
118
|
+
endDate: Date;
|
|
150
119
|
|
|
151
|
-
@Prop(
|
|
152
|
-
|
|
120
|
+
@Prop()
|
|
121
|
+
category: string;
|
|
122
|
+
}
|
|
153
123
|
|
|
154
|
-
|
|
155
|
-
collab: Collab;
|
|
124
|
+
export const ExclusivitySchema = SchemaFactory.createForClass(Exclusivity);
|
|
156
125
|
|
|
157
|
-
|
|
158
|
-
|
|
126
|
+
@Schema({ _id: false })
|
|
127
|
+
export class Scope {
|
|
128
|
+
@Prop({ type: DeliverySchema })
|
|
129
|
+
delivery: Delivery;
|
|
159
130
|
|
|
160
|
-
@Prop()
|
|
161
|
-
|
|
131
|
+
@Prop({ type: RightsSchema, required: false })
|
|
132
|
+
rights?: Rights;
|
|
162
133
|
|
|
163
|
-
@Prop()
|
|
164
|
-
|
|
134
|
+
@Prop({ type: PaymentSchema, required: false })
|
|
135
|
+
payment?: Payment;
|
|
165
136
|
|
|
166
|
-
@Prop()
|
|
167
|
-
|
|
137
|
+
@Prop({ type: PaymentSchema, required: false })
|
|
138
|
+
advisorPayment?: Payment;
|
|
168
139
|
|
|
169
|
-
@Prop()
|
|
170
|
-
|
|
140
|
+
@Prop({ type: CollabSchema, required: false })
|
|
141
|
+
collab?: Collab;
|
|
171
142
|
|
|
172
|
-
@Prop()
|
|
173
|
-
|
|
143
|
+
@Prop({ type: ExchangeSchema, required: false })
|
|
144
|
+
exchange?: Exchange;
|
|
174
145
|
|
|
175
|
-
@Prop()
|
|
176
|
-
|
|
146
|
+
@Prop({ type: ExclusivitySchema, required: false })
|
|
147
|
+
exclusivity?: Exclusivity;
|
|
177
148
|
}
|
|
178
149
|
|
|
179
150
|
export const ScopeSchema = SchemaFactory.createForClass(Scope);
|