@chevre/factory 4.211.0 → 4.212.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.
package/lib/chevre.d.ts CHANGED
@@ -24,10 +24,7 @@ import * as ConfirmRegisterServiceActionFactory from './factory/action/interact/
24
24
  import * as ConfirmReservationActionFactory from './factory/action/interact/confirm/reservation';
25
25
  import * as InformActionFactory from './factory/action/interact/inform';
26
26
  import * as RegisterActionFactory from './factory/action/interact/register';
27
- import * as RegisterProgramMembershipActionFactory from './factory/action/interact/register/programMembership';
28
27
  import * as RegisterServiceActionFactory from './factory/action/interact/register/service';
29
- import * as UnRegisterActionFactory from './factory/action/interact/unRegister';
30
- import * as UnRegisterProgramMembershipActionFactory from './factory/action/interact/unRegister/programMembership';
31
28
  import * as ReserveActionFactory from './factory/action/reserve';
32
29
  import * as OrderActionFactory from './factory/action/trade/order';
33
30
  import * as PayActionFactory from './factory/action/trade/pay';
@@ -229,14 +226,8 @@ export declare namespace action {
229
226
  namespace register {
230
227
  export import IAction = RegisterActionFactory.IAction;
231
228
  export import IAttributes = RegisterActionFactory.IAttributes;
232
- export import programMembership = RegisterProgramMembershipActionFactory;
233
229
  export import service = RegisterServiceActionFactory;
234
230
  }
235
- namespace unRegister {
236
- export import IAction = UnRegisterActionFactory.IAction;
237
- export import IAttributes = UnRegisterActionFactory.IAttributes;
238
- export import programMembership = UnRegisterProgramMembershipActionFactory;
239
- }
240
231
  }
241
232
  namespace trade {
242
233
  export import order = OrderActionFactory;
package/lib/chevre.js CHANGED
@@ -25,9 +25,10 @@ var ConfirmPayActionFactory = require("./factory/action/interact/confirm/pay");
25
25
  var ConfirmRegisterServiceActionFactory = require("./factory/action/interact/confirm/registerService");
26
26
  var ConfirmReservationActionFactory = require("./factory/action/interact/confirm/reservation");
27
27
  var InformActionFactory = require("./factory/action/interact/inform");
28
- var RegisterProgramMembershipActionFactory = require("./factory/action/interact/register/programMembership");
28
+ // import * as RegisterProgramMembershipActionFactory from './factory/action/interact/register/programMembership';
29
29
  var RegisterServiceActionFactory = require("./factory/action/interact/register/service");
30
- var UnRegisterProgramMembershipActionFactory = require("./factory/action/interact/unRegister/programMembership");
30
+ // import * as UnRegisterActionFactory from './factory/action/interact/unRegister';
31
+ // import * as UnRegisterProgramMembershipActionFactory from './factory/action/interact/unRegister/programMembership';
31
32
  var ReserveActionFactory = require("./factory/action/reserve");
32
33
  var OrderActionFactory = require("./factory/action/trade/order");
33
34
  var PayActionFactory = require("./factory/action/trade/pay");
@@ -198,15 +199,18 @@ var action;
198
199
  var register;
199
200
  (function (register) {
200
201
  // tslint:disable-next-line:no-shadowed-variable
201
- register.programMembership = RegisterProgramMembershipActionFactory;
202
+ // export import programMembership = RegisterProgramMembershipActionFactory;
202
203
  // tslint:disable-next-line:no-shadowed-variable
203
204
  register.service = RegisterServiceActionFactory;
204
205
  })(register = interact.register || (interact.register = {}));
205
- var unRegister;
206
- (function (unRegister) {
207
- // tslint:disable-next-line:no-shadowed-variable
208
- unRegister.programMembership = UnRegisterProgramMembershipActionFactory;
209
- })(unRegister = interact.unRegister || (interact.unRegister = {}));
206
+ // export namespace unRegister {
207
+ // // tslint:disable-next-line:no-shadowed-variable
208
+ // export import IAction = UnRegisterActionFactory.IAction;
209
+ // // tslint:disable-next-line:no-shadowed-variable
210
+ // export import IAttributes = UnRegisterActionFactory.IAttributes;
211
+ // // tslint:disable-next-line:no-shadowed-variable
212
+ // export import programMembership = UnRegisterProgramMembershipActionFactory;
213
+ // }
210
214
  })(interact = action.interact || (action.interact = {}));
