@chevre/domain 21.26.0-alpha.6 → 21.26.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.
@@ -22,11 +22,11 @@ async function main() {
22
22
  orderDate: {
23
23
  $gte: moment()
24
24
  // tslint:disable-next-line:no-magic-numbers
25
- .add(-275, 'days')
25
+ .add(-280, 'days')
26
26
  .toDate(),
27
27
  $lte: moment()
28
28
  // tslint:disable-next-line:no-magic-numbers
29
- .add(-270, 'days')
29
+ .add(-275, 'days')
30
30
  .toDate()
31
31
  }
32
32
  },
@@ -26,7 +26,9 @@ import type { Connection, FilterQuery } from 'mongoose';
26
26
  import * as factory from '../factory';
27
27
  type IOrderWithoutAcceptedOffers = factory.order.IOrder;
28
28
  type IKeyOfProjection = keyof IOrderWithoutAcceptedOffers | '_id';
29
- export type IReturnedOrder = Pick<IOrderWithoutAcceptedOffers, 'project' | 'typeOf' | 'orderNumber' | 'dateReturned' | 'id' | 'customer' | 'returner' | 'seller' | 'price' | 'priceCurrency' | 'orderDate'>;
29
+ export type IReturnedOrder = Pick<IOrderWithoutAcceptedOffers, 'project' | 'typeOf' | 'orderNumber' | 'dateReturned' | 'id' | 'customer' | 'returner' | 'seller' | 'price' | 'priceCurrency' | 'orderDate'> & {
30
+ id: string;
31
+ };
30
32
  /**
31
33
  * 注文リポジトリ
32
34
  */
@@ -26,7 +26,9 @@ import { AnyExpression, Connection, FilterQuery } from 'mongoose';
26
26
  import * as factory from '../factory';
27
27
  export type ISeller = Omit<factory.seller.ISeller, 'paymentAccepted'>;
28
28
  export type ISavingSeller = Omit<factory.seller.ISeller, 'paymentAccepted'>;
29
- export type ISellerByAggregate = Pick<ISeller, 'additionalProperty' | 'branchCode' | 'hasMerchantReturnPolicy' | 'id' | 'name' | 'project' | 'telephone' | 'typeOf' | 'url'>;
29
+ export type ISellerByAggregate = Pick<ISeller, 'additionalProperty' | 'branchCode' | 'hasMerchantReturnPolicy' | 'id' | 'name' | 'project' | 'telephone' | 'typeOf' | 'url'> & {
30
+ id: string;
31
+ };
30
32
  export interface IMemberSearchConditions {
31
33
  /**
32
34
  * 販売者メンバーで絞る場合
@@ -56,7 +58,9 @@ export declare class MongoRepository {
56
58
  save(params: {
57
59
  id?: string;
58
60
  attributes: ISavingSeller;
59
- }): Promise<ISavingSeller>;
61
+ }): Promise<ISavingSeller & {
62
+ id: string;
63
+ }>;
60
64
  /**
61
65
  * 集計検索(publicな属性検索が目的)
62
66
  */
@@ -64,7 +68,9 @@ export declare class MongoRepository {
64
68
  /**
65
69
  * 販売者検索
66
70
  */
67
- search(conditions: factory.seller.ISearchConditions & IMemberSearchConditions, inclusion: IKeyOfProjection[], exclusion: IKeyOfProjection[]): Promise<ISeller[]>;
71
+ search(conditions: factory.seller.ISearchConditions & IMemberSearchConditions, inclusion: IKeyOfProjection[], exclusion: IKeyOfProjection[]): Promise<(ISeller & {
72
+ id: string;
73
+ })[]>;
68
74
  /**
69
75
  * 販売者を削除する
70
76
  */
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": "21.26.0-alpha.6"
113
+ "version": "21.26.0-alpha.7"
114
114
  }