@chevre/factory 4.352.0-alpha.12 → 4.352.0-alpha.14

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.
@@ -2,26 +2,20 @@ import { AssetTransactionType } from '../../../assetTransactionType';
2
2
  import { ISimpleOrder } from '../../../order';
3
3
  import { TransactionType } from '../../../transactionType';
4
4
  import * as ConfirmActionFactory from '../confirm';
5
- /**
6
- * 転送元あるいは転送先の場所インターフェース
7
- */
8
5
  export interface IObject {
9
- pendingTransaction: {
10
- /**
11
- * 資産取引ID
12
- */
13
- id: string;
14
- };
15
6
  transactionNumber: string;
16
7
  typeOf: AssetTransactionType.MoneyTransfer;
17
8
  }
18
9
  export type IResult = any;
19
10
  export interface ITransactionPurpose {
20
- typeOf: TransactionType;
11
+ typeOf: TransactionType.MoneyTransfer;
21
12
  id: string;
22
13
  }
23
14
  export type IPurpose = ITransactionPurpose | ISimpleOrder;
24
15
  export interface IAttributes extends ConfirmActionFactory.IAttributes<IObject, IResult> {
16
+ /**
17
+ * 注文取引から発生した場合はISimpleOrder
18
+ */
25
19
  purpose: IPurpose;
26
20
  }
27
21
  /**
@@ -3,7 +3,7 @@ import { AssetTransactionType } from '../../../assetTransactionType';
3
3
  import { ISimpleOrder } from '../../../order';
4
4
  import * as ConfirmActionFactory from '../confirm';
5
5
  export type IObject = Pick<RegisterServiceFactory.IConfirmParams, 'transactionNumber' | 'endDate'> & {
6
- transactionNumber?: string;
6
+ transactionNumber: string;
7
7
  typeOf: AssetTransactionType.RegisterService;
8
8
  object?: {
9
9
  itemOffered?: {
@@ -1,7 +1,6 @@
1
1
  import { IParticipantAsCustomer, IParticipantAsPerson, IParticipantAsProject, IParticipantAsWebApplication } from '../../../action';
2
2
  import * as OrderFactory from '../../../order';
3
3
  import { IGood, IOwnershipInfo } from '../../../ownershipInfo';
4
- import { IAttributes as IRegisterServiceAttributes } from '../../interact/confirm/registerService';
5
4
  import * as SendActionFactory from '../send';
6
5
  import { IAttributes as ISendEmailMessageActionAttributes } from './message/email';
7
6
  export type IAgent = IParticipantAsPerson | IParticipantAsProject | IParticipantAsWebApplication;
@@ -20,10 +19,6 @@ export type IObject = OrderFactory.ISimpleOrder & {
20
19
  */
21
20
  export type IResult = IOwnershipInfo<IGood>[];
22
21
  export interface IPotentialActions {
23
- /**
24
- * サービス登録アクション
25
- */
26
- registerService?: IRegisterServiceAttributes[];
27
22
  /**
28
23
  * Eメール送信アクション
29
24
  */
@@ -30,7 +30,12 @@ export interface IObjectAsMoneyTransferTransaction {
30
30
  transactionNumber: string;
31
31
  status: TransactionStatusType.Confirmed;
32
32
  }
33
- export type IObject = IObjectAsPayTransaction | IObjectAsReserveTransaction | IObjectAsMoneyTransferTransaction;
33
+ export interface IObjectAsRegisterServiceTransaction {
34
+ typeOf: AssetTransactionType.RegisterService;
35
+ transactionNumber: string;
36
+ status: TransactionStatusType.Confirmed;
37
+ }
38
+ export type IObject = IObjectAsPayTransaction | IObjectAsReserveTransaction | IObjectAsMoneyTransferTransaction | IObjectAsRegisterServiceTransaction;
34
39
  export interface IData {
35
40
  project: Pick<IProject, 'id' | 'typeOf'>;
36
41
  object: IObject;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.352.0-alpha.12",
3
+ "version": "4.352.0-alpha.14",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",