@chevre/domain 26.0.0-alpha.30 → 26.0.0-alpha.31

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.
@@ -8,13 +8,6 @@ type IAction = IDocType & {
8
8
  type IKeyOfProjection = keyof IDocType;
9
9
  type IFindParams = Pick<factory.action.ISearchConditions, 'limit' | 'page' | 'project' | 'sort' | 'startFrom' | 'startThrough'> & {
10
10
  id?: string;
11
- object?: {
12
- id?: string;
13
- orderNumber?: string;
14
- };
15
- about?: {
16
- orderNumber?: string;
17
- };
18
11
  };
19
12
  /**
20
13
  * 通知アクションリポジトリ
@@ -49,18 +49,18 @@ class InformActionRepo {
49
49
  if (typeof projectIdEq === 'string') {
50
50
  andConditions.push({ 'project.id': { $eq: projectIdEq } });
51
51
  }
52
- const objectIdEq = params.object?.id;
53
- if (typeof objectIdEq === 'string') {
54
- andConditions.push({ 'object.id': { $exists: true, $eq: objectIdEq } });
55
- }
56
- const objectOrderNumberEq = params.object?.orderNumber;
57
- if (typeof objectOrderNumberEq === 'string') {
58
- andConditions.push({ 'object.orderNumber': { $exists: true, $eq: objectOrderNumberEq } });
59
- }
60
- const aboutOrderNumberEq = params.about?.orderNumber;
61
- if (typeof aboutOrderNumberEq === 'string') {
62
- andConditions.push({ 'about.orderNumber': { $exists: true, $eq: aboutOrderNumberEq } });
63
- }
52
+ // const objectIdEq = params.object?.id;
53
+ // if (typeof objectIdEq === 'string') {
54
+ // andConditions.push({ 'object.id': { $exists: true, $eq: objectIdEq } });
55
+ // }
56
+ // const objectOrderNumberEq = params.object?.orderNumber;
57
+ // if (typeof objectOrderNumberEq === 'string') {
58
+ // andConditions.push({ 'object.orderNumber': { $exists: true, $eq: objectOrderNumberEq } });
59
+ // }
60
+ // const aboutOrderNumberEq = params.about?.orderNumber;
61
+ // if (typeof aboutOrderNumberEq === 'string') {
62
+ // andConditions.push({ 'about.orderNumber': { $exists: true, $eq: aboutOrderNumberEq } });
63
+ // }
64
64
  const startDateGte = params.startFrom;
65
65
  if (startDateGte instanceof Date) {
66
66
  andConditions.push({ startDate: { $gte: startDateGte } });
@@ -13,8 +13,10 @@ import type { AuthorizePaymentMethodActionRepo } from './repo/action/authorizePa
13
13
  import type { AuthorizeTicketedObjectActionRepo } from './repo/action/authorizeTicketedObject';
14
14
  import type { CheckMovieTicketActionRepo } from './repo/action/checkMovieTicket';
15
15
  import type { CheckThingActionRepo } from './repo/action/checkThing';
16
+ import type { InformActionRepo } from './repo/action/inform';
16
17
  import type { PayActionRepo } from './repo/action/pay';
17
18
  import type { RefundActionRepo } from './repo/action/refund';
19
+ import type { UpdateActionRepo } from './repo/action/update';
18
20
  import type { AsyncActionRepo } from './repo/asyncAction';
19
21
  import type { AdditionalPropertyRepo } from './repo/additionalProperty';
20
22
  import type { AdminAssetTransactionRepo } from './repo/adminAssetTransaction';
@@ -103,7 +105,6 @@ import type { PlaceOrderRepo } from './repo/transaction/placeOrder';
103
105
  import type { ReturnOrderRepo } from './repo/transaction/returnOrder';
104
106
  import type { TransactionNumberRepo } from './repo/transactionNumber';
105
107
  import type { TransactionProcessRepo } from './repo/transactionProcess';
106
- import type { UpdateActionRepo } from './repo/action/update';
107
108
  import type { WebSiteRepo } from './repo/webSite';
108
109
  import type { ConfirmationNumberRepo } from './repo/confirmationNumber';
109
110
  import type { OrderNumberRepo } from './repo/orderNumber';
@@ -169,6 +170,10 @@ export declare namespace action {
169
170
  namespace Update {
170
171
  function createInstance(...params: ConstructorParameters<typeof UpdateActionRepo>): Promise<UpdateActionRepo>;
171
172
  }
173
+ type Inform = InformActionRepo;
174
+ namespace Inform {
175
+ function createInstance(...params: ConstructorParameters<typeof InformActionRepo>): Promise<InformActionRepo>;
176
+ }
172
177
  }
173
178
  export type AdditionalProperty = AdditionalPropertyRepo;
174
179
  export declare namespace AdditionalProperty {
@@ -169,6 +169,17 @@ var action;
169
169
  }
170
170
  Update.createInstance = createInstance;
171
171
  })(Update = action.Update || (action.Update = {}));
172
+ let Inform;
173
+ (function (Inform) {
174
+ let repo;
175
+ async function createInstance(...params) {
176
+ if (repo === undefined) {
177
+ repo = (await import('./repo/action/inform.js')).InformActionRepo;
178
+ }
179
+ return new repo(...params);
180
+ }
181
+ Inform.createInstance = createInstance;
182
+ })(Inform = action.Inform || (action.Inform = {}));
172
183
  })(action || (exports.action = action = {}));
173
184
  var AdditionalProperty;
174
185
  (function (AdditionalProperty) {
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": "26.0.0-alpha.30"
91
+ "version": "26.0.0-alpha.31"
92
92
  }