@chevre/factory 4.399.0-alpha.17 → 4.399.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.
- package/lib/action/check/paymentMethod/movieTicket.d.ts +2 -2
- package/lib/action/check/token.d.ts +23 -0
- package/lib/action/check/token.js +7 -0
- package/lib/action/check.d.ts +10 -0
- package/lib/action/consume/use/reservation.d.ts +3 -2
- package/lib/action/update/add.d.ts +16 -19
- package/lib/action/update/add.js +0 -15
- package/lib/action/update/delete/member.d.ts +25 -0
- package/lib/action/update/delete.d.ts +7 -90
- package/lib/action/update/delete.js +0 -9
- package/lib/action/update/replace.d.ts +3 -55
- package/lib/event/anyEvent.d.ts +1 -7
- package/lib/index.d.ts +8 -7
- package/lib/index.js +7 -11
- package/lib/offer/eventOffer.d.ts +73 -23
- package/lib/report/accountingReport.d.ts +0 -17
- package/lib/task/checkResource.d.ts +13 -2
- package/lib/task/createAccountingReport.d.ts +8 -2
- package/lib/task/createEvent.d.ts +28 -7
- package/lib/task/deletePerson.d.ts +1 -1
- package/lib/task/deleteTransaction.d.ts +34 -3
- package/lib/task/deleteTransaction.js +9 -0
- package/package.json +1 -1
- package/lib/action/check/thing.d.ts +0 -27
- package/lib/action/create.d.ts +0 -19
- package/lib/action/update/add/object.d.ts +0 -28
- package/lib/action/update/add/object.js +0 -2
- package/lib/action/update/instrumentAsApplication.d.ts +0 -5
- package/lib/action/update/instrumentAsApplication.js +0 -2
- package/lib/action/update/update/object.d.ts +0 -47
- package/lib/action/update/update/object.js +0 -2
- package/lib/action/update/update/result.d.ts +0 -32
- package/lib/action/update/update/result.js +0 -2
- package/lib/action/update/update/targetCollection.d.ts +0 -32
- package/lib/action/update/update/targetCollection.js +0 -2
- package/lib/action/update/update.d.ts +0 -25
- package/lib/action/update/update.js +0 -19
- /package/lib/action/{check/thing.js → check.js} +0 -0
- /package/lib/action/{create.js → update/delete/member.js} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as ActionFactory from '../../../action';
|
|
2
|
-
import { ActionType } from '../../../actionType';
|
|
3
2
|
import { OrganizationType } from '../../../organizationType';
|
|
4
3
|
import { IMovieTicketPaymentCard, IMovieTicketServiceOutput } from '../../../paymentMethod/paymentCard/movieTicket';
|
|
5
4
|
import { IMkknInfo, IPurchaseNumberAuthIn, IPurchaseNumberAuthResult, IPurchaseNumberInfo, IRecipe, IYkknInfo } from '../../../recipe/checkMovieTicket';
|
|
6
5
|
import { TransactionType } from '../../../transactionType';
|
|
6
|
+
import * as CheckActionFactory from '../../check';
|
|
7
7
|
import * as PayActionFactory from '../../trade/pay';
|
|
8
8
|
export { IMkknInfo, IYkknInfo, IPurchaseNumberInfo, IPurchaseNumberAuthIn, IPurchaseNumberAuthResult, IRecipe };
|
|
9
9
|
export type IAgent = ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsPerson;
|
|
@@ -37,7 +37,7 @@ export interface IPurpose {
|
|
|
37
37
|
typeOf: TransactionType.PlaceOrder;
|
|
38
38
|
id: string;
|
|
39
39
|
}
|
|
40
|
-
export interface IAttributes extends Pick<
|
|
40
|
+
export interface IAttributes extends Pick<CheckActionFactory.IAttributes<IObject, IResult>, 'agent' | 'error' | 'instrument' | 'object' | 'potentialActions' | 'purpose' | 'result' | 'project' | 'sameAs' | 'typeOf'> {
|
|
41
41
|
agent: IAgent;
|
|
42
42
|
object: IObject;
|
|
43
43
|
purpose?: IPurpose;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as ActionFactory from '../../action';
|
|
2
|
+
import * as CheckActionFactory from '../check';
|
|
3
|
+
export declare enum ObjectType {
|
|
4
|
+
Ticket = "Ticket"
|
|
5
|
+
}
|
|
6
|
+
export type IAgent = ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsPerson | ActionFactory.IParticipantAsProject;
|
|
7
|
+
export interface IObject {
|
|
8
|
+
token: string;
|
|
9
|
+
typeOf: ObjectType;
|
|
10
|
+
}
|
|
11
|
+
export type IResult = any;
|
|
12
|
+
export type IError = any;
|
|
13
|
+
/**
|
|
14
|
+
* トークン検証アクション属性
|
|
15
|
+
*/
|
|
16
|
+
export interface IAttributes extends CheckActionFactory.IAttributes<IObject, IResult> {
|
|
17
|
+
agent: IAgent;
|
|
18
|
+
object: IObject;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* トークン検証アクション
|
|
22
|
+
*/
|
|
23
|
+
export type IAction = ActionFactory.IAction<IAttributes>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as ActionFactory from '../action';
|
|
2
|
+
import { ActionType } from '../actionType';
|
|
3
|
+
export type IObject = any;
|
|
4
|
+
export type IResult = any;
|
|
5
|
+
export interface IAttributes<TObject, TResult> extends ActionFactory.IAttributes<ActionType.CheckAction, TObject, TResult> {
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* 確認アクション
|
|
9
|
+
*/
|
|
10
|
+
export type IAction<TAttributes extends IAttributes<IObject, IResult>> = ActionFactory.IAction<TAttributes>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { IParticipantAsPerson, IParticipantAsWebApplication } from '../../../action';
|
|
2
2
|
import { IOrder } from '../../../order';
|
|
3
3
|
import { PlaceType } from '../../../placeType';
|
|
4
|
-
import { ITicket, ITicketType
|
|
4
|
+
import { ITicket, ITicketType } from '../../../reservation';
|
|
5
5
|
import { IIssuedThrough, IReservation, IReservationFor } from '../../../reservation/event';
|
|
6
|
+
import { ObjectType } from '../../check/token';
|
|
6
7
|
import * as UseActionFactory from '../use';
|
|
7
8
|
export type IAgent = IParticipantAsPerson | IParticipantAsWebApplication;
|
|
8
9
|
export interface IReservationAsObject extends Pick<IReservation, 'id' | 'reservationNumber' | 'typeOf'> {
|
|
@@ -32,7 +33,7 @@ export interface ITicketAsInstrument {
|
|
|
32
33
|
* 承認コード
|
|
33
34
|
*/
|
|
34
35
|
ticketToken?: string;
|
|
35
|
-
typeOf:
|
|
36
|
+
typeOf: ObjectType.Ticket;
|
|
36
37
|
}
|
|
37
38
|
export type IInstrument = IOrderAsInstrument | ITicketAsInstrument;
|
|
38
39
|
export interface IAttributes extends Pick<UseActionFactory.IAttributes<IObject, IResult>, 'agent' | 'error' | 'instrument' | 'location' | 'object' | 'project' | 'result' | 'typeOf' | 'error'> {
|
|
@@ -2,39 +2,36 @@ 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 { OfferType } from '../../offerType';
|
|
7
5
|
import { ProductType } from '../../product';
|
|
8
|
-
import { IObject } from './add/object';
|
|
9
|
-
import { IInstrumentAsApplication } from './instrumentAsApplication';
|
|
10
|
-
export * from './add/object';
|
|
11
6
|
export type IAgent = ActionFactory.IParticipantAsPerson | ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsSoftwareApplication;
|
|
7
|
+
export interface IObjectAsNote {
|
|
8
|
+
identifier: string;
|
|
9
|
+
typeOf: CreativeWorkType.NoteDigitalDocument;
|
|
10
|
+
}
|
|
11
|
+
export interface IObjectAsProduct {
|
|
12
|
+
productID: string;
|
|
13
|
+
typeOf: ProductType;
|
|
14
|
+
}
|
|
15
|
+
export type IObject = IObjectAsNote | IObjectAsProduct;
|
|
12
16
|
export interface IAddedObject {
|
|
13
17
|
id: string;
|
|
14
|
-
typeOf: CreativeWorkType.NoteDigitalDocument | ProductType
|
|
18
|
+
typeOf: CreativeWorkType.NoteDigitalDocument | ProductType;
|
|
15
19
|
}
|
|
16
20
|
export type IResult = IAddedObject[];
|
|
17
|
-
export interface
|
|
18
|
-
typeOf: CreativeWorkType.WebApplication;
|
|
21
|
+
export interface IInstrument {
|
|
22
|
+
typeOf: CreativeWorkType.WebApplication | CreativeWorkType.SoftwareApplication;
|
|
19
23
|
id: string;
|
|
20
|
-
createScreeningEventSeriesIfNotExistByWorkPerformed: true;
|
|
21
|
-
/**
|
|
22
|
-
* 全施設に施設コンテンツを作成するかどうか
|
|
23
|
-
*/
|
|
24
|
-
createScreeningEventSeriesOnAllLocation?: boolean;
|
|
25
24
|
}
|
|
26
|
-
export type IInstrument = IInstrumentAsApplication | IInstrumentWithAddEventSeriesOption;
|
|
27
25
|
export interface ITargetCollectionAsNote {
|
|
28
26
|
typeOf: CreativeWorkType.NoteDigitalDocument;
|
|
29
|
-
about: Pick<INoteAbout, 'typeOf'>;
|
|
27
|
+
about: Pick<INoteAbout, 'id' | 'typeOf'>;
|
|
30
28
|
}
|
|
31
|
-
export interface
|
|
32
|
-
typeOf: ProductType
|
|
29
|
+
export interface ITargetCollectionAsProduct {
|
|
30
|
+
typeOf: ProductType;
|
|
33
31
|
}
|
|
34
|
-
export type ITargetCollection = ITargetCollectionAsNote
|
|
32
|
+
export type ITargetCollection = ITargetCollectionAsNote;
|
|
35
33
|
export interface IAttributes extends Pick<ActionFactory.IAttributes<ActionType.AddAction, IObject, IResult>, 'typeOf' | 'targetCollection' | 'sameAs' | 'result' | 'project' | 'object' | 'instrument' | 'error' | 'agent'> {
|
|
36
34
|
potentialActions?: never;
|
|
37
|
-
purpose?: never;
|
|
38
35
|
instrument: IInstrument;
|
|
39
36
|
targetCollection: ITargetCollection;
|
|
40
37
|
}
|
package/lib/action/update/add.js
CHANGED
|
@@ -1,17 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./add/object"), exports);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { IPerson } from '../../../person';
|
|
2
|
+
import * as DeleteActionFactory from '../delete';
|
|
3
|
+
export type IObject = Pick<IPerson, 'id' | 'typeOf'> & {
|
|
4
|
+
/**
|
|
5
|
+
* 新ユーザープールへ移行するかどうか
|
|
6
|
+
*/
|
|
7
|
+
migrate?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* 移行会員通知先
|
|
10
|
+
*/
|
|
11
|
+
migratePersonRecipientUrl?: string;
|
|
12
|
+
/**
|
|
13
|
+
* ユーザープールから物理削除するかどうか
|
|
14
|
+
*/
|
|
15
|
+
physically?: boolean;
|
|
16
|
+
};
|
|
17
|
+
export interface IResult {
|
|
18
|
+
existingPeople?: any;
|
|
19
|
+
}
|
|
20
|
+
export interface IAttributes extends Omit<DeleteActionFactory.IAttributes<IObject, IResult>, 'potentialActions'> {
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* 会員削除アクション
|
|
24
|
+
*/
|
|
25
|
+
export type IAction = DeleteActionFactory.IAction<IAttributes>;
|
|
@@ -1,98 +1,15 @@
|
|
|
1
1
|
import * as ActionFactory from '../../action';
|
|
2
2
|
import { ActionType } from '../../actionType';
|
|
3
|
-
import { IAbout as INoteAbout } from '../../creativeWork/noteDigitalDocument';
|
|
4
|
-
import { CreativeWorkType } from '../../creativeWorkType';
|
|
5
|
-
import { IPerson } from '../../person';
|
|
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';
|
|
19
3
|
export type IAgent = ActionFactory.IParticipant;
|
|
20
4
|
export type IRecipient = ActionFactory.IParticipant;
|
|
21
|
-
export type
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
*/
|
|
25
|
-
migrate?: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* 移行会員通知先
|
|
28
|
-
*/
|
|
29
|
-
migratePersonRecipientUrl?: string;
|
|
30
|
-
/**
|
|
31
|
-
* ユーザープールから物理削除するかどうか
|
|
32
|
-
*/
|
|
33
|
-
physically?: boolean;
|
|
34
|
-
};
|
|
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;
|
|
79
|
-
export interface IResultAsPerson {
|
|
80
|
-
existingPeople?: any;
|
|
81
|
-
}
|
|
82
|
-
export type IResult = IResultAsPerson | any;
|
|
83
|
-
export type IInstrument = IInstrumentAsApplication;
|
|
84
|
-
export interface ITargetCollectionAsNote {
|
|
85
|
-
typeOf: CreativeWorkType.NoteDigitalDocument;
|
|
86
|
-
about: Pick<INoteAbout, 'typeOf'>;
|
|
5
|
+
export type IObject = any;
|
|
6
|
+
export type IResult = any;
|
|
7
|
+
export interface IPotentialActions {
|
|
87
8
|
}
|
|
88
|
-
export
|
|
89
|
-
|
|
90
|
-
potentialActions?: never;
|
|
91
|
-
purpose?: never;
|
|
92
|
-
instrument?: IInstrument;
|
|
93
|
-
targetCollection?: ITargetCollection;
|
|
9
|
+
export interface IAttributes<TObject, TResult> extends ActionFactory.IAttributes<ActionType.DeleteAction, TObject, TResult> {
|
|
10
|
+
potentialActions?: IPotentialActions;
|
|
94
11
|
}
|
|
95
12
|
/**
|
|
96
|
-
*
|
|
13
|
+
* 削除アクションインターフェース
|
|
97
14
|
*/
|
|
98
|
-
export type IAction = ActionFactory.IAction<
|
|
15
|
+
export type IAction<TAttributes extends IAttributes<IObject, IResult>> = ActionFactory.IAction<TAttributes>;
|
|
@@ -1,11 +1,2 @@
|
|
|
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,66 +1,14 @@
|
|
|
1
1
|
import * as ActionFactory from '../../action';
|
|
2
2
|
import { ActionType } from '../../actionType';
|
|
3
|
-
import { Identifier as WebAPIIdentifier, IService as IWebAPI } from '../../service/webAPI';
|
|
4
|
-
import { IInstrumentAsApplication } from './instrumentAsApplication';
|
|
5
|
-
import { EventType } from '../../eventType';
|
|
6
|
-
import { OrganizationType } from '../../organizationType';
|
|
7
|
-
import { PlaceType } from '../../placeType';
|
|
8
3
|
export type IAgent = ActionFactory.IParticipantAsPerson | ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsSoftwareApplication;
|
|
9
|
-
|
|
10
|
-
project: {
|
|
11
|
-
id: string;
|
|
12
|
-
typeOf: OrganizationType.Project;
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
* 施設コード
|
|
16
|
-
*/
|
|
17
|
-
locationBranchCode: string;
|
|
18
|
-
importFrom: Date;
|
|
19
|
-
importThrough: Date;
|
|
20
|
-
/**
|
|
21
|
-
* 施設を保管するかどうか
|
|
22
|
-
*/
|
|
23
|
-
saveMovieTheater: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* 施設コンテンツを保管するかどうか
|
|
26
|
-
*/
|
|
27
|
-
saveScreeningEventSeries: boolean;
|
|
28
|
-
saveScreeningEventSeriesPeriodInMonth: number;
|
|
29
|
-
}
|
|
30
|
-
export interface IObjectAsEventByCOA extends IImportFromCOAParams {
|
|
31
|
-
startDate: string;
|
|
32
|
-
superEvent: {
|
|
33
|
-
location: {
|
|
34
|
-
branchCode: string;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
typeOf: EventType.ScreeningEvent;
|
|
38
|
-
}
|
|
39
|
-
export interface IObjectAsMovieTheaterByCOA extends IImportFromCOAParams {
|
|
40
|
-
branchCode: string;
|
|
41
|
-
typeOf: PlaceType.MovieTheater;
|
|
42
|
-
}
|
|
43
|
-
export type IObject = IObjectAsEventByCOA | IObjectAsMovieTheaterByCOA;
|
|
4
|
+
export type IObject = any;
|
|
44
5
|
export type IResult = any;
|
|
45
6
|
export type IReplacer = any;
|
|
46
|
-
export interface
|
|
47
|
-
theaterCode: string;
|
|
48
|
-
begin?: string;
|
|
49
|
-
end?: string;
|
|
50
|
-
typeOf: IWebAPI<WebAPIIdentifier>['typeOf'];
|
|
51
|
-
identifier: WebAPIIdentifier.COA;
|
|
52
|
-
}
|
|
53
|
-
export type IInstrument = IInstrumentAsApplication | IInstrumentAsCOAAPI;
|
|
54
|
-
export type ITargetCollection = any;
|
|
55
|
-
export interface IAttributes extends Pick<ActionFactory.IAttributes<ActionType.ReplaceAction, IObject, IResult>, 'typeOf' | 'targetCollection' | 'sameAs' | 'result' | 'replacer' | 'project' | 'object' | 'instrument' | 'error' | 'agent'> {
|
|
7
|
+
export interface IAttributes<TObject, TResult> extends Pick<ActionFactory.IAttributes<ActionType.ReplaceAction, TObject, TResult>, 'typeOf' | 'targetCollection' | 'sameAs' | 'result' | 'replacer' | 'project' | 'potentialActions' | 'purpose' | 'object' | 'location' | 'instrument' | 'error' | 'description' | 'agent'> {
|
|
56
8
|
potentialActions?: never;
|
|
57
|
-
purpose?: never;
|
|
58
9
|
replacer?: IReplacer;
|
|
59
|
-
instrument?: IInstrument;
|
|
60
|
-
targetCollection: ITargetCollection;
|
|
61
10
|
}
|
|
62
11
|
/**
|
|
63
12
|
* 置換アクション
|
|
64
13
|
*/
|
|
65
|
-
export type IAction = ActionFactory.IAction<
|
|
66
|
-
export {};
|
|
14
|
+
export type IAction<TAttributes extends IAttributes<IObject, IResult>> = ActionFactory.IAction<TAttributes>;
|
package/lib/event/anyEvent.d.ts
CHANGED
|
@@ -232,13 +232,7 @@ export interface IMemberProgramTier4create {
|
|
|
232
232
|
export type ISellerMakesOffer4create = Pick<IEventOffer, 'availabilityEnds' | 'availabilityStarts' | 'validFrom' | 'validThrough' | 'typeOf'> & {
|
|
233
233
|
availableAtOrFrom: Pick<IOfferAvailableAtOrFrom, 'id'>;
|
|
234
234
|
/**
|
|
235
|
-
*
|
|
236
|
-
* メンバープログラムティアごとにプロダクトオファーを管理する場合に指定
|
|
237
|
-
*/
|
|
238
|
-
identifier?: string;
|
|
239
|
-
/**
|
|
240
|
-
* 有効なメンバープログラムティア条件
|
|
241
|
-
* メンバープログラムティアごとにプロダクトオファーを管理する場合に指定
|
|
235
|
+
* メンバープログラムティアごとにイベントオファーを管理する場合に指定
|
|
242
236
|
*/
|
|
243
237
|
validForMemberTier?: IMemberProgramTier4create;
|
|
244
238
|
};
|
package/lib/index.d.ts
CHANGED
|
@@ -19,9 +19,8 @@ import * as AuthorizeTicketedObjectActionFactory from './action/authorize/ticket
|
|
|
19
19
|
import * as CancelCOAReserveActionFactory from './action/cancel/coaReserve';
|
|
20
20
|
import * as CancelReservationActionFactory from './action/cancel/reservation';
|
|
21
21
|
import * as CheckMovieTicketActionFactory from './action/check/paymentMethod/movieTicket';
|
|
22
|
-
import * as
|
|
22
|
+
import * as CheckTokenActionFactory from './action/check/token';
|
|
23
23
|
import * as UseReservationActionFactory from './action/consume/use/reservation';
|
|
24
|
-
import * as CreateActionFactory from './action/create';
|
|
25
24
|
import * as ConfirmMoneyTransferActionFactory from './action/interact/confirm/moneyTransfer';
|
|
26
25
|
import * as ConfirmPayActionFactory from './action/interact/confirm/pay';
|
|
27
26
|
import * as ConfirmRegisterServiceActionFactory from './action/interact/confirm/registerService';
|
|
@@ -45,8 +44,8 @@ import * as SendEmailMessageActionFactory from './action/transfer/send/message/e
|
|
|
45
44
|
import * as SendOrderActionFactory from './action/transfer/send/order';
|
|
46
45
|
import * as AddActionFactory from './action/update/add';
|
|
47
46
|
import * as DeleteActionFactory from './action/update/delete';
|
|
47
|
+
import * as DeleteMemberActionFactory from './action/update/delete/member';
|
|
48
48
|
import * as ReplaceActionFactory from './action/update/replace';
|
|
49
|
-
import * as UpdateActionFactory from './action/update/update';
|
|
50
49
|
import { ActionStatusType } from './actionStatusType';
|
|
51
50
|
import { ActionType } from './actionType';
|
|
52
51
|
import * as AccountTitleFactory from './accountTitle';
|
|
@@ -280,9 +279,8 @@ export declare namespace action {
|
|
|
280
279
|
namespace paymentMethod {
|
|
281
280
|
export import movieTicket = CheckMovieTicketActionFactory;
|
|
282
281
|
}
|
|
283
|
-
export import
|
|
282
|
+
export import token = CheckTokenActionFactory;
|
|
284
283
|
}
|
|
285
|
-
export import create = CreateActionFactory;
|
|
286
284
|
namespace interact {
|
|
287
285
|
namespace confirm {
|
|
288
286
|
export import moneyTransfer = ConfirmMoneyTransferActionFactory;
|
|
@@ -329,9 +327,12 @@ export declare namespace action {
|
|
|
329
327
|
}
|
|
330
328
|
namespace update {
|
|
331
329
|
export import add = AddActionFactory;
|
|
332
|
-
|
|
330
|
+
namespace deleteAction {
|
|
331
|
+
export import IAction = DeleteActionFactory.IAction;
|
|
332
|
+
export import IAttributes = DeleteActionFactory.IAttributes;
|
|
333
|
+
export import member = DeleteMemberActionFactory;
|
|
334
|
+
}
|
|
333
335
|
export import replace = ReplaceActionFactory;
|
|
334
|
-
export import update = UpdateActionFactory;
|
|
335
336
|
}
|
|
336
337
|
namespace consume {
|
|
337
338
|
namespace use {
|
package/lib/index.js
CHANGED
|
@@ -21,9 +21,8 @@ var AuthorizeTicketedObjectActionFactory = require("./action/authorize/ticketedO
|
|
|
21
21
|
var CancelCOAReserveActionFactory = require("./action/cancel/coaReserve");
|
|
22
22
|
var CancelReservationActionFactory = require("./action/cancel/reservation");
|
|
23
23
|
var CheckMovieTicketActionFactory = require("./action/check/paymentMethod/movieTicket");
|
|
24
|
-
var
|
|
24
|
+
var CheckTokenActionFactory = require("./action/check/token");
|
|
25
25
|
var UseReservationActionFactory = require("./action/consume/use/reservation");
|
|
26
|
-
var CreateActionFactory = require("./action/create");
|
|
27
26
|
var ConfirmMoneyTransferActionFactory = require("./action/interact/confirm/moneyTransfer");
|
|
28
27
|
var ConfirmPayActionFactory = require("./action/interact/confirm/pay");
|
|
29
28
|
var ConfirmRegisterServiceActionFactory = require("./action/interact/confirm/registerService");
|
|
@@ -44,9 +43,8 @@ var ReturnReserveTransactionActionFactory = require("./action/transfer/return/re
|
|
|
44
43
|
var SendEmailMessageActionFactory = require("./action/transfer/send/message/email");
|
|
45
44
|
var SendOrderActionFactory = require("./action/transfer/send/order");
|
|
46
45
|
var AddActionFactory = require("./action/update/add");
|
|
47
|
-
var
|
|
46
|
+
var DeleteMemberActionFactory = require("./action/update/delete/member");
|
|
48
47
|
var ReplaceActionFactory = require("./action/update/replace");
|
|
49
|
-
var UpdateActionFactory = require("./action/update/update");
|
|
50
48
|
var actionStatusType_1 = require("./actionStatusType");
|
|
51
49
|
var actionType_1 = require("./actionType");
|
|
52
50
|
var AccountTitleFactory = require("./accountTitle");
|
|
@@ -250,11 +248,8 @@ var action;
|
|
|
250
248
|
(function (paymentMethod) {
|
|
251
249
|
paymentMethod.movieTicket = CheckMovieTicketActionFactory;
|
|
252
250
|
})(paymentMethod = check.paymentMethod || (check.paymentMethod = {}));
|
|
253
|
-
|
|
254
|
-
check.thing = CheckThingActionFactory;
|
|
255
|
-
// export import token = CheckTokenActionFactory; // discontinue(2025-09-22~)
|
|
251
|
+
check.token = CheckTokenActionFactory;
|
|
256
252
|
})(check = action.check || (action.check = {}));
|
|
257
|
-
action.create = CreateActionFactory;
|
|
258
253
|
var interact;
|
|
259
254
|
(function (interact) {
|
|
260
255
|
var confirm;
|
|
@@ -315,10 +310,11 @@ var action;
|
|
|
315
310
|
var update;
|
|
316
311
|
(function (update) {
|
|
317
312
|
update.add = AddActionFactory;
|
|
318
|
-
|
|
313
|
+
var deleteAction;
|
|
314
|
+
(function (deleteAction) {
|
|
315
|
+
deleteAction.member = DeleteMemberActionFactory;
|
|
316
|
+
})(deleteAction = update.deleteAction || (update.deleteAction = {}));
|
|
319
317
|
update.replace = ReplaceActionFactory;
|
|
320
|
-
// tslint:disable-next-line:no-shadowed-variable
|
|
321
|
-
update.update = UpdateActionFactory;
|
|
322
318
|
})(update = action.update || (action.update = {}));
|
|
323
319
|
var consume;
|
|
324
320
|
(function (consume) {
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
+
import { EventType } from '../eventType';
|
|
1
2
|
import { issuer } from '../issuer';
|
|
2
3
|
import { IAvailableAtOrFrom, IOffer } from '../offer';
|
|
3
|
-
import {
|
|
4
|
+
import { OrganizationType } from '../organizationType';
|
|
5
|
+
import { SortType } from '../sortType';
|
|
4
6
|
type IOfferAvailableAtOrFrom = Pick<IAvailableAtOrFrom, 'id'>;
|
|
5
7
|
type IMemberProgramTier = Pick<issuer.IMemberProgramTier, 'isTierOf' | 'typeOf'>;
|
|
6
8
|
/**
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
+
* アプリケーションごとのイベントに対するオファー
|
|
10
|
+
* 基本的に有効期間を定義
|
|
9
11
|
*/
|
|
10
|
-
interface
|
|
11
|
-
typeOf: OfferType.Offer;
|
|
12
|
+
interface IEventOffer extends Pick<IOffer, 'typeOf' | 'availabilityEnds' | 'availabilityStarts' | 'validFrom' | 'validThrough'> {
|
|
12
13
|
/**
|
|
13
14
|
* いつまで表示可能か
|
|
14
15
|
*/
|
|
@@ -26,29 +27,78 @@ interface ISingleEventOffer extends Pick<IOffer, 'typeOf' | 'availabilityEnds' |
|
|
|
26
27
|
*/
|
|
27
28
|
validThrough: Date;
|
|
28
29
|
availableAtOrFrom?: IOfferAvailableAtOrFrom | IOfferAvailableAtOrFrom[];
|
|
29
|
-
identifier?: never;
|
|
30
|
-
validForMemberTier?: never;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* メンバープログラムティア適用のイベントオファー
|
|
34
|
-
* ティアごとの有効期間はプロダクトオファーで管理される
|
|
35
|
-
*/
|
|
36
|
-
interface IEventOfferForMemberTier extends Pick<ISingleEventOffer, 'availabilityEnds' | 'availabilityStarts' | 'validFrom' | 'validThrough' | 'availableAtOrFrom'> {
|
|
37
|
-
typeOf: OfferType.AggregateOffer;
|
|
38
|
-
/**
|
|
39
|
-
* プロダクトオファーコレクションコード
|
|
40
|
-
*/
|
|
41
|
-
identifier: string;
|
|
42
30
|
/**
|
|
43
31
|
* 有効なメンバープログラムティア
|
|
44
32
|
* 定義されている場合、オファー承認の際にメンバーシップトークンが必須
|
|
45
33
|
* また、オファーの有効期間がメンバープログラムティアごとのイベントオファーに依存する
|
|
46
34
|
*/
|
|
47
|
-
validForMemberTier
|
|
35
|
+
validForMemberTier?: IMemberProgramTier;
|
|
48
36
|
}
|
|
49
37
|
/**
|
|
50
|
-
*
|
|
51
|
-
*
|
|
38
|
+
* メンバープログラムティアごとのイベントオファー
|
|
39
|
+
* itemOffered.id + availableAtOrFrom.id + validForMemberTier.identifier でユニーク
|
|
52
40
|
*/
|
|
53
|
-
|
|
54
|
-
|
|
41
|
+
interface IEventOfferForMemberTier extends Pick<IEventOffer, 'typeOf' | 'validFrom' | 'validThrough'> {
|
|
42
|
+
availableAtOrFrom: IOfferAvailableAtOrFrom;
|
|
43
|
+
validForMemberTier: Pick<issuer.IMemberProgramTier, 'identifier' | 'typeOf'>;
|
|
44
|
+
project: {
|
|
45
|
+
id: string;
|
|
46
|
+
typeOf: OrganizationType.Project;
|
|
47
|
+
};
|
|
48
|
+
seller: {
|
|
49
|
+
id: string;
|
|
50
|
+
typeOf: OrganizationType.Organization;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* イベントオファーコード
|
|
54
|
+
* イベントID内でユニーク必須
|
|
55
|
+
*/
|
|
56
|
+
identifier: string;
|
|
57
|
+
itemOffered: {
|
|
58
|
+
/**
|
|
59
|
+
* イベントID
|
|
60
|
+
*/
|
|
61
|
+
id: string;
|
|
62
|
+
typeOf: EventType.ScreeningEvent;
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
interface ISearchConditions {
|
|
66
|
+
limit?: number;
|
|
67
|
+
page?: number;
|
|
68
|
+
sort?: {
|
|
69
|
+
validFrom?: SortType;
|
|
70
|
+
};
|
|
71
|
+
project?: {
|
|
72
|
+
id?: {
|
|
73
|
+
$eq?: string;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
seller?: {
|
|
77
|
+
id?: {
|
|
78
|
+
$eq?: string;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
id?: {
|
|
82
|
+
$eq?: string;
|
|
83
|
+
$in?: string[];
|
|
84
|
+
};
|
|
85
|
+
identifier?: {
|
|
86
|
+
$eq?: string;
|
|
87
|
+
};
|
|
88
|
+
itemOffered?: {
|
|
89
|
+
id?: {
|
|
90
|
+
$eq?: string;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
availableAtOrFrom?: {
|
|
94
|
+
id?: {
|
|
95
|
+
$eq?: string;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
validForMemberTier?: {
|
|
99
|
+
identifier?: {
|
|
100
|
+
$eq?: string;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
export { IEventOffer, IEventOfferForMemberTier, IMemberProgramTier, ISearchConditions };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { IAction as IPayAction, IPaymentService as IPayObject } from '../action/trade/pay';
|
|
2
2
|
import { IAction as IRefundAction, IPaymentService as IRefundObject } from '../action/trade/refund';
|
|
3
3
|
import { IAcceptedOffer, ICustomer, IItemOffered, IOrder } from '../order';
|
|
4
|
-
import { OrganizationType } from '../organizationType';
|
|
5
4
|
export type IPayActionObject = Pick<IPayObject, 'id' | 'paymentMethod' | 'typeOf'>;
|
|
6
5
|
export type IOptimizedPayAction = Pick<IPayAction, 'actionStatus' | 'endDate' | 'id' | 'purpose' | 'startDate' | 'typeOf'> & {
|
|
7
6
|
object: IPayActionObject[];
|
|
@@ -26,22 +25,6 @@ export interface IReport {
|
|
|
26
25
|
mainEntity: IOrderAsMainEntity;
|
|
27
26
|
};
|
|
28
27
|
}
|
|
29
|
-
export interface IChildReport {
|
|
30
|
-
typeOf: 'Report';
|
|
31
|
-
mainEntity: IAction;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* DB保存形式としての経理レポート
|
|
35
|
-
*/
|
|
36
|
-
export interface IReportDocument {
|
|
37
|
-
project: {
|
|
38
|
-
id: string;
|
|
39
|
-
typeOf: OrganizationType.Project;
|
|
40
|
-
};
|
|
41
|
-
typeOf: 'Report';
|
|
42
|
-
hasPart: IChildReport[];
|
|
43
|
-
mainEntity: IOrderAsMainEntity;
|
|
44
|
-
}
|
|
45
28
|
/**
|
|
46
29
|
* 検索条件
|
|
47
30
|
*/
|
|
@@ -1,8 +1,19 @@
|
|
|
1
|
-
import { IAttributes as ICheckActionAttributes } from '../action/check
|
|
1
|
+
import { IAttributes as ICheckActionAttributes } from '../action/check';
|
|
2
2
|
import { IExtendId } from '../autoGenerated';
|
|
3
|
+
import { EventType } from '../eventType';
|
|
4
|
+
import { OrderType } from '../order';
|
|
3
5
|
import * as TaskFactory from '../task';
|
|
4
6
|
import { TaskName } from '../taskName';
|
|
5
|
-
export
|
|
7
|
+
export interface IResourceAsEvent {
|
|
8
|
+
id: string;
|
|
9
|
+
typeOf: EventType.ScreeningEvent;
|
|
10
|
+
}
|
|
11
|
+
export interface IResourceAsOrder {
|
|
12
|
+
orderNumber: string;
|
|
13
|
+
typeOf: OrderType.Order;
|
|
14
|
+
}
|
|
15
|
+
export type IResource = IResourceAsEvent | IResourceAsOrder;
|
|
16
|
+
export type IData = Pick<ICheckActionAttributes<IResource, any>, 'object' | 'project' | 'typeOf'>;
|
|
6
17
|
export interface IAttributes extends TaskFactory.IAttributes {
|
|
7
18
|
name: TaskName.CheckResource;
|
|
8
19
|
data: IData;
|
|
@@ -1,9 +1,15 @@
|
|
|
1
|
-
import { IObject } from '../action/create';
|
|
2
1
|
import { IExtendId } from '../autoGenerated';
|
|
3
2
|
import * as TaskFactory from '../task';
|
|
4
3
|
import { TaskName } from '../taskName';
|
|
5
4
|
export interface IData {
|
|
6
|
-
object:
|
|
5
|
+
object: {
|
|
6
|
+
mainEntity: {
|
|
7
|
+
orderNumber: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
project: {
|
|
11
|
+
id: string;
|
|
12
|
+
};
|
|
7
13
|
}
|
|
8
14
|
export interface IAttributes extends TaskFactory.IAttributes {
|
|
9
15
|
name: TaskName.CreateAccountingReport;
|
|
@@ -1,19 +1,40 @@
|
|
|
1
|
-
import { IAttributes as
|
|
1
|
+
import { IAttributes as IActionAttributes } from '../action';
|
|
2
|
+
import { ActionType } from '../actionType';
|
|
3
|
+
import { CreativeWorkType } from '../creativeWorkType';
|
|
4
|
+
import { IAttributes as IScreeningEventAttributes } from '../event/screeningEvent';
|
|
5
|
+
import { IAttributes as IScreeningEventSeriesAttributes } from '../event/screeningEventSeries';
|
|
2
6
|
import { IExtendId } from '../autoGenerated';
|
|
3
7
|
import * as TaskFactory from '../task';
|
|
4
8
|
import { TaskName } from '../taskName';
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
|
|
9
|
+
export interface IActionInstrument {
|
|
10
|
+
typeOf?: CreativeWorkType.WebApplication;
|
|
11
|
+
id?: string;
|
|
12
|
+
createScreeningEventSeriesIfNotExistByWorkPerformed: true;
|
|
13
|
+
/**
|
|
14
|
+
* 全施設に施設コンテンツを作成するかどうか
|
|
15
|
+
*/
|
|
16
|
+
createScreeningEventSeriesOnAllLocation?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface IEventBySchedule {
|
|
19
|
+
/**
|
|
20
|
+
* スケジュールを作成し始める日(Asia/Tokyoでこの日から作成される)
|
|
21
|
+
*/
|
|
22
|
+
startDate?: Date;
|
|
23
|
+
eventSchedule: {
|
|
24
|
+
id: string;
|
|
25
|
+
};
|
|
26
|
+
typeOf: IScreeningEventAttributes['typeOf'];
|
|
27
|
+
}
|
|
28
|
+
export type ICreateEventSeriesAction = Pick<IActionAttributes<ActionType.CreateAction, IScreeningEventSeriesAttributes[], undefined>, 'agent' | 'object' | 'project' | 'targetCollection' | 'typeOf'> & {
|
|
29
|
+
instrument: IActionInstrument;
|
|
8
30
|
};
|
|
9
31
|
/**
|
|
10
32
|
* スケジュールによるイベント作成アクション
|
|
11
33
|
*/
|
|
12
|
-
export type
|
|
13
|
-
object: IObjectAsEventBySchedule;
|
|
34
|
+
export type ICreateEventByScheduleAction = Pick<IActionAttributes<ActionType.CreateAction, IEventBySchedule, undefined>, 'agent' | 'object' | 'project' | 'targetCollection' | 'typeOf'> & {
|
|
14
35
|
instrument?: never;
|
|
15
36
|
};
|
|
16
|
-
export type IData =
|
|
37
|
+
export type IData = ICreateEventSeriesAction | ICreateEventByScheduleAction;
|
|
17
38
|
export interface IAttributes extends TaskFactory.IAttributes {
|
|
18
39
|
name: TaskName.CreateEvent;
|
|
19
40
|
data: IData;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IAttributes as IDeleteMemberActionAttributes } from '../action/update/delete';
|
|
1
|
+
import { IAttributes as IDeleteMemberActionAttributes } from '../action/update/delete/member';
|
|
2
2
|
import { IExtendId } from '../autoGenerated';
|
|
3
3
|
import * as TaskFactory from '../task';
|
|
4
4
|
import { TaskName } from '../taskName';
|
|
@@ -1,9 +1,40 @@
|
|
|
1
|
-
import { IObjectAsMoneyTransfer, IObjectAsPlaceOrder, IObjectAsReturnOrder, IObjectAsTransactionByAgentId } from '../action/update/delete';
|
|
2
1
|
import { IExtendId } from '../autoGenerated';
|
|
3
2
|
import * as TaskFactory from '../task';
|
|
4
3
|
import { TaskName } from '../taskName';
|
|
5
|
-
|
|
6
|
-
|
|
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;
|
|
7
38
|
export interface IData {
|
|
8
39
|
object: IObject;
|
|
9
40
|
}
|
|
@@ -1,2 +1,11 @@
|
|
|
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,27 +0,0 @@
|
|
|
1
|
-
import * as ActionFactory from '../../action';
|
|
2
|
-
import { ActionType } from '../../actionType';
|
|
3
|
-
import { EventType } from '../../eventType';
|
|
4
|
-
import { OrderType } from '../../order';
|
|
5
|
-
export type IAgent = ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsPerson | ActionFactory.IParticipantAsProject;
|
|
6
|
-
export interface IObjectAsEvent {
|
|
7
|
-
id: string;
|
|
8
|
-
typeOf: EventType.ScreeningEvent;
|
|
9
|
-
}
|
|
10
|
-
export interface IObjectAsOrder {
|
|
11
|
-
orderNumber: string;
|
|
12
|
-
typeOf: OrderType.Order;
|
|
13
|
-
}
|
|
14
|
-
export type IObject = IObjectAsEvent | IObjectAsOrder;
|
|
15
|
-
export interface IResult {
|
|
16
|
-
}
|
|
17
|
-
export type IError = any;
|
|
18
|
-
export interface IAttributes extends Pick<ActionFactory.IAttributes<ActionType.CheckAction, IObject, IResult>, 'agent' | 'error' | 'object' | 'project' | 'result' | 'sameAs' | 'typeOf'> {
|
|
19
|
-
purpose?: never;
|
|
20
|
-
agent: IAgent;
|
|
21
|
-
object: IObject;
|
|
22
|
-
sameAs: ActionFactory.ISameAs;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* 汎用リソース検証アクション
|
|
26
|
-
*/
|
|
27
|
-
export type IAction = ActionFactory.IAction<IAttributes>;
|
package/lib/action/create.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as ActionFactory from '../action';
|
|
2
|
-
import { ActionType } from '../actionType';
|
|
3
|
-
import { ISimpleOrder } from '../order';
|
|
4
|
-
import { IOrderAsMainEntity, IReportDocument } from '../report/accountingReport';
|
|
5
|
-
export type IObjectAsAccountingReport = Pick<IReportDocument, 'typeOf'> & {
|
|
6
|
-
mainEntity: Pick<IOrderAsMainEntity, 'orderNumber'>;
|
|
7
|
-
};
|
|
8
|
-
export type IObject = IObjectAsAccountingReport;
|
|
9
|
-
export interface IResult {
|
|
10
|
-
}
|
|
11
|
-
export type IPurposeAsOrder = ISimpleOrder;
|
|
12
|
-
export type IPurpose = IPurposeAsOrder;
|
|
13
|
-
export interface IAttributes extends Pick<ActionFactory.IAttributes<ActionType.CreateAction, IObject, IResult>, 'agent' | 'error' | 'object' | 'project' | 'purpose' | 'sameAs' | 'typeOf'> {
|
|
14
|
-
purpose?: IPurpose;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* 作成アクション
|
|
18
|
-
*/
|
|
19
|
-
export type IAction = ActionFactory.IAction<IAttributes>;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { CreativeWorkType } from '../../../creativeWorkType';
|
|
2
|
-
import { IAttributes as IEventSeriesAttributes } from '../../../event/screeningEventSeries';
|
|
3
|
-
import { EventType } from '../../../eventType';
|
|
4
|
-
import { OfferType } from '../../../offerType';
|
|
5
|
-
import { ProductType } from '../../../product';
|
|
6
|
-
export interface IObjectAsNote {
|
|
7
|
-
identifier: string;
|
|
8
|
-
typeOf: CreativeWorkType.NoteDigitalDocument;
|
|
9
|
-
}
|
|
10
|
-
export interface IObjectAsProduct {
|
|
11
|
-
productID: string;
|
|
12
|
-
typeOf: ProductType;
|
|
13
|
-
}
|
|
14
|
-
export interface IObjectAsSingleResource {
|
|
15
|
-
typeOf: OfferType.Offer | 'ProductModel' | CreativeWorkType.Movie | EventType;
|
|
16
|
-
}
|
|
17
|
-
export type IObjectAsEventSeriesAttributes = IEventSeriesAttributes;
|
|
18
|
-
export interface IObjectAsEventBySchedule {
|
|
19
|
-
/**
|
|
20
|
-
* スケジュールを作成し始める日(Asia/Tokyoでこの日から作成される)
|
|
21
|
-
*/
|
|
22
|
-
startDate?: Date;
|
|
23
|
-
eventSchedule: {
|
|
24
|
-
id: string;
|
|
25
|
-
};
|
|
26
|
-
typeOf: EventType.ScreeningEvent;
|
|
27
|
-
}
|
|
28
|
-
export type IObject = IObjectAsSingleResource | IObjectAsNote[] | IObjectAsProduct[] | IObjectAsEventSeriesAttributes[] | IObjectAsEventBySchedule;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { ICreativeWork as IMovie } from '../../../creativeWork/movie';
|
|
2
|
-
import { CreativeWorkType } from '../../../creativeWorkType';
|
|
3
|
-
import { IEvent as IEventSeries } from '../../../event/screeningEventSeries';
|
|
4
|
-
import { EventType } from '../../../eventType';
|
|
5
|
-
import { IOfferCatalog } from '../../../offerCatalog';
|
|
6
|
-
import { IOrder } from '../../../order';
|
|
7
|
-
import { IProduct } from '../../../product';
|
|
8
|
-
import { ReservationType } from '../../../reservationType';
|
|
9
|
-
import { ISeller } from '../../../seller';
|
|
10
|
-
import { TripType } from '../../../tripType';
|
|
11
|
-
import { IUnitPriceOffer } from '../../../unitPriceOffer';
|
|
12
|
-
export interface IObjectAsNote {
|
|
13
|
-
identifier: string;
|
|
14
|
-
typeOf: CreativeWorkType.NoteDigitalDocument;
|
|
15
|
-
}
|
|
16
|
-
export interface IObjectAsReservation {
|
|
17
|
-
id: string;
|
|
18
|
-
reservationNumber: string;
|
|
19
|
-
typeOf: ReservationType.EventReservation;
|
|
20
|
-
additionalTicketText?: string;
|
|
21
|
-
}
|
|
22
|
-
export interface IObjectAsEvent4ttts {
|
|
23
|
-
id: string;
|
|
24
|
-
identifier: string;
|
|
25
|
-
typeOf: EventType.ScreeningEvent;
|
|
26
|
-
}
|
|
27
|
-
export type IObjectAsOfferCatalog = Pick<IOfferCatalog, 'identifier' | 'typeOf'>;
|
|
28
|
-
export type IObjectAsOffer = Pick<IUnitPriceOffer, 'identifier' | 'typeOf'>;
|
|
29
|
-
export type IObjectAsProduct = Pick<IProduct, 'productID' | 'typeOf'>;
|
|
30
|
-
export type IObjectAsMovie = Pick<IMovie, 'identifier' | 'typeOf'>;
|
|
31
|
-
export type IObjectAsEventSeriesByVersion = Pick<IEventSeries, 'typeOf'> & {
|
|
32
|
-
workPerformed: {
|
|
33
|
-
identifier: string;
|
|
34
|
-
version: string;
|
|
35
|
-
};
|
|
36
|
-
location: {
|
|
37
|
-
branchCode: string;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
export type IObjectAsOrder = Pick<IOrder, 'orderNumber' | 'typeOf'> & {
|
|
41
|
-
id: string;
|
|
42
|
-
};
|
|
43
|
-
export interface IObjectAsResourceById {
|
|
44
|
-
id: string;
|
|
45
|
-
typeOf: IUnitPriceOffer['typeOf'] | IProduct['typeOf'] | 'ProductModel' | ISeller['typeOf'] | IMovie['typeOf'] | EventType | TripType;
|
|
46
|
-
}
|
|
47
|
-
export type IObject = IObjectAsOfferCatalog[] | IObjectAsOffer[] | IObjectAsProduct[] | IObjectAsMovie[] | IObjectAsEventSeriesByVersion[] | IObjectAsNote[] | IObjectAsResourceById[] | IObjectAsReservation | IObjectAsEvent4ttts | IObjectAsOrder;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { ICreativeWork as IMovie } from '../../../creativeWork/movie';
|
|
2
|
-
import { CreativeWorkType } from '../../../creativeWorkType';
|
|
3
|
-
import { IEvent as IEventSeries } from '../../../event/screeningEventSeries';
|
|
4
|
-
import { EventType } from '../../../eventType';
|
|
5
|
-
import { IOfferCatalog } from '../../../offerCatalog';
|
|
6
|
-
import { IOrder } from '../../../order';
|
|
7
|
-
import { IProduct } from '../../../product';
|
|
8
|
-
import { ReservationType } from '../../../reservationType';
|
|
9
|
-
import { IUnitPriceOffer } from '../../../unitPriceOffer';
|
|
10
|
-
/**
|
|
11
|
-
* 汎用的なリソース編集結果
|
|
12
|
-
*/
|
|
13
|
-
export interface IUpdatedResource {
|
|
14
|
-
id: string;
|
|
15
|
-
typeOf: CreativeWorkType.NoteDigitalDocument | EventType.ScreeningEvent | IOfferCatalog['typeOf'] | IUnitPriceOffer['typeOf'] | IProduct['typeOf'] | IMovie['typeOf'] | IEventSeries['typeOf'];
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* 単一予約編集結果
|
|
19
|
-
*/
|
|
20
|
-
export interface IUpdatedReservation {
|
|
21
|
-
id: string;
|
|
22
|
-
typeOf: ReservationType.EventReservation;
|
|
23
|
-
additionalTicketText?: string;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* 単一注文編集結果
|
|
27
|
-
*/
|
|
28
|
-
export interface IUpdatedOrder extends Pick<IOrder, 'name' | 'orderNumber' | 'typeOf'> {
|
|
29
|
-
}
|
|
30
|
-
export interface IResultAsNoContent {
|
|
31
|
-
}
|
|
32
|
-
export type IResult = IUpdatedResource[] | IUpdatedReservation | IUpdatedOrder | IResultAsNoContent;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { ICreativeWork as IMovie } from '../../../creativeWork/movie';
|
|
2
|
-
import { IAbout as INoteAbout } from '../../../creativeWork/noteDigitalDocument';
|
|
3
|
-
import { CreativeWorkType } from '../../../creativeWorkType';
|
|
4
|
-
import { IEvent as IEventSeries } from '../../../event/screeningEventSeries';
|
|
5
|
-
import { EventType } from '../../../eventType';
|
|
6
|
-
import { IOfferCatalog } from '../../../offerCatalog';
|
|
7
|
-
import { OrderType } from '../../../order';
|
|
8
|
-
import { IProduct } from '../../../product';
|
|
9
|
-
import { ReservationType } from '../../../reservationType';
|
|
10
|
-
import { ISeller } from '../../../seller';
|
|
11
|
-
import { TripType } from '../../../tripType';
|
|
12
|
-
import { IUnitPriceOffer } from '../../../unitPriceOffer';
|
|
13
|
-
export interface ITargetCollectionAsNote {
|
|
14
|
-
typeOf: CreativeWorkType.NoteDigitalDocument;
|
|
15
|
-
about: Pick<INoteAbout, 'typeOf'>;
|
|
16
|
-
}
|
|
17
|
-
export interface ITargetCollectionAsReservation {
|
|
18
|
-
typeOf: ReservationType.EventReservation;
|
|
19
|
-
id: string;
|
|
20
|
-
}
|
|
21
|
-
export interface ITargetCollectionAsResource {
|
|
22
|
-
typeOf: EventType.ScreeningEvent | IOfferCatalog['typeOf'] | IUnitPriceOffer['typeOf'] | IProduct['typeOf'] | IMovie['typeOf'] | IEventSeries['typeOf'] | OrderType.Order;
|
|
23
|
-
}
|
|
24
|
-
export interface ITargetCollectionAsEventById {
|
|
25
|
-
id: string;
|
|
26
|
-
typeOf: EventType;
|
|
27
|
-
}
|
|
28
|
-
export interface ITargetCollectionAsResourceById {
|
|
29
|
-
id: string;
|
|
30
|
-
typeOf: IUnitPriceOffer['typeOf'] | IProduct['typeOf'] | 'ProductModel' | ISeller['typeOf'] | IMovie['typeOf'] | EventType | TripType;
|
|
31
|
-
}
|
|
32
|
-
export type ITargetCollection = ITargetCollectionAsNote | ITargetCollectionAsReservation | ITargetCollectionAsResource | ITargetCollectionAsResourceById | ITargetCollectionAsEventById[];
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import * as ActionFactory from '../../action';
|
|
2
|
-
import { ActionType } from '../../actionType';
|
|
3
|
-
import { IInstrumentAsApplication } from './instrumentAsApplication';
|
|
4
|
-
import { IObject } from './update/object';
|
|
5
|
-
import { IResult } from './update/result';
|
|
6
|
-
import { ITargetCollection } from './update/targetCollection';
|
|
7
|
-
export * from './update/object';
|
|
8
|
-
export * from './update/result';
|
|
9
|
-
export * from './update/targetCollection';
|
|
10
|
-
export type IAgent = ActionFactory.IParticipantAsPerson | ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsSoftwareApplication | ActionFactory.IParticipantAsProject;
|
|
11
|
-
export interface IInstrumentAsTask {
|
|
12
|
-
typeOf: 'Task';
|
|
13
|
-
}
|
|
14
|
-
export type IInstrument = IInstrumentAsApplication | IInstrumentAsTask;
|
|
15
|
-
export interface IAttributes extends Pick<ActionFactory.IAttributes<ActionType.UpdateAction, IObject, IResult>, 'typeOf' | 'targetCollection' | 'sameAs' | 'result' | 'project' | 'object' | 'instrument' | 'error' | 'agent'> {
|
|
16
|
-
potentialActions?: never;
|
|
17
|
-
purpose?: never;
|
|
18
|
-
agent: IAgent;
|
|
19
|
-
instrument: IInstrument;
|
|
20
|
-
targetCollection: ITargetCollection;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* 編集アクション
|
|
24
|
-
*/
|
|
25
|
-
export type IAction = ActionFactory.IAction<IAttributes>;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./update/object"), exports);
|
|
18
|
-
__exportStar(require("./update/result"), exports);
|
|
19
|
-
__exportStar(require("./update/targetCollection"), exports);
|
|
File without changes
|
|
File without changes
|