@chevre/factory 4.362.0-alpha.1 → 4.362.0-alpha.3

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,6 +1,5 @@
1
1
  import { AssetTransactionType } from '../../../assetTransactionType';
2
2
  import { ISimpleOrder } from '../../../order';
3
- import { IInstrument } from '../../authorize/paymentMethod/any';
4
3
  import * as ConfirmActionFactory from '../confirm';
5
4
  export type IPurpose = ISimpleOrder;
6
5
  export interface IPayAssetTransaction {
@@ -21,7 +20,6 @@ export interface IPayAssetTransaction {
21
20
  export type IObject = IPayAssetTransaction[];
22
21
  export type IResult = any;
23
22
  export interface IAttributes extends ConfirmActionFactory.IAttributes<IObject, IResult> {
24
- instrument: IInstrument;
25
23
  purpose: IPurpose;
26
24
  }
27
25
  /**
@@ -16,7 +16,7 @@ export interface ITransactionPurpose {
16
16
  export type IPurpose = ITransactionPurpose | OrderFactory.ISimpleOrder;
17
17
  export type IResult = any;
18
18
  export type IPotentialActions = any;
19
- export interface IAttributes<TObject, TResult> extends Pick<ActionFactory.IAttributes<ActionType.ConfirmAction, TObject, TResult>, 'agent' | 'error' | 'instrument' | 'object' | 'project' | 'purpose' | 'result' | 'typeOf'> {
19
+ export interface IAttributes<TObject, TResult> extends Pick<ActionFactory.IAttributes<ActionType.ConfirmAction, TObject, TResult>, 'agent' | 'error' | 'object' | 'project' | 'purpose' | 'result' | 'typeOf'> {
20
20
  agent: IAgent;
21
21
  purpose: IPurpose;
22
22
  }
package/lib/action.d.ts CHANGED
@@ -13,19 +13,23 @@ export interface IParticipantOptionalAttributes {
13
13
  export type IParticipantAsWebApplication = IParticipantOptionalAttributes & {
14
14
  typeOf: CreativeWorkType.WebApplication;
15
15
  id: string;
16
+ identifier?: never;
16
17
  };
17
18
  export type IParticipantAsPerson = IParticipantOptionalAttributes & Pick<IPersonAttributes, 'id' | 'typeOf'>;
18
19
  export type IParticipantAsSeller = IParticipantOptionalAttributes & {
19
20
  typeOf: OrganizationType.Corporation;
20
21
  id: string;
22
+ identifier?: never;
21
23
  };
22
24
  export type IParticipantAsProject = IParticipantOptionalAttributes & {
23
25
  typeOf: OrganizationType.Project;
24
26
  id: string;
27
+ identifier?: never;
25
28
  };
26
29
  export type IParticipantAsCustomer = IParticipantOptionalAttributes & {
27
30
  typeOf: OrganizationType.Organization;
28
31
  id: string;
32
+ identifier?: never;
29
33
  };
30
34
  /**
31
35
  * アクションへの関係者
@@ -37,9 +41,6 @@ export type IParticipant = IParticipantAsWebApplication | IParticipantAsPerson |
37
41
  export interface IPurpose {
38
42
  typeOf: string;
39
43
  }
40
- /**
41
- * 追加属性
42
- */
43
44
  /**
44
45
  * アクション属性
45
46
  */
package/lib/index.d.ts CHANGED
@@ -129,6 +129,7 @@ import * as CancelAccountMoneyTransferTaskFactory from './task/cancelAccountMone
129
129
  import * as CancelMoneyTransferTaskFactory from './task/cancelMoneyTransfer';
130
130
  import * as CancelPendingReservationTaskFactory from './task/cancelPendingReservation';
131
131
  import * as CancelReservationTaskFactory from './task/cancelReservation';
132
+ import * as CheckResourceTaskFactory from './task/checkResource';
132
133
  import * as ConfirmMoneyTransferTaskFactory from './task/confirmMoneyTransfer';
133
134
  import * as ConfirmPayTransactionTaskFactory from './task/confirmPayTransaction';
134
135
  import * as ConfirmRegisterServiceTaskFactory from './task/confirmRegisterService';
@@ -417,6 +418,7 @@ export declare namespace task {
417
418
  export import cancelMoneyTransfer = CancelMoneyTransferTaskFactory;
418
419
  export import cancelPendingReservation = CancelPendingReservationTaskFactory;
419
420
  export import cancelReservation = CancelReservationTaskFactory;
421
+ export import checkResource = CheckResourceTaskFactory;
420
422
  export import createEvent = CreateEventTaskFactory;
421
423
  export import CreateAccountingReport = CreateAccountingReportTaskFactory;
422
424
  export import confirmReserveTransaction = ConfirmReserveTransactionTaskFactory;
package/lib/index.js CHANGED
@@ -118,6 +118,7 @@ var CancelAccountMoneyTransferTaskFactory = require("./task/cancelAccountMoneyTr
118
118
  var CancelMoneyTransferTaskFactory = require("./task/cancelMoneyTransfer");
119
119
  var CancelPendingReservationTaskFactory = require("./task/cancelPendingReservation");
120
120
  var CancelReservationTaskFactory = require("./task/cancelReservation");
121
+ var CheckResourceTaskFactory = require("./task/checkResource");
121
122
  var ConfirmReserveTransactionTaskFactory = require("./task/confirmReserveTransaction");
122
123
  var CreateAccountingReportTaskFactory = require("./task/createAccountingReport");
123
124
  var CreateEventTaskFactory = require("./task/createEvent");
@@ -370,6 +371,7 @@ var task;
370
371
  task.cancelMoneyTransfer = CancelMoneyTransferTaskFactory;
371
372
  task.cancelPendingReservation = CancelPendingReservationTaskFactory;
372
373
  task.cancelReservation = CancelReservationTaskFactory;
374
+ task.checkResource = CheckResourceTaskFactory;
373
375
  task.createEvent = CreateEventTaskFactory;
374
376
  task.CreateAccountingReport = CreateAccountingReportTaskFactory;
375
377
  task.confirmReserveTransaction = ConfirmReserveTransactionTaskFactory;
@@ -0,0 +1,19 @@
1
+ import { IAttributes as ICheckActionAttributes } from '../action/check';
2
+ import { IExtendId } from '../autoGenerated';
3
+ import { OrderType } from '../order';
4
+ import * as TaskFactory from '../task';
5
+ import { TaskName } from '../taskName';
6
+ export interface IResourceAsOrder {
7
+ orderNumber: string;
8
+ typeOf: OrderType.Order;
9
+ }
10
+ export type IResource = IResourceAsOrder;
11
+ export type IData = Pick<ICheckActionAttributes<IResource, any>, 'object' | 'project' | 'typeOf'>;
12
+ export interface IAttributes extends TaskFactory.IAttributes {
13
+ name: TaskName.CheckResource;
14
+ data: IData;
15
+ }
16
+ /**
17
+ * リソース検証タスク
18
+ */
19
+ export type ITask = IExtendId<IAttributes>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/lib/taskName.d.ts CHANGED
@@ -15,6 +15,10 @@ export declare enum TaskName {
15
15
  CancelMoneyTransfer = "cancelMoneyTransfer",
16
16
  CancelReservation = "cancelReservation",
17
17
  CancelPendingReservation = "cancelPendingReservation",
18
+ /**
19
+ * リソース検証
20
+ */
21
+ CheckResource = "checkResource",
18
22
  /**
19
23
  * 通貨転送
20
24
  */
package/lib/taskName.js CHANGED
@@ -19,6 +19,10 @@ var TaskName;
19
19
  TaskName["CancelMoneyTransfer"] = "cancelMoneyTransfer";
20
20
  TaskName["CancelReservation"] = "cancelReservation";
21
21
  TaskName["CancelPendingReservation"] = "cancelPendingReservation";
22
+ /**
23
+ * リソース検証
24
+ */
25
+ TaskName["CheckResource"] = "checkResource";
22
26
  /**
23
27
  * 通貨転送
24
28
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.362.0-alpha.1",
3
+ "version": "4.362.0-alpha.3",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",