211
215
  var trade;
212
216
  (function (trade) {
@@ -1,10 +1,7 @@
1
- import * as ActionFactory from '../../../action';
2
- import { ActionType } from '../../../actionType';
3
1
  import { AssetTransactionType } from '../../../assetTransactionType';
4
2
  import { ISimpleOrder } from '../../../order';
5
3
  import { TransactionType } from '../../../transactionType';
6
- export declare type IAgent = ActionFactory.IParticipant;
7
- export declare type IRecipient = ActionFactory.IParticipant;
4
+ import * as ConfirmActionFactory from '../confirm';
8
5
  /**
9
6
  * 匿名ロケーションインターフェース
10
7
  */
@@ -30,10 +27,10 @@ export interface ITransactionPurpose {
30
27
  id: string;
31
28
  }
32
29
  export declare type IPurpose = ITransactionPurpose | ISimpleOrder;
33
- export interface IAttributes extends ActionFactory.IAttributes<ActionType.ConfirmAction, IObject, IResult> {
30
+ export interface IAttributes extends ConfirmActionFactory.IAttributes<IObject, IResult> {
34
31
  purpose: IPurpose;
35
32
  }
36
33
  /**
37
34
  * 通貨転送確定アクション
38
35
  */
39
- export declare type IAction = ActionFactory.IAction<IAttributes>;
36
+ export declare type IAction = ConfirmActionFactory.IAction<IAttributes>;
@@ -1,10 +1,7 @@
1
- import * as ActionFactory from '../../../action';
2
- import { ActionType } from '../../../actionType';
3
1
  import { AssetTransactionType } from '../../../assetTransactionType';
4
2
  import { ISimpleOrder } from '../../../order';
5
3
  import { IInstrument } from '../../authorize/paymentMethod/any';
6
- export declare type IAgent = ActionFactory.IParticipant;
7
- export declare type IRecipient = ActionFactory.IParticipant;
4
+ import * as ConfirmActionFactory from '../confirm';
8
5
  export declare type IPurpose = ISimpleOrder;
9
6
  export interface IPayAssetTransaction {
10
7
  typeOf: AssetTransactionType.Pay;
@@ -19,11 +16,11 @@ export interface IPayAssetTransaction {
19
16
  }
20
17
  export declare type IObject = IPayAssetTransaction[];
21
18
  export declare type IResult = any;
22
- export interface IAttributes extends ActionFactory.IAttributes<ActionType.ConfirmAction, IObject, IResult> {
19
+ export interface IAttributes extends ConfirmActionFactory.IAttributes<IObject, IResult> {
23
20
  instrument: IInstrument;
24
21
  purpose: IPurpose;
25
22
  }
26
23
  /**
27
24
  * 決済確定アクション
28
25
  */
29
- export declare type IAction = ActionFactory.IAction<IAttributes>;
26
+ export declare type IAction = ConfirmActionFactory.IAction<IAttributes>;
@@ -1,9 +1,8 @@
1
- import * as ActionFactory from '../../../action';
2
- import { ActionType } from '../../../actionType';
3
1
  import * as RegisterServiceFactory from '../../../assetTransaction/registerService';
4
2
  import { AssetTransactionType } from '../../../assetTransactionType';
5
3
  import { ISimpleOrder } from '../../../order';
6
4
  import * as OrderProgramMembershipFactory from '../../../task/orderProgramMembership';
5
+ import * as ConfirmActionFactory from '../confirm';
7
6
  export declare type IObject = RegisterServiceFactory.IConfirmParams & {
8
7
  typeOf: AssetTransactionType.RegisterService;
9
8
  };
@@ -12,11 +11,11 @@ export declare type IResult = any;
12
11
  export interface IPotentialActions {
13
12
  orderProgramMembership?: OrderProgramMembershipFactory.IAttributes[];
14
13
  }
15
- export interface IAttributes extends ActionFactory.IAttributes<ActionType.ConfirmAction, IObject, IResult> {
14
+ export interface IAttributes extends ConfirmActionFactory.IAttributes<IObject, IResult> {
16
15
  potentialActions?: IPotentialActions;
17
16
  purpose: IPurpose;
18
17
  }
19
18
  /**
20
19
  * サービス登録確定アクション
21
20
  */
22
- export declare type IAction = ActionFactory.IAction<IAttributes>;
21
+ export declare type IAction = ConfirmActionFactory.IAction<IAttributes>;
@@ -1,11 +1,9 @@
1
1
  import * as COA from '@motionpicture/coa-service';
2
- import * as ActionFactory from '../../../action';
3
2
  import * as ReserveTransactionFactory from '../../../assetTransaction/reserve';
4
3
  import { AssetTransactionType } from '../../../assetTransactionType';
5
4
  import { ISimpleOrder } from '../../../order';
6
5
  import * as WebAPIFactory from '../../../service/webAPI';
7
6
  import * as ConfirmActionFactory from '../confirm';
8
- export declare type IAgent = ActionFactory.IParticipant;
9
7
  export declare type IObject4COA = COA.factory.reserve.IUpdReserveArgs & {
10
8
  typeOf: 'COAReserveTransaction';
11
9
  };
@@ -17,7 +15,6 @@ export declare type IPurpose = ISimpleOrder;
17
15
  export declare type IResult = any;
18
16
  export declare type IInstrument<T extends WebAPIFactory.Identifier> = WebAPIFactory.IService<T>;
19
17
  export interface IAttributes<T extends WebAPIFactory.Identifier> extends ConfirmActionFactory.IAttributes<IObject<T>, IResult> {
20
- agent: IAgent;
21
18
  instrument: IInstrument<T>;
22
19
  purpose: IPurpose;
23
20
  }
@@ -1,17 +1,22 @@
1
1
  import * as ActionFactory from '../../action';
2
2
  import { ActionType } from '../../actionType';
3
3
  import * as OrderFactory from '../../order';
4
- export declare type IAgent = ActionFactory.IParticipant;
4
+ import { IProject } from '../../project';
5
+ import { TransactionType } from '../../transactionType';
6
+ export declare type IAgent = IProject;
5
7
  export declare type IObject = any;
6
- export declare type IPurpose = OrderFactory.ISimpleOrder;
7
- export declare type IResult = any;
8
- export interface IPotentialActions {
8
+ export interface ITransactionPurpose {
9
+ typeOf: TransactionType;
10
+ id: string;
9
11
  }
10
- export interface IAttributes<TObject, TResult> extends ActionFactory.IAttributes<ActionType.ConfirmAction, TObject, TResult> {
11
- potentialActions?: IPotentialActions;
12
+ export declare type IPurpose = ITransactionPurpose | OrderFactory.ISimpleOrder;
13
+ export declare type IResult = any;
14
+ export declare type IPotentialActions = any;
15
+ export interface IAttributes<TObject, TResult> extends Omit<ActionFactory.IAttributes<ActionType.ConfirmAction, TObject, TResult>, 'description' | 'location' | 'recipient'> {
16
+ agent: IAgent;
12
17
  purpose: IPurpose;
13
18
  }
14
19
  /**
15
- * 確定アクションインターフェース
20
+ * 確定アクション
16
21
  */
17
22
  export declare type IAction<TAttributes extends IAttributes<IObject, IResult>> = ActionFactory.IAction<TAttributes>;
@@ -1,18 +1,13 @@
1
1
  import { IPerson } from '../../../person';
2
- import { IAttributes as IUnRegisterProgramMembershipActionAttributes } from '../../interact/unRegister/programMembership';
3
2
  import * as DeleteActionFactory from '../delete';
4
3
  export declare type IObject = IPerson;
5
4
  export declare type IResult = any;
6
5
  export interface IPotentialActions {
7
- /**
8
- * メンバーシップ登録解除アクション
9
- */
10
- unRegisterProgramMembership?: IUnRegisterProgramMembershipActionAttributes[];
11
6
  }
12
7
  export interface IAttributes extends DeleteActionFactory.IAttributes<IObject, IResult> {
13
8
  potentialActions?: IPotentialActions;
14
9
  }
15
10
  /**
16
- * 会員削除アクションインターフェース
11
+ * 会員削除アクション
17
12
  */
18
13
  export declare type IAction = DeleteActionFactory.IAction<IAttributes>;
@@ -1,5 +1,3 @@
1
- import { IProduct } from './product';
2
- import { IProject } from './project';
3
1
  import { IThing } from './thing';
4
2
  export declare enum ProgramMembershipType {
5
3
  ProgramMembership = "ProgramMembership"
@@ -10,12 +8,10 @@ export declare enum ProgramMembershipType {
10
8
  * {@link https://schema.org/ProgramMembership}
11
9
  */
12
10
  export interface IProgramMembership extends IThing {
13
- project?: IProject;
14
- typeOf: string;
11
+ typeOf: ProgramMembershipType;
15
12
  /**
16
13
  * The service through with the permit was granted.
17
14
  */
18
- issuedThrough?: IProduct;
19
15
  /**
20
16
  * A unique identifier for the membership.
21
17
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.211.0",
3
+ "version": "4.212.0",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -1,12 +0,0 @@
1
- import { IProgramMembership } from '../../../programMembership';
2
- import * as RegisterActionFactory from '../register';
3
- export declare type IObject = IProgramMembership;
4
- export declare type IResult = any;
5
- export declare type IPotentialActions = any;
6
- export interface IAttributes extends RegisterActionFactory.IAttributes<IObject, IResult> {
7
- potentialActions?: IPotentialActions;
8
- }
9
- /**
10
- * メンバーシップ登録アクションインターフェース
11
- */
12
- export declare type IAction = RegisterActionFactory.IAction<IAttributes>;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,12 +0,0 @@
1
- import { IOwnershipInfo, IPermit } from '../../../ownershipInfo';
2
- import * as UnRegisterActionFactory from '../unRegister';
3
- export declare type IObject = IOwnershipInfo<IPermit>;
4
- export declare type IResult = any;
5
- export declare type IPotentialActions = any;
6
- export interface IAttributes extends UnRegisterActionFactory.IAttributes<IObject, IResult> {
7
- potentialActions?: IPotentialActions;
8
- }
9
- /**
10
- * メンバーシップ登録解除アクションインターフェース
11
- */
12
- export declare type IAction = UnRegisterActionFactory.IAction<IAttributes>;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,15 +0,0 @@
1
- import * as ActionFactory from '../../action';
2
- import { ActionType } from '../../actionType';
3
- export declare type IAgent = ActionFactory.IParticipant;
4
- export declare type IRecipient = ActionFactory.IParticipant;
5
- export declare type IObject = any;
6
- export declare type IResult = any;
7
- export interface IPotentialActions {
8
- }
9
- export interface IAttributes<TObject, TResult> extends ActionFactory.IAttributes<ActionType.UnRegisterAction, TObject, TResult> {
10
- potentialActions?: IPotentialActions;
11
- }
12
- /**
13
- * 登録解除アクションインターフェース
14
- */
15
- export declare type IAction<TAttributes extends IAttributes<IObject, IResult>> = ActionFactory.IAction<TAttributes>;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });