@chevre/factory 4.352.0-alpha.8 → 4.352.0

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.
@@ -17,7 +17,13 @@ export type IRecipient = ActionFactory.IParticipantAsWebApplication | ActionFact
17
17
  export declare enum ObjectType {
18
18
  SeatReservation = "SeatReservation"
19
19
  }
20
- export type IInstrument<T extends WebAPIFactory.Identifier> = WebAPIFactory.IService<T>;
20
+ export type IInstrument<T extends WebAPIFactory.Identifier> = WebAPIFactory.IService<T> & {
21
+ /**
22
+ * Chevre->予約取引番号
23
+ * COA->仮予約番号
24
+ */
25
+ transactionNumber?: string;
26
+ };
21
27
  export type IRequestBody<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? COA.factory.reserve.IUpdTmpReserveSeatArgs : T extends WebAPIFactory.Identifier.Chevre ? {} : never;
22
28
  export type IResponseBody<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? COA.factory.reserve.IUpdTmpReserveSeatResult : T extends WebAPIFactory.Identifier.Chevre ? {} : never;
23
29
  export type IResultAcceptedOffer = OrderFactory.IAcceptedOffer<OrderFactory.IReservation>;
@@ -135,7 +141,7 @@ export type IObject<T extends WebAPIFactory.Identifier> = {
135
141
  /**
136
142
  * 進行中取引
137
143
  */
138
- pendingTransaction?: IPendingTransaction<T>;
144
+ pendingTransaction: IPendingTransaction<T>;
139
145
  } & Omit<IObjectWithoutDetail<T>, 'acceptedOffer' | 'reservationFor'>;
