@chevre/factory 4.367.0-alpha.5 → 4.367.0-alpha.7

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,25 +1,13 @@
1
1
  import * as ActionFactory from '../action';
2
2
  import { ActionType } from '../actionType';
3
- /**
4
- * 承認対象インターフェース
5
- */
6
3
  export type IObject = any;
7
- /**
8
- * 承認結果インターフェース
9
- */
10
4
  export type IResult = any;
11
- /**
12
- * 承認目的インターフェース
13
- */
14
5
  export type IPurpose = any;
15
- /**
16
- * アクション属性インターフェース
17
- */
18
6
  export interface IAttributes<TObject, TResult> extends ActionFactory.IAttributes<ActionType.AuthorizeAction, TObject, TResult> {
19
- purpose: IPurpose;
7
+ purpose?: IPurpose;
20
8
  recipient: ActionFactory.IParticipant;
21
9
  }
22
10
  /**
23
- * 承認アクションインターフェース
11
+ * 承認アクション
24
12
  */
25
13
  export type IAction<TAttributes extends IAttributes<IObject, IResult>> = ActionFactory.IAction<TAttributes>;
@@ -2,9 +2,7 @@ import * as ActionFactory from '../../action';
2
2
  import { ActionType } from '../../actionType';
3
3
  export type IObject = any;
4
4
  export type IResult = any;
5
- export type IPurpose = any;
6
- export interface IAttributes<TObject, TResult> extends ActionFactory.IAttributes<ActionType.UseAction, TObject, TResult> {
7
- purpose?: IPurpose;
5
+ export interface IAttributes<TObject, TResult> extends Pick<ActionFactory.IAttributes<ActionType.UseAction, TObject, TResult>, 'typeOf' | 'result' | 'project' | 'object' | 'location' | 'error' | 'instrument' | 'agent'> {
8
6
  }
9
7
  /**
10
8
  * 使用アクション
package/lib/order.d.ts CHANGED
@@ -89,28 +89,6 @@ export interface IReferencedInvoice {
89
89
  additionalProperty: IPropertyValue<string>[];
90
90
  issuedThrough: IOrderPaymentMethodIssuedThrough;
91
91
  }
92
- /**
93
- * ディスカウント
94
- */
95
- export interface IDiscount {
96
- /**
97
- * 割引タイプ
98
- */
99
- typeOf: string;
100
- name: string;
101
- /**
102
- * Any discount applied.
103
- */
104
- discount: number;
105
- /**
106
- * Code used to redeem a discount.
107
- */
108
- discountCode: string;
109
- /**
110
- * The currency (in 3 - letter ISO 4217 format) of the discount.
111
- */
112
- discountCurrency: string;
113
- }
114
92
  export type IWorkPerformed = Pick<EventReservationFactory.IOptimizedWorkPerformed, 'typeOf' | 'id' | 'identifier' | 'name' | 'duration'>;
115
93
  export type ISuperEvent = Pick<EventReservationFactory.IOptimizedSuperEvent, 'id' | 'location' | 'name' | 'soundFormat' | 'typeOf' | 'videoFormat' | 'headline' | 'identifier' | 'alternativeHeadline' | 'duration' | 'coaInfo'> & {
116
94
  workPerformed: IWorkPerformed;
@@ -304,10 +282,6 @@ export interface IOrder extends ISimpleOrder {
304
282
  * Date order was returned.
305
283
  */
306
284
  dateReturned?: Date;
307
- /**
308
- * discount infos
309
- */
310
- discounts: IDiscount[];
311
285
  /**
312
286
  * The identifier property represents any kind of identifier for any kind of Thing
313
287
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.367.0-alpha.5",
3
+ "version": "4.367.0-alpha.7",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",