@chevre/domain 28.0.0-alpha.36 → 28.0.0-alpha.37

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,6 +1,6 @@
1
1
  import type { Connection } from 'mongoose';
2
2
  import { factory } from '../factory';
3
- type IFindParams = Pick<factory.accountTitle.ISearchConditions, 'codeValue' | 'limit' | 'name' | 'page' | 'project' | 'sort' | 'additionalProperty' | 'inCodeSet'>;
3
+ type IFindParams = Pick<factory.accountTitle.ISearchConditions, 'codeValue' | 'limit' | 'name' | 'page' | 'project' | 'additionalProperty' | 'inCodeSet'>;
4
4
  /**
5
5
  * 細目管理リポジトリ
6
6
  */
@@ -27,7 +27,16 @@ export declare class AdminAccountTitleRepo {
27
27
  }): Promise<{
28
28
  id: string;
29
29
  }>;
30
- findAccountTitles(params: IFindParams): Promise<Pick<factory.accountTitle.IAccountTitle, 'codeValue' | 'name' | 'project' | 'typeOf'>[]>;
30
+ findAccountTitles(params: IFindParams): Promise<(Pick<factory.accountTitle.IAccountTitle, 'codeValue' | 'name' | 'additionalProperty'> & {
31
+ inCodeSet: {
32
+ codeValue: string;
33
+ name?: string;
34
+ inCodeSet: {
35
+ codeValue: string;
36
+ name?: string;
37
+ };
38
+ };
39
+ })[]>;
31
40
  deleteAccountTitleByCodeValue(params: {
32
41
  projectId: string;
33
42
  codeValue: string;
@@ -173,7 +173,6 @@ class AdminAccountTitleRepo {
173
173
  codeValue: '$codeValue',
174
174
  name: '$name'
175
175
  },
176
- inDefinedTermSet: '$hasCategoryCode.inDefinedTermSet'
177
176
  },
178
177
  additionalProperty: '$hasCategoryCode.hasCategoryCode.additionalProperty'
179
178
  }
@@ -24,7 +24,7 @@ export declare class AdminAccountTitleCategoryRepo {
24
24
  updateAccountTitleCategory(params: Pick<factory.accountTitle.IAccountTitle, 'codeValue' | 'name' | 'project'>): Promise<{
25
25
  id: string;
26
26
  }>;
27
- findAccountTitleCategories(params: IFindParams): Promise<Pick<factory.accountTitle.IAccountTitle, 'codeValue' | 'name' | 'project' | 'typeOf'>[]>;
27
+ findAccountTitleCategories(params: IFindParams): Promise<Pick<factory.accountTitle.IAccountTitle, 'codeValue' | 'name'>[]>;
28
28
  deleteAccountTitleCategoryByCodeValue(params: {
29
29
  projectId: string;
30
30
  codeValue: string;
@@ -94,15 +94,13 @@ class AdminAccountTitleCategoryRepo {
94
94
  _id: 0,
95
95
  codeValue: 1,
96
96
  name: 1,
97
- project: 1,
98
- typeOf: 1
99
97
  });
100
98
  if (typeof params.limit === 'number' && typeof params.page === 'number') {
101
99
  query.limit(params.limit)
102
100
  .skip(params.limit * (params.page - 1));
103
101
  }
104
102
  if (typeof params.sort?.codeValue === 'number') {
105
- query.sort({ params: params.sort.codeValue });
103
+ query.sort({ codeValue: params.sort.codeValue });
106
104
  }
107
105
  return query.setOptions({ maxTimeMS: settings_1.MONGO_MAX_TIME_MS })
108
106
  .lean()
@@ -1,6 +1,6 @@
1
1
  import type { Connection } from 'mongoose';
2
2
  import { factory } from '../factory';
3
- type IFindParams = Pick<factory.accountTitle.ISearchConditions, 'codeValue' | 'limit' | 'name' | 'page' | 'project' | 'sort'> & {
3
+ type IFindParams = Pick<factory.accountTitle.ISearchConditions, 'codeValue' | 'limit' | 'name' | 'page' | 'project'> & {
4
4
  inCodeSet?: {
5
5
  codeValue?: string | {
6
6
  $eq?: string;
package/package.json CHANGED
@@ -88,5 +88,5 @@
88
88
  "postversion": "git push origin --tags",
89
89
  "prepublishOnly": "npm run clean && npm run build"
90
90
  },
91
- "version": "28.0.0-alpha.36"
91
+ "version": "28.0.0-alpha.37"
92
92
  }