@chevre/domain 24.0.0-alpha.87 → 24.0.0-alpha.88

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.
@@ -0,0 +1,40 @@
1
+ import { factory } from '../../factory';
2
+ export type IStartParams = factory.transaction.placeOrder.IStartParamsWithoutDetail & {
3
+ broker?: factory.order.IBroker;
4
+ };
5
+ export type IOrderURLGenerator = (order: factory.transaction.placeOrder.IOrderAsResult) => string;
6
+ export type IResultOrderParams = factory.transaction.placeOrder.IResultOrderParams & {
7
+ /**
8
+ * 注文日時
9
+ */
10
+ orderDate: Date;
11
+ /**
12
+ * 注文確認URLのカスタム指定
13
+ */
14
+ url?: string | IOrderURLGenerator;
15
+ /**
16
+ * オファー制約
17
+ */
18
+ numItems: {
19
+ maxValue: number;
20
+ minValue: number;
21
+ /**
22
+ * 最大COA予約数
23
+ */
24
+ maxNumCOAReservationNumbers: number;
25
+ };
26
+ /**
27
+ * 注文アイテム制約
28
+ */
29
+ orderedItem: {
30
+ maxValue: number;
31
+ };
32
+ };
33
+ export type IConfirmParams = factory.transaction.placeOrder.IConfirmParams & {
34
+ project: {
35
+ id: string;
36
+ };
37
+ result: {
38
+ order: IResultOrderParams;
39
+ };
40
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,48 +1,5 @@
1
1
  import { factory } from '../factory';
2
+ export * as PlaceOrderFactory from './transaction/placeOrder';
2
3
  export type IPassportValidator = (params: {
3
4
  passport: factory.waiter.passport.IPassport;
4
5
  }) => boolean;
5
- export declare namespace placeOrder {
6
- type IStartParams = factory.transaction.placeOrder.IStartParamsWithoutDetail & {
7
- broker?: factory.order.IBroker;
8
- };
9
- type IOrderURLGenerator = (order: factory.transaction.placeOrder.IOrderAsResult) => string;
10
- type IResultOrderParams = factory.transaction.placeOrder.IResultOrderParams & {
11
- /**
12
- * 注文日時
13
- */
14
- orderDate: Date;
15
- /**
16
- * 確認番号のカスタム指定
17
- */
18
- /**
19
- * 注文確認URLのカスタム指定
20
- */
21
- url?: string | IOrderURLGenerator;
22
- /**
23
- * オファー制約
24
- */
25
- numItems: {
26
- maxValue: number;
27
- minValue: number;
28
- /**
29
- * 最大COA予約数
30
- */
31
- maxNumCOAReservationNumbers: number;
32
- };
33
- /**
34
- * 注文アイテム制約
35
- */
36
- orderedItem: {
37
- maxValue: number;
38
- };
39
- };
40
- type IConfirmParams = factory.transaction.placeOrder.IConfirmParams & {
41
- project: {
42
- id: string;
43
- };
44
- result: {
45
- order: IResultOrderParams;
46
- };
47
- };
48
- }
@@ -1,2 +1,37 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
2
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.PlaceOrderFactory = void 0;
37
+ exports.PlaceOrderFactory = __importStar(require("./transaction/placeOrder"));
@@ -1,5 +1,5 @@
1
1
  import { factory } from '../../../../factory';
2
- import { placeOrder as PlaceOrderFactory } from '../../../../factory/transaction';
2
+ import { PlaceOrderFactory } from '../../../../factory/transaction';
3
3
  import { IAcceptPayAction, IAuthorizeEventServiceOffer, IAuthorizePaymentAction, IPayTransaction } from './validation/factory';
4
4
  export { IAcceptPayAction, IAuthorizeEventServiceOffer, IAuthorizePaymentAction, IPayTransaction };
5
5
  /**
@@ -12,7 +12,7 @@ import type { ProjectRepo } from '../../../repo/project';
12
12
  import type { SettingRepo } from '../../../repo/setting';
13
13
  import type { PlaceOrderRepo } from '../../../repo/transaction/placeOrder';
14
14
  import { factory } from '../../../factory';
15
- import { placeOrder as PlaceOrderFactory } from '../../../factory/transaction';
15
+ import { PlaceOrderFactory } from '../../../factory/transaction';
16
16
  interface IConfirmOperationRepos {
17
17
  action?: never;
18
18
  acceptPayAction: AcceptPayActionRepo;
@@ -5,7 +5,7 @@ import type { PassportRepo } from '../../../repo/passport';
5
5
  import type { ProjectMakesOfferRepo } from '../../../repo/projectMakesOffer';
6
6
  import type { SellerRepo } from '../../../repo/seller';
7
7
  import type { IStartedPlaceOrder, PlaceOrderRepo } from '../../../repo/transaction/placeOrder';
8
- import { placeOrder as PlaceOrderFactory } from '../../../factory/transaction';
8
+ import { PlaceOrderFactory } from '../../../factory/transaction';
9
9
  interface IStartOperationRepos {
10
10
  issuer: IssuerRepo;
11
11
  member: MemberRepo;
@@ -34,6 +34,7 @@ var __importStar = (this && this.__importStar) || (function () {
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.factory = exports.transaction = exports.task = exports.reserve = exports.project = exports.payment = exports.order = exports.offer = exports.notification = exports.iam = exports.event = exports.assetTransaction = exports.aggregation = void 0;
37
+ /* eslint-disable @typescript-eslint/no-namespace */
37
38
  /**
38
39
  * service module
39
40
  */
package/package.json CHANGED
@@ -91,5 +91,5 @@
91
91
  "postversion": "git push origin --tags",
92
92
  "prepublishOnly": "npm run clean && npm run build"
93
93
  },
94
- "version": "24.0.0-alpha.87"
94
+ "version": "24.0.0-alpha.88"
95
95
  }