@chevre/domain 22.2.0-alpha.6 → 22.2.0-alpha.7

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.
@@ -24,7 +24,9 @@
24
24
  /// <reference types="mongoose/types/inferschematype" />
25
25
  import type { Connection } from 'mongoose';
26
26
  import * as factory from '../factory';
27
- export type IOwnershipInfo = factory.ownershipInfo.IOwnershipInfo<factory.ownershipInfo.IGood>;
27
+ export type IOwnershipInfoWithId = factory.ownershipInfo.IOwnershipInfo<factory.ownershipInfo.IGood> & {
28
+ id: string;
29
+ };
28
30
  /**
29
31
  * 所有権リポジトリ
30
32
  */
@@ -35,16 +37,16 @@ export declare class OwnershipInfoRepo {
35
37
  /**
36
38
  * なければ作成する
37
39
  */
38
- createIfNotExistByIdentifier(ownershipInfo: Omit<IOwnershipInfo, 'id'>): Promise<{
40
+ createIfNotExistByIdentifier(ownershipInfo: Omit<IOwnershipInfoWithId, 'id'>): Promise<{
39
41
  id: string;
40
42
  }>;
41
43
  projectFieldsById(params: {
42
44
  id: string;
43
- }, inclusion?: (keyof IOwnershipInfo)[]): Promise<IOwnershipInfo>;
45
+ }, inclusion?: (keyof IOwnershipInfoWithId)[]): Promise<IOwnershipInfoWithId>;
44
46
  /**
45
47
  * 所有権を検索する
46
48
  */
47
- search(params: factory.ownershipInfo.ISearchConditions, projection?: any): Promise<IOwnershipInfo[]>;
49
+ search(params: factory.ownershipInfo.ISearchConditions, projection?: any): Promise<IOwnershipInfoWithId[]>;
48
50
  /**
49
51
  * 識別子から所有期限を変更する
50
52
  * 存在しない場合undefinedを返す
@@ -55,7 +57,7 @@ export declare class OwnershipInfoRepo {
55
57
  };
56
58
  identifier: string;
57
59
  ownedThrough: Date;
58
- }): Promise<IOwnershipInfo | undefined>;
60
+ }): Promise<IOwnershipInfoWithId | undefined>;
59
61
  /**
60
62
  * 所有者の所有権を全て削除する
61
63
  */
package/package.json CHANGED
@@ -110,5 +110,5 @@
110
110
  "postversion": "git push origin --tags",
111
111
  "prepublishOnly": "npm run clean && npm run build && npm test && npm run doc"
112
112
  },
113
- "version": "22.2.0-alpha.6"
113
+ "version": "22.2.0-alpha.7"
114
114
  }