@chevre/factory 4.399.0-alpha.7 → 4.399.0-alpha.8

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.
@@ -4,6 +4,18 @@ import { IAbout as INoteAbout } from '../../creativeWork/noteDigitalDocument';
4
4
  import { CreativeWorkType } from '../../creativeWorkType';
5
5
  import { IPerson } from '../../person';
6
6
  import { IInstrumentAsApplication } from './instrumentAsApplication';
7
+ import { IEvent as IEventSeries } from '../../event/screeningEventSeries';
8
+ import { IAggregateOffer } from '../../offer/aggregateOffer';
9
+ import { IOfferCatalog } from '../../offerCatalog';
10
+ import { IGood, IOwnershipInfo } from '../../ownershipInfo';
11
+ import { IPlace as IMovieTheater } from '../../place/movieTheater';
12
+ import { IPlace as IRoom } from '../../place/screeningRoom';
13
+ import { IProduct } from '../../product';
14
+ import { ISeller } from '../../seller';
15
+ import { IObject as IMoneyTransferObject, ITransaction as IMoneyTransfer } from '../../transaction/moneyTransfer';
16
+ import { IObject as IPlaceOrderObject, ITransaction as IPlaceOrder } from '../../transaction/placeOrder';
17
+ import { IObject as IReturnOrderObject, ITransaction as IReturnOrder } from '../../transaction/returnOrder';
18
+ import { TransactionType } from '../../transactionType';
7
19
  export type IAgent = ActionFactory.IParticipant;
8
20
  export type IRecipient = ActionFactory.IParticipant;
