@taiger-common/model 1.0.17 → 1.0.19

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.
@@ -1,11 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.programSchema = exports.programModule = exports.PROGRAM_SUBJECT_KEYS = void 0;
3
+ exports.programSchema = exports.programModule = exports.DIFFICULTY_KEYS = exports.PROGRAM_SUBJECT_KEYS = void 0;
4
4
  var mongoose_1 = require("mongoose");
5
5
  var core_1 = require("@taiger-common/core");
6
6
  var ObjectId = mongoose_1.Schema.Types.ObjectId;
7
7
  var SCHOOL_TAG_KEYS = Object.keys(core_1.SCHOOL_TAGS);
8
8
  exports.PROGRAM_SUBJECT_KEYS = Object.keys(core_1.PROGRAM_SUBJECTS);
9
+ exports.DIFFICULTY_KEYS = Object.keys(exports.DIFFICULTY);
9
10
  // export type ProgramModule = {
10
11
  // [key: string]: any; // Allows dynamic key access
11
12
  // } & {
@@ -198,6 +199,10 @@ exports.programModule = {
198
199
  essay_requirements: {
199
200
  type: String
200
201
  },
202
+ essay_difficulty: {
203
+ type: String,
204
+ enum: exports.DIFFICULTY_KEYS
205
+ },
201
206
  portfolio_required: {
202
207
  type: String
203
208
  },
@@ -3,6 +3,7 @@ import { PROGRAM_SUBJECTS, SCHOOL_TAGS, SCHOOL_TYPES } from '@taiger-common/core
3
3
  var ObjectId = Schema.Types.ObjectId;
4
4
  var SCHOOL_TAG_KEYS = Object.keys(SCHOOL_TAGS);
5
5
  export var PROGRAM_SUBJECT_KEYS = Object.keys(PROGRAM_SUBJECTS);
6
+ export var DIFFICULTY_KEYS = Object.keys(DIFFICULTY);
6
7
  // export type ProgramModule = {
7
8
  // [key: string]: any; // Allows dynamic key access
8
9
  // } & {
@@ -195,6 +196,10 @@ export var programModule = {
195
196
  essay_requirements: {
196
197
  type: String
197
198
  },
199
+ essay_difficulty: {
200
+ type: String,
201
+ enum: DIFFICULTY_KEYS
202
+ },
198
203
  portfolio_required: {
199
204
  type: String
200
205
  },
@@ -25,6 +25,12 @@
25
25
  /// <reference types="mongoose/types/inferrawdoctype" />
26
26
  import { Schema } from 'mongoose';
27
27
  export declare const PROGRAM_SUBJECT_KEYS: string[];
28
+ export declare const DIFFICULTY: {
29
+ EASY: 'EASY';
30
+ MEDIUM: 'MEDIUM';
31
+ HARD: 'HARD';
32
+ };
33
+ export declare const DIFFICULTY_KEYS: string[];
28
34
  export declare const programModule: {
29
35
  isArchiv: BooleanConstructor;
30
36
  school: {
@@ -141,6 +147,10 @@ export declare const programModule: {
141
147
  essay_requirements: {
142
148
  type: StringConstructor;
143
149
  };
150
+ essay_difficulty: {
151
+ type: StringConstructor;
152
+ enum: string[];
153
+ };
144
154
  portfolio_required: {
145
155
  type: StringConstructor;
146
156
  };
@@ -275,6 +285,7 @@ export declare const programSchema: Schema<any, import("mongoose").Model<any, an
275
285
  is_rl_specific?: boolean | null | undefined;
276
286
  essay_required?: string | null | undefined;
277
287
  essay_requirements?: string | null | undefined;
288
+ essay_difficulty?: string | null | undefined;
278
289
  portfolio_required?: string | null | undefined;
279
290
  portfolio_requirements?: string | null | undefined;
280
291
  supplementary_form_required?: string | null | undefined;
@@ -347,6 +358,7 @@ export declare const programSchema: Schema<any, import("mongoose").Model<any, an
347
358
  is_rl_specific?: boolean | null | undefined;
348
359
  essay_required?: string | null | undefined;
349
360
  essay_requirements?: string | null | undefined;
361
+ essay_difficulty?: string | null | undefined;
350
362
  portfolio_required?: string | null | undefined;
351
363
  portfolio_requirements?: string | null | undefined;
352
364
  supplementary_form_required?: string | null | undefined;
@@ -419,6 +431,7 @@ export declare const programSchema: Schema<any, import("mongoose").Model<any, an
419
431
  is_rl_specific?: boolean | null | undefined;
420
432
  essay_required?: string | null | undefined;
421
433
  essay_requirements?: string | null | undefined;
434
+ essay_difficulty?: string | null | undefined;
422
435
  portfolio_required?: string | null | undefined;
423
436
  portfolio_requirements?: string | null | undefined;
424
437
  supplementary_form_required?: string | null | undefined;