@chevre/factory 4.289.0-alpha.1 → 4.289.0-alpha.11

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.
@@ -2,22 +2,18 @@ import { AccountType } from '../../accountType';
2
2
  import * as ActionFactory from '../../action';
3
3
  import { ActionType } from '../../actionType';
4
4
  import { IMonetaryAmount } from '../../monetaryAmount';
5
- import { IThing } from '../../thing';
6
5
  import { AccountTransactionType } from '../transactionType';
7
- export declare type IAgent = ActionFactory.IParticipant;
8
- export declare type IRecipient = ActionFactory.IParticipant;
6
+ export declare type IAgent = Pick<ActionFactory.IParticipant, 'name' | 'typeOf'>;
7
+ export declare type IRecipient = Pick<ActionFactory.IParticipant, 'name' | 'typeOf'>;
9
8
  /**
10
9
  * 口座以外の匿名ロケーション
11
10
  */
12
- export interface IAnonymousLocation extends Pick<IThing, 'identifier' | 'name'> {
11
+ export interface IAnonymousLocation {
12
+ name?: string;
13
13
  /**
14
14
  * ロケーションタイプ
15
15
  */
16
16
  typeOf: string;
17
- /**
18
- * ロケーションID
19
- */
20
- id?: string;
21
17
  }
22
18
  /**
23
19
  * 口座
@@ -26,8 +22,8 @@ export interface IAccount {
26
22
  typeOf: AccountType.Account;
27
23
  /**
28
24
  * 通貨
25
+ * 不要なので廃止(2023-02-16~)
29
26
  */
30
- accountType: string;
31
27
  /**
32
28
  * 口座番号
33
29
  */
@@ -41,9 +37,6 @@ export interface IAccount {
41
37
  * 転送元あるいは転送先
42
38
  */
43
39
  export declare type ILocation = IAnonymousLocation | IAccount;
44
- export declare type IObject = any;
45
- export declare type IResult = any;
46
- export declare type IPotentialActions = any;
47
40
  /**
48
41
  * アクションの目的
49
42
  * ここでは、取引が目的となる
@@ -61,14 +54,11 @@ export interface IPurpose {
61
54
  * 取引番号
62
55
  */
63
56
  transactionNumber: string;
64
- /**
65
- * 取引識別子
66
- */
67
- identifier?: string;
68
57
  }
69
- export declare type IAmount = Pick<IMonetaryAmount, 'typeOf' | 'currency' | 'value'>;
70
- export interface IAttributes extends ActionFactory.IAttributes<ActionType.MoneyTransfer, IObject, IResult> {
71
- identifier?: string;
58
+ export declare type IAmount = Pick<IMonetaryAmount, 'typeOf' | 'value'>;
59
+ export interface IAttributes extends Pick<ActionFactory.IAttributes<ActionType.MoneyTransfer, never, never>, 'project' | 'description'> {
60
+ agent: IAgent;
61
+ recipient?: IRecipient;
72
62
  typeOf: ActionType.MoneyTransfer;
73
63
  /**
74
64
  * どんな取引によって発生した転送アクションか
@@ -87,4 +77,10 @@ export interface IAttributes extends ActionFactory.IAttributes<ActionType.MoneyT
87
77
  */
88
78
  toLocation: ILocation;
89
79
  }
90
- export declare type IAction = ActionFactory.IAction<IAttributes>;
80
+ export declare type IAction = Pick<ActionFactory.IAction<Omit<IAttributes, 'agent' | 'recipient'> & {
81
+ agent: ActionFactory.IParticipant;
82
+ object: never;
83
+ }>, 'actionStatus' | 'amount' | 'description' | 'endDate' | 'fromLocation' | 'project' | 'purpose' | 'startDate' | 'toLocation' | 'typeOf' | 'id'> & {
84
+ agent: IAgent;
85
+ recipient?: IRecipient;
86
+ };
@@ -1,5 +1,5 @@
1
1
  import { IExtendId } from '../../autoGenerated';
2
- import { IAccount, IAnonymousLocation } from '../action/moneyTransfer';
2
+ import { IAccount } from '../action/moneyTransfer';
3
3
  import * as TransactionFactory from '../transaction';
4
4
  import { AccountTransactionType } from '../transactionType';
5
5
  export declare type IStartParamsWithoutDetail = TransactionFactory.IStartParams<AccountTransactionType.Deposit, IObjectWithoutDetail>;
@@ -8,21 +8,16 @@ export declare type IStartParamsWithoutDetail = TransactionFactory.IStartParams<
8
8
  */
9
9
  export declare type IStartParams = TransactionFactory.IStartParams<AccountTransactionType.Deposit, IObject>;
10
10
  export interface IObjectWithoutDetail extends TransactionFactory.IObjectWithoutDetail {
11
- fromLocation?: IAnonymousLocation;
12
11
  toLocation: TransactionFactory.ISimpleAccount;
13
12
  }
14
13
  /**
15
14
  * 取引対象物
16
15
  */
17
16
  export interface IObject extends TransactionFactory.IObject {
18
- /**
19
- * 入金元
20
- */
21
- fromLocation?: IAnonymousLocation;
22
17
  /**
23
18
  * 入金先
24
19
  */
25
- toLocation: IAccount;
20
+ toLocation: Pick<IAccount, 'accountNumber' | 'name' | 'typeOf'>;
26
21
  }
27
22
  /**
28
23
  * 入金取引属性
@@ -18,11 +18,11 @@ export interface IObject extends TransactionFactory.IObject {
18
18
  /**
19
19
  * 転送元
20
20
  */
21
- fromLocation: IAccount;
21
+ fromLocation: Pick<IAccount, 'accountNumber' | 'name' | 'typeOf'>;
22
22
  /**
23
23
  * 転送先
24
24
  */
25
- toLocation: IAccount;
25
+ toLocation: Pick<IAccount, 'accountNumber' | 'name' | 'typeOf'>;
26
26
  }
27
27
  /**
28
28
  * 転送取引
@@ -1,5 +1,5 @@
1
1
  import { IExtendId } from '../../autoGenerated';
2
- import { IAccount, IAnonymousLocation } from '../action/moneyTransfer';
2
+ import { IAccount } from '../action/moneyTransfer';
3
3
  import * as TransactionFactory from '../transaction';
4
4
  import { AccountTransactionType } from '../transactionType';
5
5
  export declare type IStartParamsWithoutDetail = TransactionFactory.IStartParams<AccountTransactionType.Withdraw, IObjectWithoutDetail>;
@@ -9,7 +9,6 @@ export declare type IStartParamsWithoutDetail = TransactionFactory.IStartParams<
9
9
  export declare type IStartParams = TransactionFactory.IStartParams<AccountTransactionType.Withdraw, IObject>;
10
10
  export interface IObjectWithoutDetail extends TransactionFactory.IObjectWithoutDetail {
11
11
  fromLocation: TransactionFactory.ISimpleAccount;
12
- toLocation?: IAnonymousLocation;
13
12
  /**
14
13
  * 利用可能金額確認をしない場合、force: true
15
14
  */
@@ -22,13 +21,8 @@ export interface IObject extends TransactionFactory.IObject {
22
21
  /**
23
22
  * 出金元
24
23
  */
25
- fromLocation: IAccount;
26
- /**
27
- * 出金先
28
- */
29
- toLocation?: IAnonymousLocation;
24
+ fromLocation: Pick<IAccount, 'accountNumber' | 'name' | 'typeOf'>;
30
25
  }
31
- export import IPotentialActions = TransactionFactory.IPotentialActions;
32
26
  /**
33
27
  * 出金取引
34
28
  */
@@ -2,7 +2,6 @@ import { IExtendId } from '../autoGenerated';
2
2
  import { OrganizationType } from '../organizationType';
3
3
  import { SortType } from '../sortType';
4
4
  import { TransactionStatusType } from '../transactionStatusType';
5
- import { TransactionTasksExportationStatus } from '../transactionTasksExportationStatus';
6
5
  import * as MoneyTransferActionFactory from './action/moneyTransfer';
7
6
  import { AccountTransactionType } from './transactionType';
8
7
  export import IAgent = MoneyTransferActionFactory.IAgent;
@@ -72,9 +71,6 @@ export interface IPotentialActions {
72
71
  /**
73
72
  * エラー
74
73
  */
75
- export declare type IError = any;
76
- export interface IResult {
77
- }
78
74
  /**
79
75
  * 口座取引属性
80
76
  */
@@ -86,11 +82,9 @@ export declare type IAttributes<TStartParams> = TStartParams & {
86
82
  /**
87
83
  * 取引結果
88
84
  */
89
- result?: IResult;
90
85
  /**
91
86
  * 取引エラー
92
87
  */
93
- error?: IError;
94
88
  /**
95
89
  * 取引開始日時
96
90
  */
@@ -102,11 +96,9 @@ export declare type IAttributes<TStartParams> = TStartParams & {
102
96
  /**
103
97
  * タスクエクスポート日時
104
98
  */
105
- tasksExportedAt?: Date;
106
99
  /**
107
100
  * タスクエクスポート状態
108
101
  */
109
- tasksExportationStatus: TransactionTasksExportationStatus;
110
102
  /**
111
103
  * 事後に発生するアクション
112
104
  */
package/lib/account.d.ts CHANGED
@@ -10,16 +10,6 @@ import * as WithdrawTransactionFactory from './account/transaction/withdraw';
10
10
  /**
11
11
  * 口座ステータスタイプ
12
12
  */
13
- export declare enum AccountStatusType {
14
- /**
15
- * 開設済
16
- */
17
- Opened = "Opened",
18
- /**
19
- * 解約済
20
- */
21
- Closed = "Closed"
22
- }
23
13
  export declare namespace action {
24
14
  export import moneyTransfer = MoneyTransferActionFactory;
25
15
  }
@@ -27,7 +17,6 @@ export declare namespace transaction {
27
17
  export import IAgent = TransactionFactory.IAgent;
28
18
  export import IRecipient = TransactionFactory.IRecipient;
29
19
  export import IPotentialActions = TransactionFactory.IPotentialActions;
30
- export import IResult = TransactionFactory.IResult;
31
20
  type ISearchConditions = TransactionFactory.ISearchConditions;
32
21
  type IStartParamsWithoutDetail<T extends AccountTransactionType> = T extends AccountTransactionType.Deposit ? DepositTransactionFactory.IStartParamsWithoutDetail : T extends AccountTransactionType.Withdraw ? WithdrawTransactionFactory.IStartParamsWithoutDetail : T extends AccountTransactionType.Transfer ? TransferTransactionFactory.IStartParamsWithoutDetail : never;
33
22
  type IStartParams<T extends AccountTransactionType> = T extends AccountTransactionType.Deposit ? DepositTransactionFactory.IStartParams : T extends AccountTransactionType.Withdraw ? WithdrawTransactionFactory.IStartParams : T extends AccountTransactionType.Transfer ? TransferTransactionFactory.IStartParams : never;
@@ -93,10 +82,6 @@ export interface IAccount {
93
82
  * 口座閉鎖日時
94
83
  */
95
84
  closeDate?: Date;
96
- /**
97
- * 口座ステータス
98
- */
99
- status: AccountStatusType;
100
85
  }
101
86
  /**
102
87
  * ソート条件
@@ -135,7 +120,6 @@ export interface ISearchConditions {
135
120
  $lte?: Date;
136
121
  };
137
122
  project?: IProjectSearchConditions;
138
- statuses?: AccountStatusType[];
139
123
  typeOf?: {
140
124
  $eq?: string;
141
125
  $in?: string[];
package/lib/account.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.transactionType = exports.transaction = exports.action = exports.AccountStatusType = void 0;
3
+ exports.transactionType = exports.transaction = exports.action = void 0;
4
4
  var transactionType_1 = require("./account/transactionType");
5
5
  var MoneyTransferActionFactory = require("./account/action/moneyTransfer");
6
6
  var DepositTransactionFactory = require("./account/transaction/deposit");
@@ -9,17 +9,16 @@ var WithdrawTransactionFactory = require("./account/transaction/withdraw");
9
9
  /**
10
10
  * 口座ステータスタイプ
11
11
  */
12
- var AccountStatusType;
13
- (function (AccountStatusType) {
14
- /**
15
- * 開設済
16
- */
17
- AccountStatusType["Opened"] = "Opened";
18
- /**
19
- * 解約済
20
- */
21
- AccountStatusType["Closed"] = "Closed";
22
- })(AccountStatusType = exports.AccountStatusType || (exports.AccountStatusType = {}));
12
+ // export enum AccountStatusType {
13
+ // /**
14
+ // * 開設済
15
+ // */
16
+ // Opened = 'Opened',
17
+ // /**
18
+ // * 解約済
19
+ // */
20
+ // Closed = 'Closed'
21
+ // }
23
22
  var action;
24
23
  (function (action) {
25
24
  action.moneyTransfer = MoneyTransferActionFactory;
@@ -9,7 +9,6 @@ import { IMonetaryAmount } from '../../monetaryAmount';
9
9
  */
10
10
  export interface IPendingTransaction {
11
11
  typeOf: AccountFactory.transactionType;
12
- id: string;
13
12
  identifier?: string;
14
13
  transactionNumber: string;
15
14
  }
@@ -18,7 +17,12 @@ export declare type IRecipient = ActionFactory.IParticipant;
18
17
  /**
19
18
  * 匿名ロケーション
20
19
  */
21
- export import IAnonymousLocation = AccountFactory.action.moneyTransfer.IAnonymousLocation;
20
+ export interface IAnonymousLocation {
21
+ id?: string;
22
+ identifier?: string;
23
+ name?: string;
24
+ typeOf: string;
25
+ }
22
26
  /**
23
27
  * ペイメントカード
24
28
  */
@@ -1,11 +1,12 @@
1
1
  import { EventType } from './eventType';
2
2
  import { IMultilingualString } from './multilingualString';
3
3
  import { OfferType } from './offerType';
4
+ import { OrderType } from './order';
4
5
  import { IProject } from './project';
5
6
  import { PropertyValueType } from './propertyValue';
6
7
  import { SortType } from './sortType';
7
8
  import { IThing } from './thing';
8
- export declare type CategorySetIdentifier = EventType.ScreeningEvent | EventType.ScreeningEventSeries | PropertyValueType.LocationFeatureSpecification | 'OfferCatalog' | OfferType.Offer;
9
+ export declare type CategorySetIdentifier = EventType.ScreeningEvent | EventType.ScreeningEventSeries | PropertyValueType.LocationFeatureSpecification | 'OfferCatalog' | OfferType.Offer | OrderType.Order;
9
10
  /**
10
11
  * {@link https://schema.org/CategoryCodeSet}
11
12
  */
@@ -59,7 +59,7 @@ export interface IObject {
59
59
  * 取引説明
60
60
  */
61
61
  description?: string;
62
- pendingTransaction?: IPendingTransaction;
62
+ pendingTransaction: IPendingTransaction;
63
63
  /**
64
64
  * 負の残高でも強制的に出金するかどうか
65
65
  */
@@ -167,12 +167,12 @@ export declare type ISuperEvent = Omit<ScreeningEventSeriesFactory.IEvent, 'even
167
167
  export import IName = AnyEventFactory.IName;
168
168
  /**
169
169
  * イベント属性
170
+ * workPerformed->superEvent.workPerformed完全移行(2023-02-20~)
170
171
  */
171
- export interface IAttributes extends Omit<AnyEventFactory.IAttributes, 'offers' | 'typeOf'> {
172
+ export interface IAttributes extends Omit<AnyEventFactory.IAttributes, 'offers' | 'typeOf' | 'workPerformed'> {
172
173
  /**
173
174
  * コンテンツ
174
175
  */
175
- workPerformed?: IWorkPerformed;
176
176
  /**
177
177
  * 親イベント
178
178
  * 施設コンテンツに相当
package/lib/order.d.ts CHANGED
@@ -277,6 +277,7 @@ export interface IOrder extends ISimpleOrder {
277
277
  * The offers included in the order.Also accepts an array of objects.
278
278
  */
279
279
  acceptedOffers?: IAcceptedOffer<IItemOffered>[];
280
+ additionalProperty?: IPropertyValue<string>[];
280
281
  /**
281
282
  * An entity that arranges for an exchange between a buyer and a seller.
282
283
  * In most cases a broker never acquires or releases ownership of a product or service involved in an exchange.
@@ -513,6 +514,19 @@ export interface ISearchConditions {
513
514
  $eq?: string;
514
515
  };
515
516
  };
517
+ additionalProperty?: {
518
+ $all?: IPropertyValue<string>[];
519
+ $in?: IPropertyValue<string>[];
520
+ $nin?: IPropertyValue<string>[];
521
+ $elemMatch?: {
522
+ name?: {
523
+ /**
524
+ * 一致する名称の追加特性がひとつでも存在する
525
+ */
526
+ $eq?: string;
527
+ };
528
+ };
529
+ };
516
530
  broker?: {
517
531
  id?: {
518
532
  $eq?: string;
package/lib/permit.d.ts CHANGED
@@ -4,21 +4,21 @@ import { IOrganization } from './organization';
4
4
  import { IProduct } from './product';
5
5
  import { IProject } from './project';
6
6
  import { IPropertyValue } from './propertyValue';
7
- import { IThing } from './thing';
8
7
  export declare enum PermitType {
9
8
  Permit = "Permit"
10
9
  }
11
- export declare type IIssuedThrough = Pick<IProduct, 'id' | 'project' | 'serviceType' | 'typeOf'>;
12
- export declare type IPaymentAccount = Pick<IAccount, 'project' | 'typeOf' | 'accountNumber' | 'accountType'>;
10
+ export declare type IIssuedThrough = Pick<IProduct, 'id' | 'serviceType' | 'typeOf'>;
11
+ export declare type IPaymentAccount = Pick<IAccount, 'accountNumber' | 'typeOf'>;
12
+ export declare type IPaymentAccountWithDetail = Pick<IAccount, 'accountNumber' | 'availableBalance' | 'balance' | 'typeOf'>;
13
13
  export declare type IAmount = Pick<IMonetaryAmount, 'typeOf' | 'currency' | 'value'>;
14
- export declare type IDepositAmount = Pick<IMonetaryAmount, 'typeOf' | 'currency' | 'maxValue' | 'minValue'>;
15
- export declare type IPaymentAmount = Pick<IMonetaryAmount, 'typeOf' | 'currency' | 'maxValue' | 'minValue'>;
14
+ export declare type IDepositAmount = Pick<IMonetaryAmount, 'typeOf' | 'maxValue' | 'minValue'>;
15
+ export declare type IPaymentAmount = Pick<IMonetaryAmount, 'typeOf' | 'maxValue' | 'minValue'>;
16
16
  export declare type IIssuedBy = Pick<IOrganization, 'typeOf' | 'id' | 'name'>;
17
17
  /**
18
18
  * A permit issued by an organization, e.g. a parking pass.
19
19
  * {@link https://schema.org/Permit}
20
20
  */
21
- export interface IPermit extends Pick<IThing, 'name'> {
21
+ export interface IPermit {
22
22
  name?: string;
23
23
  project: Pick<IProject, 'id' | 'typeOf'>;
24
24
  typeOf: PermitType;
@@ -92,6 +92,10 @@ export interface IPriceSpecificationSearchConditions {
92
92
  * 適用決済カード区分
93
93
  */
94
94
  serviceType?: {
95
+ /**
96
+ * 適用決済カード区分が存在するかどうか
97
+ */
98
+ $exists?: boolean;
95
99
  $eq?: string;
96
100
  };
97
101
  serviceOutput?: {
@@ -100,6 +104,7 @@ export interface IPriceSpecificationSearchConditions {
100
104
  */
101
105
  typeOf?: {
102
106
  $eq?: string;
107
+ $nin?: string[];
103
108
  };
104
109
  };
105
110
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.289.0-alpha.1",
3
+ "version": "4.289.0-alpha.11",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",