@chevre/domain 22.9.0-alpha.90 → 22.9.0-alpha.91

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.
@@ -4,7 +4,7 @@ import * as mongoose from 'mongoose';
4
4
 
5
5
  import { chevre } from '../../../lib/index';
6
6
 
7
- const TASK_STORAGE_PERIOD_IN_MINUTES = 129600; // 90*24*60
7
+ const TASK_STORAGE_PERIOD_IN_MINUTES = 86400; // 60*24*60
8
8
  // const TASK_STORAGE_PERIOD_IN_MINUTES = 144000; // 100*24*60
9
9
  // const TASK_STORAGE_PERIOD_IN_MINUTES = 171360; // 119*24*60
10
10
 
@@ -14,7 +14,7 @@ async function main() {
14
14
 
15
15
  const taskRepo = await chevre.repository.Task.createInstance(mongoose.connection);
16
16
 
17
- let taskInMinutes = 172800; // 120*24*60
17
+ let taskInMinutes = 129600; // 90*24*60
18
18
  // tslint:disable-next-line:no-magic-numbers
19
19
  while (taskInMinutes > TASK_STORAGE_PERIOD_IN_MINUTES) {
20
20
  taskInMinutes -= 1;
@@ -10,6 +10,7 @@ exports.modelName = modelName;
10
10
  const schemaDefinition = {
11
11
  alternateName: String, // add(2025-03-28~)
12
12
  identifier: String,
13
+ description: String, // add(2025-03-30~)
13
14
  project: { type: mongoose_1.SchemaTypes.Mixed, required: true },
14
15
  name: { type: String, required: true },
15
16
  status: { type: String, required: true },
@@ -25,7 +25,7 @@ export type IExecutableTaskKeys = 'data' | 'id' | 'name' | 'status' | 'numberOfT
25
25
  export type IExecutableTask<T extends factory.taskName> = Pick<factory.task.ITask<T>, IExecutableTaskKeys>;
26
26
  type IDelayedTask = Pick<factory.task.ITask<factory.taskName>, 'id' | 'name' | 'status'>;
27
27
  type IKeyOfProjection = keyof factory.task.ITask<factory.taskName>;
28
- type ICreatingTask = Pick<factory.task.IAttributes<factory.taskName>, 'data' | 'executionResults' | 'name' | 'numberOfTried' | 'project' | 'remainingNumberOfTries' | 'runsAt' | 'status' | 'identifier'>;
28
+ type ICreatingTask = Pick<factory.task.IAttributes<factory.taskName>, 'data' | 'executionResults' | 'name' | 'numberOfTried' | 'project' | 'remainingNumberOfTries' | 'runsAt' | 'status' | 'identifier' | 'description'>;
29
29
  /**
30
30
  * タスクリポジトリ
31
31
  */
@@ -229,6 +229,7 @@ export declare class TaskRepo {
229
229
  getCursor(conditions: FilterQuery<factory.task.ITask<factory.taskName>>, projection: ProjectionType<factory.task.ITask<factory.taskName>>): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, {
230
230
  alternateName?: string | undefined;
231
231
  identifier?: string | undefined;
232
+ description?: string | undefined;
232
233
  project: Pick<factory.project.IProject, "id" | "typeOf">;
233
234
  name: factory.taskName;
234
235
  status: factory.taskStatus;
@@ -244,6 +245,7 @@ export declare class TaskRepo {
244
245
  }> & {
245
246
  alternateName?: string | undefined;
246
247
  identifier?: string | undefined;
248
+ description?: string | undefined;
247
249
  project: Pick<factory.project.IProject, "id" | "typeOf">;
248
250
  name: factory.taskName;
249
251
  status: factory.taskStatus;
@@ -261,6 +263,7 @@ export declare class TaskRepo {
261
263
  }, import("mongoose").QueryOptions<import("mongoose").Document<unknown, {}, {
262
264
  alternateName?: string | undefined;
263
265
  identifier?: string | undefined;
266
+ description?: string | undefined;
264
267
  project: Pick<factory.project.IProject, "id" | "typeOf">;
265
268
  name: factory.taskName;
266
269
  status: factory.taskStatus;
@@ -276,6 +279,7 @@ export declare class TaskRepo {
276
279
  }> & {
277
280
  alternateName?: string | undefined;
278
281
  identifier?: string | undefined;
282
+ description?: string | undefined;
279
283
  project: Pick<factory.project.IProject, "id" | "typeOf">;
280
284
  name: factory.taskName;
281
285
  status: factory.taskStatus;
@@ -51,6 +51,7 @@ const executableTaskProjection = {
51
51
  const AVAILABLE_PROJECT_FIELDS = [
52
52
  'alternateName',
53
53
  'identifier',
54
+ 'description',
54
55
  'project',
55
56
  'name',
56
57
  'status',
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "dependencies": {
12
12
  "@aws-sdk/client-cognito-identity-provider": "3.600.0",
13
13
  "@aws-sdk/credential-providers": "3.600.0",
14
- "@chevre/factory": "4.393.0-alpha.44",
14
+ "@chevre/factory": "4.393.0-alpha.45",
15
15
  "@cinerino/sdk": "10.21.0-alpha.28",
16
16
  "@motionpicture/coa-service": "9.6.0",
17
17
  "@motionpicture/gmo-service": "5.3.0",
@@ -104,7 +104,8 @@
104
104
  "doc": "echo \"implementing...\" && exit 0",
105
105
  "mocha": "mocha",
106
106
  "nyc": "nyc mocha \"src/**/*.spec.ts\"",
107
- "coverage": "npm run nyc && nyc report --reporter=text-lcov | coveralls",
107
+ "coverage2": "npm run nyc && nyc report --reporter=text-lcov | coveralls",
108
+ "coverage": "npm run nyc && nyc report --reporter=text-lcov",
108
109
  "test": "npm run check && npm run coverage",
109
110
  "tslint": "tslint --project tsconfig.json -c tslint.json --exclude \"**/*.spec.ts\" \"src/**/*.ts\"",
110
111
  "eslint": "eslint src/**/*.ts",
@@ -113,5 +114,5 @@
113
114
  "postversion": "git push origin --tags",
114
115
  "prepublishOnly": "npm run clean && npm run build && npm test && npm run doc"
115
116
  },
116
- "version": "22.9.0-alpha.90"
117
+ "version": "22.9.0-alpha.91"
117
118
  }