@grapadigital/shared-schemas 1.0.104 → 1.0.105

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,7 +26,6 @@
26
26
  import { HydratedDocument, Schema as MongooseSchema, Types } from 'mongoose';
27
27
  import { Action } from './action.schema';
28
28
  import { Profile } from './profile.schema';
29
- import { Content } from './content.schema';
30
29
  export type RecruitmentDocument = HydratedDocument<Recruitment>;
31
30
  export declare class Delivery {
32
31
  reels: number;
@@ -176,13 +175,7 @@ export declare class Recruitment {
176
175
  status: 'selected' | 'inContact' | 'inApproval' | 'recruited' | 'removed';
177
176
  action: Types.ObjectId | Action;
178
177
  profile: Types.ObjectId | Profile;
179
- reel: Types.ObjectId[] | Content[];
180
- image: Types.ObjectId[] | Content[];
181
- carousel: Types.ObjectId[] | Content[];
182
- story: Types.ObjectId[] | Content[];
183
- tiktok: Types.ObjectId[] | Content[];
184
- youtube: Types.ObjectId[] | Content[];
185
- scope: Scope;
178
+ scope?: Scope;
186
179
  createdAt?: Date;
187
180
  updatedAt?: Date;
188
181
  }
@@ -273,30 +273,6 @@ __decorate([
273
273
  (0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, ref: 'Profile' }),
274
274
  __metadata("design:type", Object)
275
275
  ], Recruitment.prototype, "profile", void 0);
276
- __decorate([
277
- (0, mongoose_1.Prop)([{ type: mongoose_2.Schema.Types.ObjectId, ref: 'Content' }]),
278
- __metadata("design:type", Array)
279
- ], Recruitment.prototype, "reel", void 0);
280
- __decorate([
281
- (0, mongoose_1.Prop)([{ type: mongoose_2.Schema.Types.ObjectId, ref: 'Content' }]),
282
- __metadata("design:type", Array)
283
- ], Recruitment.prototype, "image", void 0);
284
- __decorate([
285
- (0, mongoose_1.Prop)([{ type: mongoose_2.Schema.Types.ObjectId, ref: 'Content' }]),
286
- __metadata("design:type", Array)
287
- ], Recruitment.prototype, "carousel", void 0);
288
- __decorate([
289
- (0, mongoose_1.Prop)([{ type: mongoose_2.Schema.Types.ObjectId, ref: 'Content' }]),
290
- __metadata("design:type", Array)
291
- ], Recruitment.prototype, "story", void 0);
292
- __decorate([
293
- (0, mongoose_1.Prop)([{ type: mongoose_2.Schema.Types.ObjectId, ref: 'Content' }]),
294
- __metadata("design:type", Array)
295
- ], Recruitment.prototype, "tiktok", void 0);
296
- __decorate([
297
- (0, mongoose_1.Prop)([{ type: mongoose_2.Schema.Types.ObjectId, ref: 'Content' }]),
298
- __metadata("design:type", Array)
299
- ], Recruitment.prototype, "youtube", void 0);
300
276
  __decorate([
301
277
  (0, mongoose_1.Prop)({ type: exports.ScopeSchema }),
302
278
  __metadata("design:type", Scope)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grapadigital/shared-schemas",
3
- "version": "1.0.104",
3
+ "version": "1.0.105",
4
4
  "description": "Shared Mongoose Schemas",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -2,7 +2,6 @@ import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
2
2
  import { HydratedDocument, Schema as MongooseSchema, Types, model as MongooseModel } from 'mongoose';
3
3
  import { Action } from './action.schema';
4
4
  import { Profile } from './profile.schema';
5
- import { Content } from './content.schema';
6
5
 
7
6
  export type RecruitmentDocument = HydratedDocument<Recruitment>;
8
7
 
@@ -203,26 +202,8 @@ export class Recruitment {
203
202
  @Prop({ type: MongooseSchema.Types.ObjectId, ref: 'Profile' })
204
203
  profile: Types.ObjectId | Profile;
205
204
 
206
- @Prop([{ type: MongooseSchema.Types.ObjectId, ref: 'Content' }])
207
- reel: Types.ObjectId[] | Content[];
208
-
209
- @Prop([{ type: MongooseSchema.Types.ObjectId, ref: 'Content' }])
210
- image: Types.ObjectId[] | Content[];
211
-
212
- @Prop([{ type: MongooseSchema.Types.ObjectId, ref: 'Content' }])
213
- carousel: Types.ObjectId[] | Content[];
214
-
215
- @Prop([{ type: MongooseSchema.Types.ObjectId, ref: 'Content' }])
216
- story: Types.ObjectId[] | Content[];
217
-
218
- @Prop([{ type: MongooseSchema.Types.ObjectId, ref: 'Content' }])
219
- tiktok: Types.ObjectId[] | Content[];
220
-
221
- @Prop([{ type: MongooseSchema.Types.ObjectId, ref: 'Content' }])
222
- youtube: Types.ObjectId[] | Content[];
223
-
224
205
  @Prop({ type: ScopeSchema })
225
- scope: Scope;
206
+ scope?: Scope;
226
207
 
227
208
  @Prop({ default: Date.now, required: false })
228
209
  createdAt?: Date;