@chevre/factory 4.363.0-alpha.0 → 4.363.0-alpha.2

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.
@@ -1,4 +1,4 @@
1
- import * as surfrock from '@surfrock/sdk';
1
+ import type * as surfrock from '@surfrock/sdk';
2
2
  import * as ActionFactory from '../../../action';
3
3
  import { OrganizationType } from '../../../organizationType';
4
4
  import { IMovieTicket as IMovieTicketPaymentCard, IServiceOutput as IMovieTicketServiceOutput } from '../../../paymentMethod/paymentCard/movieTicket';
@@ -10,7 +10,6 @@ import { ITotalPaymentDue, OrderType } from '../../order';
10
10
  import { IMovieTicket as IMovieTicketPaymentCard } from '../../paymentMethod/paymentCard/movieTicket';
11
11
  import { IPropertyValue } from '../../propertyValue';
12
12
  import { PaymentServiceType } from '../../service/paymentService';
13
- import { TransactionType } from '../../transactionType';
14
13
  import { IAttributes as IInformActionAttributes } from '../interact/inform';
15
14
  export import IAgent = ActionFactory.IParticipantAsProject;
16
15
  export import IRecipient = ActionFactory.IParticipantAsSeller;
@@ -19,17 +18,13 @@ export interface IOrderAsPayPurpose {
19
18
  confirmationNumber: string;
20
19
  orderNumber?: string;
21
20
  }