140
146
  export interface IPurpose {
141
147
  typeOf: TransactionType.PlaceOrder;
@@ -1,6 +1,7 @@
1
1
  import * as ActionFactory from '../../../action';
2
2
  import { ActionType } from '../../../actionType';
3
3
  import * as MoneyTransferTransactionFactory from '../../../assetTransaction/moneyTransfer';
4
+ import { AssetTransactionType } from '../../../assetTransactionType';
4
5
  import { IOffer } from '../../../offer';
5
6
  import * as OrderFactory from '../../../order';
6
7
  import { PriceCurrency } from '../../../priceCurrency';
@@ -8,14 +9,16 @@ import { TransactionType } from '../../../transactionType';
8
9
  import * as AuthorizeActionFactory from '../../authorize';
9
10
  export type IAgent = ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsPerson | ActionFactory.IParticipantAsSeller;
10
11
  export type IRecipient = ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsPerson;
11
- export type IRequestBody = any;
12
+ export type IRequestBody = MoneyTransferTransactionFactory.IStartParamsWithoutDetail;
12
13
  export type IResponseBody = MoneyTransferTransactionFactory.ITransaction;
13
14
  export import IPendingTransaction = OrderFactory.IMoneyTransferPendingTransaction;
15
+ export type IResultAcceptedOffer = OrderFactory.IAcceptedOffer<OrderFactory.IMoneyTransfer>;
14
16
  export interface IResult {
15
17
  price: number;
16
18
  priceCurrency: PriceCurrency;
17
19
  requestBody?: IRequestBody;
18
20
  responseBody: IResponseBody;
21
+ acceptedOffers: IResultAcceptedOffer[];
19
22
  }
20
23
  export import IItemOffered = OrderFactory.IMoneyTransfer;
21
24
  export interface IAcceptedOffer extends Omit<IOffer, 'addOn' | 'availability' | 'availableAtOrFrom'> {
@@ -29,9 +32,14 @@ export interface ITransactionPurpose {
29
32
  }
30
33
  export type IPurpose = ITransactionPurpose;
31
34
  export type IError = any;
35
+ export interface IInstrument {
36
+ typeOf: AssetTransactionType.MoneyTransfer;
37
+ transactionNumber: string;
38
+ }
32
39
  export interface IAttributes extends AuthorizeActionFactory.IAttributes<IObject, IResult> {
33
40
  typeOf: ActionType.AuthorizeAction;
34
41
  agent: IAgent;
42
+ instrument: IInstrument;
35
43
  recipient: IRecipient;
36
44
  object: IObject;
37
45
  purpose: IPurpose;
@@ -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,8 +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 IMoneyTransferActionAttributes } from '../../interact/confirm/moneyTransfer';
5
- import { IAttributes as IRegisterServiceAttributes } from '../../interact/confirm/registerService';
6
4
  import * as SendActionFactory from '../send';
7
5
  import { IAttributes as ISendEmailMessageActionAttributes } from './message/email';
8
6
  export type IAgent = IParticipantAsPerson | IParticipantAsProject | IParticipantAsWebApplication;
@@ -21,14 +19,6 @@ export type IObject = OrderFactory.ISimpleOrder & {
21
19
  */
22
20
  export type IResult = IOwnershipInfo<IGood>[];
23
21
  export interface IPotentialActions {
24
- /**
25
- * 通貨転送アクション
26
- */
27
- moneyTransfer?: IMoneyTransferActionAttributes[];
28
- /**
29
- * サービス登録アクション
30
- */
31
- registerService?: IRegisterServiceAttributes[];
32
22
  /**
33
23
  * Eメール送信アクション
34
24
  */
package/lib/action.d.ts CHANGED
@@ -91,6 +91,7 @@ export interface ISearchConditions {
91
91
  page?: number;
92
92
  sort?: ISortOrder;
93
93
  id?: {
94
+ $in?: string[];
94
95
  $nin?: string[];
95
96
  };
96
97
  project?: {
@@ -113,6 +114,11 @@ export interface ISearchConditions {
113
114
  $in?: string[];
114
115
  };
115
116
  };
117
+ instrument?: {
118
+ transactionNumber?: {
119
+ $eq?: string;
120
+ };
121
+ };
116
122
  location?: {
117
123
  id?: {
118
124
  $eq?: string;
package/lib/iam.d.ts CHANGED
@@ -35,11 +35,17 @@ export type IMemberType = PersonType | CreativeWorkType.WebApplication;
35
35
  export type IMemberHasRole = Pick<IRole, 'typeOf' | 'roleName'>[];
36
36
  export interface IMemberOfRole {
37
37
  typeOf: IMemberType;
38
+ /**
39
+ * クライアントID
40
+ */
38
41
  id: string;
39
42
  image?: string;
40
43
  name?: string;
41
44
  username?: string;
42
45
  hasRole: IMemberHasRole;
46
+ /**
47
+ * プロジェクトメンバー or 販売者メンバー
48
+ */
43
49
  memberOf: {
44
50
  typeOf: OrganizationType.Corporation | OrganizationType.Project;
45
51
  id: string;
package/lib/order.d.ts CHANGED
@@ -186,6 +186,10 @@ export interface IAcceptedOffer<T extends IItemOffered> extends IOfferOptimized4
186
186
  */
187
187
  itemOffered: T;
188
188
  priceSpecification?: ITicketPriceSpecification;
189
+ /**
190
+ * 資産取引を特定する番号(2024-01-30~)
191
+ */
192
+ serialNumber?: string;
189
193
  }
190
194
  /**
191
195
  * 販売者
@@ -529,6 +533,9 @@ export interface IAcceptedOffersSearchConditions {
529
533
  */
530
534
  programMembershipUsed?: IProgramMembershipUsedSearchConditions;
531
535
  };
536
+ serialNumber?: {
537
+ $eq?: string;
538
+ };
532
539
  }
533
540
  /**
534
541
  * 注文検索条件
package/lib/seller.d.ts CHANGED
@@ -23,6 +23,12 @@ export interface IPaymentAccepted {
23
23
  paymentMethodType: string;
24
24
  }
25
25
  export type IEligibleTransactionDuration = Pick<IQuantitativeValue<UnitCode.Sec>, 'maxValue' | 'typeOf' | 'unitCode'>;
26
+ export interface IEligibleMembership {
27
+ /**
28
+ * メンバーシップトークン検証シークレット(2024-01-31~)
29
+ */
30
+ secret?: string;
31
+ }
26
32
  export interface IMakesOffer extends Pick<IOffer, 'typeOf' | 'availableAtOrFrom'> {
27
33
  availableAtOrFrom: IAvailableAtOrFrom[];
28
34
  /**
@@ -33,6 +39,7 @@ export interface IMakesOffer extends Pick<IOffer, 'typeOf' | 'availableAtOrFrom'
33
39
  * 適用取引期間
34
40
  */
35
41
  eligibleTransactionDuration: IEligibleTransactionDuration;
42
+ eligibleMembership?: IEligibleMembership;
36
43
  }
37
44
  export interface ISeller extends Pick<IOrganization, 'typeOf' | 'id' | 'location' | 'telephone' | 'additionalProperty' | 'name' | 'url'> {
38
45
  project: Pick<IProject, 'id' | 'typeOf'>;
@@ -20,6 +20,7 @@ export interface IPaymentUrlSettings {
20
20
  expiresInSeconds: number;
21
21
  useCallback?: boolean;
22
22
  useWebhook?: boolean;
23
+ use3DS?: boolean;
23
24
  }
24
25
  export type ICallbackType3ds = 'GET' | 'POST';
25
26
  export interface IProviderCredentials {
@@ -3,7 +3,9 @@ import { IExtendId } from '../autoGenerated';
3
3
  import * as WebAPIFactory from '../service/webAPI';
4
4
  import * as TaskFactory from '../task';
5
5
  import { TaskName } from '../taskName';
6
- export type IObject4COAOptimized = IObject4COA | Pick<IObject4COA, 'transactionNumber' | 'typeOf'>;
6
+ export type IObject4COAOptimized = Pick<IObject4COA, 'transactionNumber' | 'typeOf'> & {
7
+ optimized: boolean;
8
+ };
7
9
  export type IObject<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? IObject4COAOptimized : IObject4Chevre;
8
10
  export type IData = Omit<IConfirmReservationActionAttributes<WebAPIFactory.Identifier>, 'object'> & {
9
11
  object: IObject<WebAPIFactory.Identifier>;
@@ -25,7 +25,17 @@ export interface IObjectAsReserveTransaction {
25
25
  transactionNumber: string;
26
26
  status: TransactionStatusType.Confirmed;
27
27
  }
28
- export type IObject = IObjectAsPayTransaction | IObjectAsReserveTransaction;
28
+ export interface IObjectAsMoneyTransferTransaction {
29
+ typeOf: AssetTransactionType.MoneyTransfer;
30
+ transactionNumber: string;
31
+ status: TransactionStatusType.Confirmed;
32
+ }
33
+ export interface IObjectAsRegisterServiceTransaction {
34
+ typeOf: AssetTransactionType.RegisterService;
35
+ transactionNumber: string;
36
+ status: TransactionStatusType.Confirmed;
37
+ }
38
+ export type IObject = IObjectAsPayTransaction | IObjectAsReserveTransaction | IObjectAsMoneyTransferTransaction | IObjectAsRegisterServiceTransaction;
29
39
  export interface IData {
30
40
  project: Pick<IProject, 'id' | 'typeOf'>;
31
41
  object: IObject;
@@ -11,10 +11,19 @@ import { IInformParams, IProject } from '../project';
11
11
  import * as WebAPIFactory from '../service/webAPI';
12
12
  import * as TransactionFactory from '../transaction';
13
13
  import { TransactionType } from '../transactionType';
14
+ export interface IMemberOfPayload {
15
+ sub: string;
16
+ }
14
17
  /**
15
18
  * 取引人
16
19
  */
17
- export type IAgent = TransactionFactory.IAgent;
20
+ export type IAgent = TransactionFactory.IAgent & {
21
+ /**
22
+ * 外部メンバーシップトークン
23
+ */
24
+ memberOfToken?: string;
25
+ memberOfPayload?: IMemberOfPayload;
26
+ };
18
27
  export type ICustomer = OrderFactory.ICustomer;
19
28
  export interface IPaymentMethodByPaymentUrl {
20
29
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.352.0-alpha.8",
3
+ "version": "4.352.0",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",