@chevre/domain 26.0.0-alpha.22 → 26.0.0-alpha.23

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,6 +4,8 @@ import { IDocType } from './mongoose/schemas/task';
4
4
  type IKeyOfProjection = keyof factory.task.ITask<factory.taskName>;
5
5
  type IFindParams = factory.task.ISearchConditions & {
6
6
  data?: never;
7
+ lastTriedFrom?: never;
8
+ lastTriedThrough?: never;
7
9
  };
8
10
  /**
9
11
  * タスク管理リポジトリ
@@ -68,12 +68,12 @@ class AdminTaskRepo {
68
68
  if (params.runsThrough instanceof Date) {
69
69
  andConditions.push({ runsAt: { $lte: params.runsThrough } });
70
70
  }
71
- if (params.lastTriedFrom instanceof Date) {
72
- andConditions.push({ lastTriedAt: { $type: 'date', $gte: params.lastTriedFrom } });
73
- }
74
- if (params.lastTriedThrough instanceof Date) {
75
- andConditions.push({ lastTriedAt: { $type: 'date', $lte: params.lastTriedThrough } });
76
- }
71
+ // if (params.lastTriedFrom instanceof Date) {
72
+ // andConditions.push({ lastTriedAt: { $type: 'date', $gte: params.lastTriedFrom } });
73
+ // }
74
+ // if (params.lastTriedThrough instanceof Date) {
75
+ // andConditions.push({ lastTriedAt: { $type: 'date', $lte: params.lastTriedThrough } });
76
+ // }
77
77
  const dateAbortedGte = params.dateAborted?.$gte;
78
78
  if (dateAbortedGte instanceof Date) {
79
79
  andConditions.push({ dateAborted: { $type: 'date', $gte: dateAbortedGte } });
@@ -52,19 +52,19 @@ const schemaOptions = {
52
52
  const indexes = [
53
53
  [
54
54
  { 'project.id': 1, runsAt: -1 },
55
- { name: 'searchByProjectId-v20220721' }
55
+ { name: 'searchByProjectId-v20220721' } // タスク検索で使用中
56
56
  ],
57
57
  [
58
58
  { name: 1, runsAt: -1 },
59
- { name: 'searchByName-v2' }
59
+ { name: 'searchByName-v2' } // タスク検索で使用中
60
60
  ],
61
61
  [
62
62
  { status: 1, runsAt: -1 },
63
- { name: 'searchByStatus-v2' }
63
+ { name: 'searchByStatus-v2' } // タスク検索で使用中
64
64
  ],
65
65
  [
66
66
  { runsAt: -1 },
67
- { name: 'searchByRunsAt-v2' }
67
+ { name: 'searchByRunsAt-v2' } // タスク検索で使用中
68
68
  ],
69
69
  // identifierはユニークインデックス有なので不要(2026-08-07~)
70
70
  // [
@@ -80,21 +80,22 @@ const indexes = [
80
80
  [
81
81
  { dateAborted: 1, runsAt: -1 },
82
82
  {
83
- name: 'searchByDateAborted',
83
+ name: 'searchByDateAborted', // notifyAbortedTasksByEmailで使用中
84
84
  partialFilterExpression: {
85
85
  dateAborted: { $type: 'date' }
86
86
  }
87
87
  }
88
88
  ],
89
- [
90
- { lastTriedAt: 1, runsAt: -1 },
91
- {
92
- name: 'searchByLastTriedAt-v2',
93
- partialFilterExpression: {
94
- lastTriedAt: { $type: 'date' }
95
- }
96
- }
97
- ],
89
+ // discontinue(2026-08-08~)
90
+ // [
91
+ // { lastTriedAt: 1, runsAt: -1 },
92
+ // {
93
+ // name: 'searchByLastTriedAt-v2',
94
+ // partialFilterExpression: {
95
+ // lastTriedAt: { $type: 'date' }
96
+ // }
97
+ // }
98
+ // ],
98
99
  // discontinue(2026-08-08~)
99
100
  // [
100
101
  // { remainingNumberOfTries: 1, runsAt: -1 },
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "dependencies": {
12
12
  "@aws-sdk/client-cognito-identity-provider": "3.1090.0",
13
13
  "@aws-sdk/credential-providers": "3.1090.0",
14
- "@chevre/factory": "10.3.0-alpha.0",
14
+ "@chevre/factory": "10.3.0-alpha.1",
15
15
  "@motionpicture/coa-service": "10.0.0",
16
16
  "@motionpicture/gmo-service": "6.1.0-alpha.0",
17
17
  "@sendgrid/client": "8.1.4",
@@ -88,5 +88,5 @@
88
88
  "postversion": "git push origin --tags",
89
89
  "prepublishOnly": "npm run clean && npm run build"
90
90
  },
91
- "version": "26.0.0-alpha.22"
91
+ "version": "26.0.0-alpha.23"
92
92
  }