22
- export interface IAssetTransactionAsPayPurpose {
21
+ export interface IPurposeAsAssetTransaction {
23
22
  typeOf: AssetTransactionType.Pay | AssetTransactionType.Refund;
24
23
  id?: string;
25
24
  transactionNumber?: string;
26
25
  }
27
- export interface ITransactionAsPayPurpose {
28
- typeOf: TransactionType;
29
- id: string;
30
- }
31
- export type IReturnActionAsPayPurpose = IReturnOrderActionAttributes;
32
- export type IPurpose = IOrderAsPayPurpose | IAssetTransactionAsPayPurpose | IReturnActionAsPayPurpose | ITransactionAsPayPurpose;
26
+ export type IPurposeAsReturnAction = Pick<IReturnOrderActionAttributes, 'object' | 'typeOf'>;
27
+ export type IPurpose = IOrderAsPayPurpose | IPurposeAsAssetTransaction | IPurposeAsReturnAction;
33
28
  export type AvailablePaymentMethodType = string;
34
29
  export interface IPendingTransaction {
35
30
  typeOf: AccountFactory.transactionType;
@@ -1,7 +1,10 @@
1
+ import type * as GMO from '@motionpicture/gmo-service';
2
+ import type * as surfrock from '@surfrock/sdk';
1
3
  import * as ActionFactory from '../../action';
2
4
  import { ActionType } from '../../actionType';
5
+ import { TransactionType } from '../../transactionType';
3
6
  import { IAttributes as IInformActionAttributes } from '../interact/inform';
4
- import { IPaymentMethod, IPaymentService as IPaymentServiceOnPay, IPurpose as IPayPurpose } from './pay';
7
+ import { IOrderAsPayPurpose, IPaymentMethod, IPaymentService as IPaymentServiceOnPay, IPurposeAsAssetTransaction, IPurposeAsReturnAction } from './pay';
5
8
  export type IAgent = ActionFactory.IParticipantAsSeller | ActionFactory.IParticipantAsPerson;
6
9
  export type IRecipient = ActionFactory.IParticipant;
7
10
  export type IPaymentService = Omit<IPaymentServiceOnPay, 'paymentMethod'> & {
@@ -9,13 +12,34 @@ export type IPaymentService = Omit<IPaymentServiceOnPay, 'paymentMethod'> & {
9
12
  paymentMethod: Pick<IPaymentMethod, 'accountId' | 'name' | 'paymentMethodId' | 'typeOf' | 'additionalProperty'>;
10
13
  };
11
14
  export type IObject = IPaymentService[];
12
- export type IResult = any;
15
+ export type IAlterTranResult = GMO.factory.credit.IAlterTranResult;
16
+ export interface ISeatInfoSyncResultAsError {
17
+ name: string;
18
+ message: string;
19
+ }
20
+ export type ISeatInfoSyncIn = surfrock.service.seat.factory.ISeatInfoSyncIn;
21
+ export type ISeatInfoSyncResult = surfrock.service.seat.factory.ISeatInfoSyncResult | ISeatInfoSyncResultAsError;
22
+ export interface IResult {
23
+ alterTranResult?: IAlterTranResult[];
24
+ seatInfoSyncIn?: ISeatInfoSyncIn;
25
+ seatInfoSyncResult?: ISeatInfoSyncResult;
26
+ /**
27
+ * ペイメントカード決済の場合
28
+ */
29
+ accountTransaction?: {
30
+ transactionNumber: string;
31
+ };
32
+ }
13
33
  export type IInformPayment = IInformActionAttributes<{}, undefined>;
14
34
  export interface IPotentialActions {
15
35
  add2report: boolean;
16
36
  informPayment?: IInformPayment[];
17
37
  }
18
- export type IPurpose = IPayPurpose;
38
+ export interface IPurposeAsPlaceOrder {
39
+ typeOf: TransactionType.PlaceOrder;
40
+ id: string;
41
+ }
42
+ export type IPurpose = IOrderAsPayPurpose | IPurposeAsAssetTransaction | IPurposeAsReturnAction | IPurposeAsPlaceOrder;
19
43
  export interface IAttributes extends ActionFactory.IAttributes<ActionType.RefundAction, IObject, IResult> {
20
44
  agent: IAgent;
21
45
  recipient?: IRecipient;
@@ -23,6 +47,6 @@ export interface IAttributes extends ActionFactory.IAttributes<ActionType.Refund
23
47
  potentialActions?: IPotentialActions;
24
48
  }
25
49
  /**
26
- * 返金アクションインターフェース
50
+ * 返金アクション
27
51
  */
28
52
  export type IAction = ActionFactory.IAction<IAttributes>;
@@ -35,6 +35,7 @@ export interface IAttributes extends ReturnActionFactory.IAttributes<IObject, IR
35
35
  agent: IAgent;
36
36
  recipient: IRecipient;
37
37
  potentialActions?: IPotentialActions;
38
+ purpose?: never;
38
39
  }
39
40
  /**
40
41
  * 返品アクション
@@ -0,0 +1,14 @@
1
+ import * as ActionFactory from '../../action';
2
+ import { ActionType } from '../../actionType';
3
+ export type IAgent = ActionFactory.IParticipantAsPerson | ActionFactory.IParticipantAsWebApplication;
4
+ export type IObject = any;
5
+ export type IResult = any;
6
+ export type IReplacer = any;
7
+ export interface IAttributes<TObject, TResult> extends ActionFactory.IAttributes<ActionType.ReplaceAction, TObject, TResult> {
8
+ potentialActions?: never;
9
+ replacer?: IReplacer;
10
+ }
11
+ /**
12
+ * 置換アクション
13
+ */
14
+ export type IAction<TAttributes extends IAttributes<IObject, IResult>> = ActionFactory.IAction<TAttributes>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,4 @@
1
- import { IPaymentMethod, IReturnActionAsPayPurpose } from '../action/trade/pay';
1
+ import { IPaymentMethod, IPurposeAsReturnAction } from '../action/trade/pay';
2
2
  import { IAttributes as IRefundActionAttributes, IRecipient as IRefundRecipient } from '../action/trade/refund';
3
3
  import * as AssetTransactionFactory from '../assetTransaction';
4
4
  import { AssetTransactionType } from '../assetTransactionType';
@@ -26,7 +26,7 @@ export type IObjectWithoutDetail = Pick<IObject, 'typeOf' | 'id' | 'paymentMetho
26
26
  export type IStartParamsWithoutDetail = AssetTransactionFactory.IStartParams<AssetTransactionType.Refund, IAgent, IRecipient, IObjectWithoutDetail>;
27
27
  export interface IStartParams extends AssetTransactionFactory.IStartParams<AssetTransactionType.Refund, IAgent, IRecipient, IObject> {
28
28
  }
29
- export type IRefundPurpose = IReturnActionAsPayPurpose;
29
+ export type IRefundPurpose = IPurposeAsReturnAction;
30
30
  export interface IPotentialActionsParams {
31
31
  refund?: {
32
32
  purpose?: IRefundPurpose;
package/lib/index.d.ts CHANGED
@@ -39,6 +39,7 @@ import * as SendEmailMessageActionFactory from './action/transfer/send/message/e
39
39
  import * as SendOrderActionFactory from './action/transfer/send/order';
40
40
  import * as DeleteActionFactory from './action/update/delete';
41
41
  import * as DeleteMemberActionFactory from './action/update/delete/member';
42
+ import * as ReplaceActionFactory from './action/update/replace';
42
43
  import { ActionStatusType } from './actionStatusType';
43
44
  import { ActionType } from './actionType';
44
45
  import * as AccountTitleFactory from './accountTitle';
@@ -275,6 +276,7 @@ export declare namespace action {
275
276
  export import IAttributes = DeleteActionFactory.IAttributes;
276
277
  export import member = DeleteMemberActionFactory;
277
278
  }
279
+ export import replace = ReplaceActionFactory;
278
280
  }
279
281
  namespace consume {
280
282
  namespace use {
package/lib/index.js CHANGED
@@ -38,6 +38,7 @@ var ReturnReserveTransactionActionFactory = require("./action/transfer/return/re
38
38
  var SendEmailMessageActionFactory = require("./action/transfer/send/message/email");
39
39
  var SendOrderActionFactory = require("./action/transfer/send/order");
40
40
  var DeleteMemberActionFactory = require("./action/update/delete/member");
41
+ var ReplaceActionFactory = require("./action/update/replace");
41
42
  var actionStatusType_1 = require("./actionStatusType");
42
43
  var actionType_1 = require("./actionType");
43
44
  var AccountTitleFactory = require("./accountTitle");
@@ -256,6 +257,7 @@ var action;
256
257
  (function (deleteAction) {
257
258
  deleteAction.member = DeleteMemberActionFactory;
258
259
  })(deleteAction = update.deleteAction || (update.deleteAction = {}));
260
+ update.replace = ReplaceActionFactory;
259
261
  })(update = action.update || (action.update = {}));
260
262
  var consume;
261
263
  (function (consume) {
package/lib/order.d.ts CHANGED
@@ -112,7 +112,7 @@ export interface IDiscount {
112
112
  discountCurrency: string;
113
113
  }
114
114
  export type IWorkPerformed = Pick<EventReservationFactory.IOptimizedWorkPerformed, 'typeOf' | 'id' | 'identifier' | 'name' | 'duration'>;
115
- export type ISuperEvent = Pick<EventReservationFactory.IOptimizedSuperEvent, 'additionalProperty' | 'id' | 'location' | 'name' | 'soundFormat' | 'typeOf' | 'videoFormat' | 'headline' | 'identifier' | 'alternativeHeadline' | 'duration' | 'coaInfo'> & {
115
+ export type ISuperEvent = Pick<EventReservationFactory.IOptimizedSuperEvent, 'id' | 'location' | 'name' | 'soundFormat' | 'typeOf' | 'videoFormat' | 'headline' | 'identifier' | 'alternativeHeadline' | 'duration' | 'coaInfo'> & {
116
116
  workPerformed: IWorkPerformed;
117
117
  };
118
118
  export type ITripAsReservationFor = BusReservationFactory.IReservationFor;
@@ -6,7 +6,7 @@ import { ProductType } from '../product';
6
6
  import * as ReservationFactory from '../reservation';
7
7
  import { ReservationStatusType } from '../reservationStatusType';
8
8
  import { ReservationType } from '../reservationType';
9
- export type IOptimizedWorkPerformed = Omit<IWorkPerformed, 'project' | 'name'> & {
9
+ export type IOptimizedWorkPerformed = Pick<IWorkPerformed, 'typeOf' | 'id' | 'identifier' | 'duration' | 'contentRating' | 'version'> & {
10
10
  name?: string | IMultilingualString;
11
11
  };
12
12
  export type IOptimizedSuperEvent = Pick<ISuperEvent, 'additionalProperty' | 'id' | 'location' | 'name' | 'soundFormat' | 'typeOf' | 'videoFormat' | 'headline' | 'identifier' | 'alternativeHeadline' | 'duration' | 'coaInfo'> & {
@@ -50,6 +50,9 @@ export interface IUnderName {
50
50
  gender?: string;
51
51
  givenName?: string;
52
52
  id?: string;
53
+ /**
54
+ * システム利用識別子のみ継承
55
+ */
53
56
  identifier?: IPropertyValue<string>[];
54
57
  telephone?: string;
55
58
  url?: string;
@@ -8,6 +8,6 @@ export interface IAttributes extends TaskFactory.IAttributes {
8
8
  data: IData;
9
9
  }
10
10
  /**
11
- * 返金タスクインターフェース
11
+ * 返金タスク
12
12
  */
13
13
  export type ITask = IExtendId<IAttributes>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.363.0-alpha.0",
3
+ "version": "4.363.0-alpha.2",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",