9
21
  export type IObjectAsPerson = Pick<IPerson, 'id' | 'typeOf'> & {
@@ -20,7 +32,50 @@ export type IObjectAsPerson = Pick<IPerson, 'id' | 'typeOf'> & {
20
32
  */
21
33
  physically?: boolean;
22
34
  };
23
- export type IObject = IObjectAsPerson | any;
35
+ export type IObjectAsOwnershipInfo = Pick<IOwnershipInfo<IGood>, 'id' | 'identifier' | 'typeOf'> & {
36
+ id: string;
37
+ };
38
+ export type IObjectAsProduct = Pick<IProduct, 'id' | 'typeOf'>;
39
+ export type IObjectAsOfferCatalog = Pick<IOfferCatalog, 'id' | 'typeOf'>;
40
+ export type IObjectAsAggregateOffer = Pick<IAggregateOffer, 'id' | 'typeOf'>;
41
+ export type IObjectAsSeller = Pick<ISeller, 'id' | 'typeOf'>;
42
+ export type IObjectAsMovieTheater = Pick<IMovieTheater, 'id' | 'typeOf'>;
43
+ export type IObjectAsRoom = Pick<IRoom, 'branchCode' | 'typeOf'> & {
44
+ containedInPlace: {
45
+ id: string;
46
+ };
47
+ };
48
+ export type IObjectAsEventSeries = Pick<IEventSeries, 'id' | 'typeOf'>;
49
+ /**
50
+ * 取引オブジェクト特定方法
51
+ */
52
+ export declare enum ObjectAsTransactionSpecifyingMethod {
53
+ Id = "Id",
54
+ AgentId = "AgentId"
55
+ }
56
+ export type IObjectAsMoneyTransfer = Pick<IMoneyTransfer, 'project' | 'id' | 'typeOf' | 'startDate' | 'endDate'> & {
57
+ object: Pick<IMoneyTransferObject, 'pendingTransaction'>;
58
+ specifyingMethod?: ObjectAsTransactionSpecifyingMethod.Id;
59
+ };
60
+ export type IObjectAsPlaceOrder = Pick<IPlaceOrder, 'project' | 'id' | 'typeOf' | 'startDate' | 'endDate'> & {
61
+ object: Pick<IPlaceOrderObject, 'confirmationNumber' | 'orderNumber'>;
62
+ specifyingMethod?: ObjectAsTransactionSpecifyingMethod.Id;
63
+ };
64
+ export type IObjectAsReturnOrder = Pick<IReturnOrder, 'project' | 'id' | 'typeOf' | 'startDate' | 'endDate'> & {
65
+ object: Pick<IReturnOrderObject, 'order'>;
66
+ specifyingMethod?: ObjectAsTransactionSpecifyingMethod.Id;
67
+ };
68
+ export interface IObjectAsTransactionByAgentId {
69
+ specifyingMethod: ObjectAsTransactionSpecifyingMethod.AgentId;
70
+ project: {
71
+ id: string;
72
+ };
73
+ typeOf: TransactionType;
74
+ agent: {
75
+ id: string;
76
+ };
77
+ }
78
+ export type IObject = IObjectAsProduct | IObjectAsOfferCatalog | IObjectAsAggregateOffer | IObjectAsSeller | IObjectAsMovieTheater | IObjectAsRoom | IObjectAsEventSeries | IObjectAsPerson | IObjectAsOwnershipInfo | IObjectAsMoneyTransfer | IObjectAsPlaceOrder | IObjectAsReturnOrder | IObjectAsTransactionByAgentId;
24
79
  export interface IResultAsPerson {
25
80
  existingPeople?: any;
26
81
  }
@@ -31,10 +86,8 @@ export interface ITargetCollectionAsNote {
31
86
  about: Pick<INoteAbout, 'typeOf'>;
32
87
  }
33
88
  export type ITargetCollection = ITargetCollectionAsNote;
34
- export interface IPotentialActions {
35
- }
36
89
  export interface IAttributes extends Pick<ActionFactory.IAttributes<ActionType.DeleteAction, IObject, IResult>, 'typeOf' | 'targetCollection' | 'sameAs' | 'result' | 'replacer' | 'project' | 'object' | 'instrument' | 'error' | 'agent'> {
37
- potentialActions?: IPotentialActions;
90
+ potentialActions?: never;
38
91
  purpose?: never;
39
92
  instrument?: IInstrument;
40
93
  targetCollection?: ITargetCollection;
@@ -1,2 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ObjectAsTransactionSpecifyingMethod = void 0;
4
+ /**
5
+ * 取引オブジェクト特定方法
6
+ */
7
+ var ObjectAsTransactionSpecifyingMethod;
8
+ (function (ObjectAsTransactionSpecifyingMethod) {
9
+ ObjectAsTransactionSpecifyingMethod["Id"] = "Id";
10
+ ObjectAsTransactionSpecifyingMethod["AgentId"] = "AgentId";
11
+ })(ObjectAsTransactionSpecifyingMethod = exports.ObjectAsTransactionSpecifyingMethod || (exports.ObjectAsTransactionSpecifyingMethod = {}));
@@ -1,40 +1,9 @@
1
+ import { IObjectAsMoneyTransfer, IObjectAsPlaceOrder, IObjectAsReturnOrder, IObjectAsTransactionByAgentId } from '../action/update/delete';
1
2
  import { IExtendId } from '../autoGenerated';
2
3
  import * as TaskFactory from '../task';
3
4
  import { TaskName } from '../taskName';
4
- import { IObject as IMoneyTransferObject, ITransaction as IMoneyTransfer } from '../transaction/moneyTransfer';
5
- import { IObject as IPlaceOrderObject, ITransaction as IPlaceOrder } from '../transaction/placeOrder';
6
- import { IObject as IReturnOrderObject, ITransaction as IReturnOrder } from '../transaction/returnOrder';
7
- import { TransactionType } from '../transactionType';
8
- /**
9
- * オブジェクト特定方法
10
- */
11
- export declare enum SpecifyingMethod {
12
- Id = "Id",
13
- AgentId = "AgentId"
14
- }
15
- export type IObjectAsMoneyTransfer = Pick<IMoneyTransfer, 'project' | 'id' | 'typeOf' | 'startDate' | 'endDate'> & {
16
- object: Pick<IMoneyTransferObject, 'pendingTransaction'>;
17
- specifyingMethod?: SpecifyingMethod.Id;
18
- };
19
- export type IObjectAsPlaceOrder = Pick<IPlaceOrder, 'project' | 'id' | 'typeOf' | 'startDate' | 'endDate'> & {
20
- object: Pick<IPlaceOrderObject, 'confirmationNumber' | 'orderNumber'>;
21
- specifyingMethod?: SpecifyingMethod.Id;
22
- };
23
- export type IObjectAsReturnOrder = Pick<IReturnOrder, 'project' | 'id' | 'typeOf' | 'startDate' | 'endDate'> & {
24
- object: Pick<IReturnOrderObject, 'order'>;
25
- specifyingMethod?: SpecifyingMethod.Id;
26
- };
27
- export interface IObjectByAgentId {
28
- specifyingMethod: SpecifyingMethod.AgentId;
29
- project: {
30
- id: string;
31
- };
32
- typeOf: TransactionType;
33
- agent: {
34
- id: string;
35
- };
36
- }
37
- export type IObject = IObjectAsMoneyTransfer | IObjectAsPlaceOrder | IObjectAsReturnOrder | IObjectByAgentId;
5
+ export { IObjectAsMoneyTransfer, IObjectAsPlaceOrder, IObjectAsReturnOrder, IObjectAsTransactionByAgentId };
6
+ export type IObject = IObjectAsMoneyTransfer | IObjectAsPlaceOrder | IObjectAsReturnOrder | IObjectAsTransactionByAgentId;
38
7
  export interface IData {
39
8
  object: IObject;
40
9
  }
@@ -1,11 +1,2 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SpecifyingMethod = void 0;
4
- /**
5
- * オブジェクト特定方法
6
- */
7
- var SpecifyingMethod;
8
- (function (SpecifyingMethod) {
9
- SpecifyingMethod["Id"] = "Id";
10
- SpecifyingMethod["AgentId"] = "AgentId";
11
- })(SpecifyingMethod = exports.SpecifyingMethod || (exports.SpecifyingMethod = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.399.0-alpha.7",
3
+ "version": "4.399.0-alpha.8",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",