@chevre/factory 4.399.0-alpha.7 → 4.399.0-alpha.9
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
|
|
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?:
|
|
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 = {}));
|
|
@@ -2,8 +2,63 @@ import * as ActionFactory from '../../action';
|
|
|
2
2
|
import { ActionType } from '../../actionType';
|
|
3
3
|
import { Identifier as WebAPIIdentifier, IService as IWebAPI } from '../../service/webAPI';
|
|
4
4
|
import { IInstrumentAsApplication } from './instrumentAsApplication';
|
|
5
|
+
import { ICreativeWork as IMovie } from '../../creativeWork/movie';
|
|
6
|
+
import { IEvent as IEventSeries } from '../../event/screeningEventSeries';
|
|
7
|
+
import { EventType } from '../../eventType';
|
|
8
|
+
import { IOfferCatalog } from '../../offerCatalog';
|
|
9
|
+
import { OrganizationType } from '../../organizationType';
|
|
10
|
+
import { PlaceType } from '../../placeType';
|
|
11
|
+
import { IProduct } from '../../product';
|
|
12
|
+
import { IUnitPriceOffer } from '../../unitPriceOffer';
|
|
5
13
|
export type IAgent = ActionFactory.IParticipantAsPerson | ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsSoftwareApplication;
|
|
6
|
-
export type
|
|
14
|
+
export type IObjectAsOfferCatalog = Pick<IOfferCatalog, 'identifier' | 'typeOf'>;
|
|
15
|
+
export type IObjectAsOffer = Pick<IUnitPriceOffer, 'identifier' | 'typeOf'>;
|
|
16
|
+
export type IObjectAsProduct = Pick<IProduct, 'productID' | 'typeOf'>;
|
|
17
|
+
export type IObjectAsMovie = Pick<IMovie, 'identifier' | 'typeOf'>;
|
|
18
|
+
export type IObjectAsEventSeriesByVersion = Pick<IEventSeries, 'typeOf'> & {
|
|
19
|
+
workPerformed: {
|
|
20
|
+
identifier: string;
|
|
21
|
+
version: string;
|
|
22
|
+
};
|
|
23
|
+
location: {
|
|
24
|
+
branchCode: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
interface IImportFromCOAParams {
|
|
28
|
+
project: {
|
|
29
|
+
id: string;
|
|
30
|
+
typeOf: OrganizationType.Project;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* 施設コード
|
|
34
|
+
*/
|
|
35
|
+
locationBranchCode: string;
|
|
36
|
+
importFrom: Date;
|
|
37
|
+
importThrough: Date;
|
|
38
|
+
/**
|
|
39
|
+
* 施設を保管するかどうか
|
|
40
|
+
*/
|
|
41
|
+
saveMovieTheater: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* 施設コンテンツを保管するかどうか
|
|
44
|
+
*/
|
|
45
|
+
saveScreeningEventSeries: boolean;
|
|
46
|
+
saveScreeningEventSeriesPeriodInMonth: number;
|
|
47
|
+
}
|
|
48
|
+
export interface IObjectAsEventByCOA extends IImportFromCOAParams {
|
|
49
|
+
startDate: string;
|
|
50
|
+
superEvent: {
|
|
51
|
+
location: {
|
|
52
|
+
branchCode: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
typeOf: EventType.ScreeningEvent;
|
|
56
|
+
}
|
|
57
|
+
export interface IObjectAsMovieTheaterByCOA extends IImportFromCOAParams {
|
|
58
|
+
branchCode: string;
|
|
59
|
+
typeOf: PlaceType.MovieTheater;
|
|
60
|
+
}
|
|
61
|
+
export type IObject = IObjectAsOfferCatalog | IObjectAsOffer | IObjectAsProduct | IObjectAsMovie | IObjectAsEventSeriesByVersion;
|
|
7
62
|
export type IResult = any;
|
|
8
63
|
export type IReplacer = any;
|
|
9
64
|
export interface IInstrumentAsCOAAPI {
|
|
@@ -26,3 +81,4 @@ export interface IAttributes extends Pick<ActionFactory.IAttributes<ActionType.R
|
|
|
26
81
|
* 置換アクション
|
|
27
82
|
*/
|
|
28
83
|
export type IAction = ActionFactory.IAction<IAttributes>;
|
|
84
|
+
export {};
|
|
@@ -2,28 +2,53 @@ import * as ActionFactory from '../../action';
|
|
|
2
2
|
import { ActionType } from '../../actionType';
|
|
3
3
|
import { IAbout as INoteAbout } from '../../creativeWork/noteDigitalDocument';
|
|
4
4
|
import { CreativeWorkType } from '../../creativeWorkType';
|
|
5
|
+
import { EventType } from '../../eventType';
|
|
6
|
+
import { ReservationType } from '../../reservationType';
|
|
5
7
|
import { IInstrumentAsApplication } from './instrumentAsApplication';
|
|
6
8
|
export type IAgent = ActionFactory.IParticipantAsPerson | ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsSoftwareApplication;
|
|
7
9
|
export interface IObjectAsNote {
|
|
8
10
|
identifier: string;
|
|
9
11
|
typeOf: CreativeWorkType.NoteDigitalDocument;
|
|
10
12
|
}
|
|
11
|
-
export
|
|
12
|
-
export interface IUpdatedObject {
|
|
13
|
+
export interface IObjectAsReservation {
|
|
13
14
|
id: string;
|
|
14
|
-
|
|
15
|
+
reservationNumber: string;
|
|
16
|
+
typeOf: ReservationType.EventReservation;
|
|
17
|
+
additionalTicketText?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface IObjectAsEvent4ttts {
|
|
20
|
+
id: string;
|
|
21
|
+
identifier: string;
|
|
22
|
+
typeOf: EventType.ScreeningEvent;
|
|
23
|
+
}
|
|
24
|
+
export type IObject = IObjectAsNote[] | IObjectAsReservation | IObjectAsEvent4ttts;
|
|
25
|
+
export interface IUpdatedResource {
|
|
26
|
+
id: string;
|
|
27
|
+
typeOf: CreativeWorkType.NoteDigitalDocument | EventType.ScreeningEvent;
|
|
15
28
|
}
|
|
16
|
-
export
|
|
29
|
+
export interface IUpdatedReservation {
|
|
30
|
+
id: string;
|
|
31
|
+
typeOf: ReservationType.EventReservation;
|
|
32
|
+
additionalTicketText?: string;
|
|
33
|
+
}
|
|
34
|
+
export type IResult = IUpdatedResource[] | IUpdatedReservation;
|
|
17
35
|
export type IInstrument = IInstrumentAsApplication;
|
|
18
36
|
export interface ITargetCollectionAsNote {
|
|
19
37
|
typeOf: CreativeWorkType.NoteDigitalDocument;
|
|
20
38
|
about: Pick<INoteAbout, 'typeOf'>;
|
|
21
39
|
}
|
|
22
|
-
export
|
|
40
|
+
export interface ITargetCollectionAsReservation {
|
|
41
|
+
typeOf: ReservationType.EventReservation;
|
|
42
|
+
id: string;
|
|
43
|
+
}
|
|
44
|
+
export interface ITargetCollectionAsEvent {
|
|
45
|
+
typeOf: EventType.ScreeningEvent;
|
|
46
|
+
}
|
|
47
|
+
export type ITargetCollection = ITargetCollectionAsNote | ITargetCollectionAsReservation | ITargetCollectionAsEvent;
|
|
23
48
|
export interface IAttributes extends Pick<ActionFactory.IAttributes<ActionType.UpdateAction, IObject, IResult>, 'typeOf' | 'targetCollection' | 'sameAs' | 'result' | 'project' | 'object' | 'instrument' | 'error' | 'agent'> {
|
|
24
49
|
potentialActions?: never;
|
|
25
50
|
purpose?: never;
|
|
26
|
-
instrument
|
|
51
|
+
instrument?: IInstrument;
|
|
27
52
|
targetCollection: ITargetCollection;
|
|
28
53
|
}
|
|
29
54
|
/**
|
|
@@ -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
|
-
|
|
5
|
-
|
|
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 = {}));
|