@grapadigital/shared-schemas 1.0.212 → 1.0.214
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.
- package/dist/schemas/commission.schema.d.ts +1 -1
- package/dist/schemas/commission.schema.js +1 -1
- package/dist/schemas/recruitment.schema.d.ts +13 -0
- package/dist/schemas/recruitment.schema.js +16 -1
- package/package.json +1 -1
- package/src/schemas/commission.schema.ts +2 -2
- package/src/schemas/recruitment.schema.ts +10 -0
|
@@ -57,7 +57,7 @@ export declare class Commission {
|
|
|
57
57
|
reason?: string;
|
|
58
58
|
createdAt?: Date;
|
|
59
59
|
updatedAt?: Date;
|
|
60
|
-
organization
|
|
60
|
+
organization: Types.ObjectId;
|
|
61
61
|
payment?: Types.ObjectId;
|
|
62
62
|
}
|
|
63
63
|
export declare const CommissionSchema: MongooseSchema<Commission, import("mongoose").Model<Commission, any, any, any, import("mongoose").Document<unknown, any, Commission, any, {}> & Commission & Required<{
|
|
@@ -109,7 +109,7 @@ __decorate([
|
|
|
109
109
|
__metadata("design:type", Date)
|
|
110
110
|
], Commission.prototype, "updatedAt", void 0);
|
|
111
111
|
__decorate([
|
|
112
|
-
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, required:
|
|
112
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, required: true }),
|
|
113
113
|
__metadata("design:type", mongoose_2.Types.ObjectId)
|
|
114
114
|
], Commission.prototype, "organization", void 0);
|
|
115
115
|
__decorate([
|
|
@@ -121,6 +121,18 @@ export declare const CollabSchema: MongooseSchema<Collab, import("mongoose").Mod
|
|
|
121
121
|
} & {
|
|
122
122
|
__v: number;
|
|
123
123
|
}>;
|
|
124
|
+
export declare class OptIn {
|
|
125
|
+
hasOptIn: boolean;
|
|
126
|
+
}
|
|
127
|
+
export declare const OptInSchema: MongooseSchema<OptIn, import("mongoose").Model<OptIn, any, any, any, import("mongoose").Document<unknown, any, OptIn, any, {}> & OptIn & {
|
|
128
|
+
_id: Types.ObjectId;
|
|
129
|
+
} & {
|
|
130
|
+
__v: number;
|
|
131
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, OptIn, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<OptIn>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<OptIn> & {
|
|
132
|
+
_id: Types.ObjectId;
|
|
133
|
+
} & {
|
|
134
|
+
__v: number;
|
|
135
|
+
}>;
|
|
124
136
|
export declare class ScopeEstimateMetrics {
|
|
125
137
|
impressionCount: number;
|
|
126
138
|
reachCount: number;
|
|
@@ -175,6 +187,7 @@ export declare class Scope {
|
|
|
175
187
|
payment?: Payment;
|
|
176
188
|
advisorPayment?: Payment;
|
|
177
189
|
collab?: Collab;
|
|
190
|
+
optIn?: OptIn;
|
|
178
191
|
exchange?: Exchange;
|
|
179
192
|
exclusivity?: boolean;
|
|
180
193
|
estimates?: ScopeEstimates;
|
|
@@ -9,7 +9,7 @@ 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.RecruitmentProfileSchema = exports.RecruitmentProfile = exports.ScopeSchema = exports.Scope = exports.ScopeEstimatesSchema = exports.ScopeEstimates = exports.ScopeEstimateBreakdownSchema = exports.ScopeEstimateBreakdown = exports.ScopeEstimateMetricsSchema = exports.ScopeEstimateMetrics = 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;
|
|
12
|
+
exports.RecruitmentModel = exports.RecruitmentSchema = exports.Recruitment = exports.RecruitmentProfileSchema = exports.RecruitmentProfile = exports.ScopeSchema = exports.Scope = exports.ScopeEstimatesSchema = exports.ScopeEstimates = exports.ScopeEstimateBreakdownSchema = exports.ScopeEstimateBreakdown = exports.ScopeEstimateMetricsSchema = exports.ScopeEstimateMetrics = exports.OptInSchema = exports.OptIn = 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 {
|
|
@@ -160,6 +160,17 @@ Collab = __decorate([
|
|
|
160
160
|
], Collab);
|
|
161
161
|
exports.Collab = Collab;
|
|
162
162
|
exports.CollabSchema = mongoose_1.SchemaFactory.createForClass(Collab);
|
|
163
|
+
let OptIn = class OptIn {
|
|
164
|
+
};
|
|
165
|
+
__decorate([
|
|
166
|
+
(0, mongoose_1.Prop)(),
|
|
167
|
+
__metadata("design:type", Boolean)
|
|
168
|
+
], OptIn.prototype, "hasOptIn", void 0);
|
|
169
|
+
OptIn = __decorate([
|
|
170
|
+
(0, mongoose_1.Schema)({ _id: false })
|
|
171
|
+
], OptIn);
|
|
172
|
+
exports.OptIn = OptIn;
|
|
173
|
+
exports.OptInSchema = mongoose_1.SchemaFactory.createForClass(OptIn);
|
|
163
174
|
let ScopeEstimateMetrics = class ScopeEstimateMetrics {
|
|
164
175
|
};
|
|
165
176
|
__decorate([
|
|
@@ -263,6 +274,10 @@ __decorate([
|
|
|
263
274
|
(0, mongoose_1.Prop)({ type: exports.CollabSchema, required: false }),
|
|
264
275
|
__metadata("design:type", Collab)
|
|
265
276
|
], Scope.prototype, "collab", void 0);
|
|
277
|
+
__decorate([
|
|
278
|
+
(0, mongoose_1.Prop)({ type: exports.OptInSchema, required: false }),
|
|
279
|
+
__metadata("design:type", OptIn)
|
|
280
|
+
], Scope.prototype, "optIn", void 0);
|
|
266
281
|
__decorate([
|
|
267
282
|
(0, mongoose_1.Prop)({ type: exports.ExchangeSchema, required: false }),
|
|
268
283
|
__metadata("design:type", Exchange)
|
package/package.json
CHANGED
|
@@ -87,8 +87,8 @@ export class Commission {
|
|
|
87
87
|
@Prop({ type: Date, default: Date.now, required: false })
|
|
88
88
|
updatedAt?: Date;
|
|
89
89
|
|
|
90
|
-
@Prop({ type: MongooseSchema.Types.ObjectId, required:
|
|
91
|
-
organization
|
|
90
|
+
@Prop({ type: MongooseSchema.Types.ObjectId, required: true })
|
|
91
|
+
organization: Types.ObjectId;
|
|
92
92
|
|
|
93
93
|
@Prop({ type: MongooseSchema.Types.ObjectId, ref: 'Payment', required: false })
|
|
94
94
|
payment?: Types.ObjectId;
|
|
@@ -116,6 +116,13 @@ export class Collab {
|
|
|
116
116
|
|
|
117
117
|
export const CollabSchema = SchemaFactory.createForClass(Collab);
|
|
118
118
|
|
|
119
|
+
@Schema({ _id: false })
|
|
120
|
+
export class OptIn {
|
|
121
|
+
@Prop()
|
|
122
|
+
hasOptIn: boolean;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export const OptInSchema = SchemaFactory.createForClass(OptIn);
|
|
119
126
|
|
|
120
127
|
|
|
121
128
|
@Schema({ _id: false })
|
|
@@ -168,6 +175,9 @@ export class Scope {
|
|
|
168
175
|
@Prop({ type: CollabSchema, required: false })
|
|
169
176
|
collab?: Collab;
|
|
170
177
|
|
|
178
|
+
@Prop({ type: OptInSchema, required: false })
|
|
179
|
+
optIn?: OptIn;
|
|
180
|
+
|
|
171
181
|
@Prop({ type: ExchangeSchema, required: false })
|
|
172
182
|
exchange?: Exchange;
|
|
173
183
|
|