@chevre/factory 4.277.0-alpha.1 → 4.277.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.
@@ -5,7 +5,7 @@ import * as ReturnActionFactory from '../return';
5
5
  import { IAttributes as ISendEmailMessageActionAttributes } from '../send/message/email';
6
6
  import * as ReturnMoneyTransferActionFactory from './moneyTransfer';
7
7
  import * as ReturnPointAwardActionFactory from './pointAward';
8
- export declare type IAgent = ActionFactory.IParticipantAsPerson | ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsProject;
8
+ export declare type IAgent = OrderFactory.IParticipantAsReturner;
9
9
  export declare type IRecipient = ActionFactory.IParticipantAsSeller;
10
10
  /**
11
11
  * 返却対象は注文
package/lib/order.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { IParticipant } from './action';
1
+ import { IParticipantAsPerson, IParticipantAsProject, IParticipantAsWebApplication } from './action';
2
2
  import { IPaymentService, ITotalPaymentDue } from './action/trade/pay';
3
3
  import { IAmount as IMoneyTransferAmount, IPaymentCard as IPaymentCardAsMoneyTransferToLocation } from './action/transfer/moneyTransfer';
4
4
  import { ActionType } from './actionType';
@@ -166,10 +166,6 @@ export interface IAcceptedOffer<T extends IItemOffered> extends IOfferOptimized4
166
166
  * 販売者
167
167
  */
168
168
  export interface ISeller {
169
- project: {
170
- id: string;
171
- typeOf: OrganizationType.Project;
172
- };
173
169
  id: string;
174
170
  typeOf: OrganizationType.Corporation;
175
171
  name: string;
@@ -181,17 +177,18 @@ export declare type IWebApplicationCustomer = Pick<IWebApplication, 'id' | 'type
181
177
  /**
182
178
  * 顧客組織としてのカスタマー
183
179
  */
184
- export declare type IOrganizationCustomer = Pick<ICustomerOrganization, 'id' | 'typeOf' | 'project'> & IProfile;
180
+ export declare type IOrganizationCustomer = Pick<ICustomerOrganization, 'id' | 'typeOf'> & IProfile;
185
181
  export declare type IPersonCustomer = Pick<IPerson, 'id' | 'typeOf' | 'memberOf'> & IProfile;
186
182
  /**
187
183
  * カスタマー
188
184
  */
189
185
  export declare type ICustomer = IPersonCustomer | IWebApplicationCustomer | IOrganizationCustomer;
190
- export declare type IBroker = IPerson;
186
+ export declare type IBroker = Pick<IPerson, 'id' | 'identifier' | 'typeOf'>;
191
187
  /**
192
188
  * 返品者
193
189
  */
194
- export declare type IReturner = IParticipant;
190
+ export declare type IParticipantAsReturner = IParticipantAsPerson | IParticipantAsProject | IParticipantAsWebApplication;
191
+ export declare type IReturner = Pick<IParticipantAsReturner, 'id' | 'typeOf'>;
195
192
  export declare type IIdentifier = IPropertyValue<string>[];
196
193
  export declare type ISimpleCustomer = Pick<ICustomer, 'id' | 'typeOf' | 'name'>;
197
194
  export interface ISimpleOrder extends Pick<IThing, 'name'> {
@@ -61,10 +61,6 @@ export interface IOwnerAsWebApplication {
61
61
  }
62
62
  export declare type IOwner = IOwnerAsOrganization | IOwnerAsPerson | IOwnerAsWebApplication;
63
63
  export interface IAcquiredFrom {
64
- project: {
65
- id: string;
66
- typeOf: OrganizationType.Project;
67
- };
68
64
  id: string;
69
65
  typeOf: OrganizationType.Corporation;
70
66
  name: string;
@@ -10,10 +10,10 @@ import { SortType } from './sortType';
10
10
  import { TransactionStatusType } from './transactionStatusType';
11
11
  import { TransactionTasksExportationStatus } from './transactionTasksExportationStatus';
12
12
  import { TransactionType } from './transactionType';
13
- export interface IAgentAsWebApplication extends IWebApplicationAttributes {
13
+ export interface IAgentAsWebApplication extends Pick<IWebApplicationAttributes, 'id' | 'identifier' | 'typeOf'> {
14
14
  name?: string;
15
15
  }
16
- export interface IAgentAsPerson extends IPersonAttributes {
16
+ export interface IAgentAsPerson extends Pick<IPersonAttributes, 'id' | 'identifier' | 'memberOf' | 'typeOf'> {
17
17
  name?: string;
18
18
  }
19
19
  export declare type IAgent = IAgentAsWebApplication | IAgentAsPerson;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.277.0-alpha.1",
3
+ "version": "4.277.0",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",