@grapadigital/shared-schemas 1.0.176 → 1.0.177

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.
@@ -37,6 +37,7 @@ export declare const TASK_TYPE_VALUES: readonly ["briefing", "script", "producti
37
37
  export type TaskType = (typeof TASK_TYPE_VALUES)[number];
38
38
  export declare const TASK_STATUS_BY_TYPE: Record<TaskType, string[]>;
39
39
  export type TaskStatus = 'awaiting' | 'pending' | 'late' | 'done' | 'cancelled' | 'approval' | 'rework';
40
+ export declare const TASK_STATUS_VALUES: TaskStatus[];
40
41
  export declare class Task {
41
42
  _id?: Types.ObjectId;
42
43
  recruitment: Types.ObjectId | Recruitment;
@@ -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.TaskModel = exports.TaskSchema = exports.Task = exports.TASK_STATUS_BY_TYPE = exports.TASK_TYPE_VALUES = exports.TASK_FORMAT_VALUES = void 0;
12
+ exports.TaskModel = exports.TaskSchema = exports.Task = exports.TASK_STATUS_VALUES = exports.TASK_STATUS_BY_TYPE = exports.TASK_TYPE_VALUES = exports.TASK_FORMAT_VALUES = void 0;
13
13
  const mongoose_1 = require("@nestjs/mongoose");
14
14
  const swagger_1 = require("@nestjs/swagger");
15
15
  const mongoose_2 = require("mongoose");
@@ -40,6 +40,15 @@ exports.TASK_STATUS_BY_TYPE = {
40
40
  analytics: ['awaiting', 'pending', 'late', 'done', 'cancelled'],
41
41
  diagnosis: ['awaiting', 'pending', 'late', 'done', 'cancelled'],
42
42
  };
43
+ exports.TASK_STATUS_VALUES = [
44
+ 'awaiting',
45
+ 'pending',
46
+ 'late',
47
+ 'approval',
48
+ 'rework',
49
+ 'done',
50
+ 'cancelled',
51
+ ];
43
52
  let Task = class Task {
44
53
  };
45
54
  __decorate([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grapadigital/shared-schemas",
3
- "version": "1.0.176",
3
+ "version": "1.0.177",
4
4
  "description": "Shared Mongoose Schemas",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -54,6 +54,16 @@ export const TASK_STATUS_BY_TYPE: Record<TaskType, string[]> = {
54
54
 
55
55
  export type TaskStatus = 'awaiting' | 'pending' | 'late' | 'done' | 'cancelled' | 'approval' | 'rework';
56
56
 
57
+ export const TASK_STATUS_VALUES: TaskStatus[] = [
58
+ 'awaiting',
59
+ 'pending',
60
+ 'late',
61
+ 'approval',
62
+ 'rework',
63
+ 'done',
64
+ 'cancelled',
65
+ ];
66
+
57
67
  @Schema({ timestamps: true })
58
68
  export class Task {
59
69
  @ApiProperty({ example: '64bfc3a78d3f1e2a12345670' })