@chevre/factory 5.4.0-alpha.9 → 6.0.0-alpha.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.
- package/lib/action/cancel/reservation.d.ts +2 -19
- package/lib/action/interact/confirm.d.ts +1 -1
- package/lib/action/interact/inform.d.ts +5 -2
- package/lib/action/reserve.d.ts +1 -2
- package/lib/action/update/add/object.d.ts +1 -13
- package/lib/action/update/add/object.js +2 -0
- package/lib/action/update/add.d.ts +1 -10
- package/lib/action/update/delete.d.ts +1 -6
- package/lib/assetTransaction/cancelReservation.d.ts +2 -6
- package/lib/assetTransaction/reserve.d.ts +4 -33
- package/lib/event/anyEvent.d.ts +0 -13
- package/lib/event/screeningEvent.d.ts +3 -4
- package/lib/event/screeningEventSeries.d.ts +28 -17
- package/lib/index.d.ts +29 -39
- package/lib/index.js +7 -15
- package/lib/notification/eventSeries.d.ts +3 -2
- package/lib/notification/place.d.ts +47 -4
- package/lib/notification/reservation.d.ts +1 -1
- package/lib/offer/eventOffer.d.ts +4 -0
- package/lib/offerCatalog.d.ts +8 -0
- package/lib/order.d.ts +4 -50
- package/lib/ownershipInfo.d.ts +1 -19
- package/lib/place/entranceGate.d.ts +28 -0
- package/lib/place/movieTheater.d.ts +12 -9
- package/lib/place/screeningRoomSection.d.ts +16 -1
- package/lib/placeType.d.ts +1 -0
- package/lib/placeType.js +1 -0
- package/lib/reservation/event.d.ts +1 -1
- package/lib/reservation/pendingReservationPackage.d.ts +1 -1
- package/lib/reservationType.d.ts +0 -1
- package/lib/reservationType.js +1 -1
- package/lib/reservedCodeValues.js +1 -2
- package/lib/task/deleteTransaction.d.ts +3 -3
- package/lib/task/onAuthorizationCreated.d.ts +1 -0
- package/lib/task/onResourceDeleted.d.ts +81 -0
- package/lib/task/onResourceUpdated.d.ts +36 -6
- package/lib/task/triggerWebhook.d.ts +2 -2
- package/lib/taskName.d.ts +1 -16
- package/lib/taskName.js +5 -16
- package/lib/transactionType.d.ts +0 -4
- package/lib/transactionType.js +0 -4
- package/package.json +2 -2
- package/lib/action/authorize/offer/moneyTransfer.d.ts +0 -46
- package/lib/action/interact/confirm/moneyTransfer.d.ts +0 -27
- package/lib/action/transfer/return/moneyTransfer.d.ts +0 -21
- package/lib/action/transfer/return/moneyTransfer.js +0 -2
- package/lib/reservation/busReservation.d.ts +0 -55
- package/lib/reservation/busReservation.js +0 -2
- package/lib/task/confirmMoneyTransfer.d.ts +0 -13
- package/lib/task/confirmMoneyTransfer.js +0 -2
- package/lib/task/createEvent.d.ts +0 -24
- package/lib/task/createEvent.js +0 -2
- package/lib/task/returnMoneyTransfer.d.ts +0 -13
- package/lib/task/returnMoneyTransfer.js +0 -2
- package/lib/task/voidMoneyTransferTransaction.d.ts +0 -24
- package/lib/task/voidMoneyTransferTransaction.js +0 -2
- package/lib/transaction/moneyTransfer.d.ts +0 -138
- package/lib/transaction/moneyTransfer.js +0 -2
- /package/lib/{action/authorize/offer/moneyTransfer.js → place/entranceGate.js} +0 -0
- /package/lib/{action/interact/confirm/moneyTransfer.js → task/onResourceDeleted.js} +0 -0
package/lib/ownershipInfo.d.ts
CHANGED
|
@@ -10,24 +10,6 @@ import { PaymentServiceType } from './service/paymentService';
|
|
|
10
10
|
import * as WebAPIFactory from './service/webAPI';
|
|
11
11
|
import { SortType } from './sortType';
|
|
12
12
|
export type IBookingService = Pick<WebAPIFactory.IService<WebAPIFactory.Identifier>, 'identifier' | 'typeOf'>;
|
|
13
|
-
export interface IBusReservationAsGood {
|
|
14
|
-
typeOf: ReservationType.BusReservation;
|
|
15
|
-
/**
|
|
16
|
-
* 予約ID
|
|
17
|
-
*/
|
|
18
|
-
id?: string;
|
|
19
|
-
issuedThrough?: {
|
|
20
|
-
typeOf: ProductFactory.ProductType.Transportation;
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* 予約番号
|
|
24
|
-
*/
|
|
25
|
-
reservationNumber?: string;
|
|
26
|
-
/**
|
|
27
|
-
* ブッキングサービス(API)
|
|
28
|
-
*/
|
|
29
|
-
bookingService?: IBookingService;
|
|
30
|
-
}
|
|
31
13
|
export interface IEventReservationAsGood {
|
|
32
14
|
typeOf: ReservationType.EventReservation;
|
|
33
15
|
/**
|
|
@@ -49,7 +31,7 @@ export interface IEventReservationAsGood {
|
|
|
49
31
|
/**
|
|
50
32
|
* 予約
|
|
51
33
|
*/
|
|
52
|
-
export type IReservation =
|
|
34
|
+
export type IReservation = IEventReservationAsGood;
|
|
53
35
|
export type IPermitIssuedThroughAsFaceToFace = Pick<PermitFactory.IIssuedThroughAsFaceToFace, 'typeOf'>;
|
|
54
36
|
export type IPermitIssuedThroughAsCreditCard = Pick<PermitFactory.IIssuedThroughAsCreditCard, 'id' | 'typeOf'>;
|
|
55
37
|
export type IPermitIssuedThroughAsProduct = Pick<PermitFactory.IIssuedThroughAsProduct, 'id' | 'typeOf' | 'serviceType'>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as PlaceFactory from '../place';
|
|
2
|
+
import { PlaceType } from '../placeType';
|
|
3
|
+
/**
|
|
4
|
+
* 入場ゲート
|
|
5
|
+
*/
|
|
6
|
+
export type IEntranceGate = Pick<PlaceFactory.IPlace, 'typeOf' | 'identifier' | 'name'> & {
|
|
7
|
+
typeOf: PlaceType.Place;
|
|
8
|
+
identifier: string;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* 入場ゲート検索条件
|
|
12
|
+
*/
|
|
13
|
+
export interface ISearchConditions {
|
|
14
|
+
limit?: number;
|
|
15
|
+
page?: number;
|
|
16
|
+
/**
|
|
17
|
+
* プロジェクト
|
|
18
|
+
*/
|
|
19
|
+
project?: {
|
|
20
|
+
id?: {
|
|
21
|
+
$eq?: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
identifier?: {
|
|
25
|
+
$eq?: string;
|
|
26
|
+
$in?: string[];
|
|
27
|
+
};
|
|
28
|
+
}
|
|
@@ -6,6 +6,7 @@ import { IQuantitativeValue } from '../quantitativeValue';
|
|
|
6
6
|
import { ISeller } from '../seller';
|
|
7
7
|
import { SortType } from '../sortType';
|
|
8
8
|
import { UnitCode } from '../unitCode';
|
|
9
|
+
import { IEntranceGate } from './entranceGate';
|
|
9
10
|
export interface IAvailabilityStartsGraceTime extends Pick<IQuantitativeValue<UnitCode.Day>, 'typeOf' | 'value' | 'unitCode'> {
|
|
10
11
|
unitCode: UnitCode.Day;
|
|
11
12
|
value: number;
|
|
@@ -29,11 +30,11 @@ export interface IOffer extends Pick<OfferFactory.IOffer, 'typeOf' | 'eligibleQu
|
|
|
29
30
|
/**
|
|
30
31
|
* イベント開始前の販売猶予期間(POS)
|
|
31
32
|
*/
|
|
32
|
-
availabilityStartsGraceTimeOnPOS
|
|
33
|
+
availabilityStartsGraceTimeOnPOS?: never;
|
|
33
34
|
/**
|
|
34
35
|
* イベント開始後の販売猶予期間(POS)
|
|
35
36
|
*/
|
|
36
|
-
availabilityEndsGraceTimeOnPOS
|
|
37
|
+
availabilityEndsGraceTimeOnPOS?: never;
|
|
37
38
|
}
|
|
38
39
|
/**
|
|
39
40
|
* 施設の操作するPoints-of-Sales
|
|
@@ -53,13 +54,7 @@ export interface IPOS {
|
|
|
53
54
|
*/
|
|
54
55
|
name: string;
|
|
55
56
|
}
|
|
56
|
-
|
|
57
|
-
* 入場ゲート
|
|
58
|
-
*/
|
|
59
|
-
export type IEntranceGate = Pick<PlaceFactory.IPlace, 'typeOf' | 'identifier' | 'name'> & {
|
|
60
|
-
typeOf: PlaceType.Place;
|
|
61
|
-
identifier: string;
|
|
62
|
-
};
|
|
57
|
+
export { IEntranceGate };
|
|
63
58
|
/**
|
|
64
59
|
* 親組織
|
|
65
60
|
*/
|
|
@@ -123,6 +118,14 @@ export interface ISearchConditions {
|
|
|
123
118
|
$eq?: string;
|
|
124
119
|
};
|
|
125
120
|
};
|
|
121
|
+
/**
|
|
122
|
+
* 所属販売者
|
|
123
|
+
*/
|
|
124
|
+
seller?: {
|
|
125
|
+
id?: {
|
|
126
|
+
$eq?: string;
|
|
127
|
+
};
|
|
128
|
+
};
|
|
126
129
|
id?: {
|
|
127
130
|
$eq?: string;
|
|
128
131
|
$in?: string[];
|
|
@@ -45,14 +45,29 @@ export interface ISearchConditions {
|
|
|
45
45
|
$eq?: string;
|
|
46
46
|
$regex?: string;
|
|
47
47
|
};
|
|
48
|
+
/**
|
|
49
|
+
* ルーム
|
|
50
|
+
*/
|
|
48
51
|
containedInPlace?: {
|
|
52
|
+
/**
|
|
53
|
+
* ルームコード
|
|
54
|
+
*/
|
|
49
55
|
branchCode?: {
|
|
50
56
|
$eq?: string;
|
|
51
57
|
};
|
|
52
|
-
containedInPlace
|
|
58
|
+
containedInPlace?: {
|
|
59
|
+
/**
|
|
60
|
+
* 施設コード
|
|
61
|
+
*/
|
|
53
62
|
branchCode?: {
|
|
54
63
|
$eq?: string;
|
|
55
64
|
};
|
|
65
|
+
/**
|
|
66
|
+
* 施設ID
|
|
67
|
+
*/
|
|
68
|
+
id?: {
|
|
69
|
+
$eq?: string;
|
|
70
|
+
};
|
|
56
71
|
};
|
|
57
72
|
};
|
|
58
73
|
name?: {
|
package/lib/placeType.d.ts
CHANGED
package/lib/placeType.js
CHANGED
|
@@ -8,6 +8,7 @@ var PlaceType;
|
|
|
8
8
|
(function (PlaceType) {
|
|
9
9
|
PlaceType["AggregatePlace"] = "AggregatePlace";
|
|
10
10
|
PlaceType["BusStop"] = "BusStop";
|
|
11
|
+
PlaceType["EntranceGate"] = "EntranceGate";
|
|
11
12
|
PlaceType["MovieTheater"] = "MovieTheater";
|
|
12
13
|
PlaceType["Place"] = "Place";
|
|
13
14
|
PlaceType["ScreeningRoom"] = "ScreeningRoom";
|
|
@@ -13,7 +13,7 @@ import { ReservationType } from '../reservationType';
|
|
|
13
13
|
export type IOptimizedWorkPerformed = Pick<IWorkPerformed, 'typeOf' | 'id' | 'identifier' | 'duration' | 'contentRating' | 'version'> & {
|
|
14
14
|
name?: string | IMultilingualString;
|
|
15
15
|
};
|
|
16
|
-
export type IOptimizedSuperEvent = Pick<ISuperEvent, 'additionalProperty' | 'id' | 'location' | 'name' | 'soundFormat' | 'typeOf' | '
|
|
16
|
+
export type IOptimizedSuperEvent = Pick<ISuperEvent, 'additionalProperty' | 'id' | 'location' | 'name' | 'soundFormat' | 'typeOf' | 'headline' | 'identifier' | 'alternativeHeadline' | 'duration' | 'coaInfo'> & {
|
|
17
17
|
workPerformed: IOptimizedWorkPerformed;
|
|
18
18
|
};
|
|
19
19
|
export interface IReservationFor {
|
|
@@ -2,7 +2,7 @@ import { EventType } from '../eventType';
|
|
|
2
2
|
import { ISeat } from '../reservation';
|
|
3
3
|
import { ReservationType } from '../reservationType';
|
|
4
4
|
export interface ISubReservation {
|
|
5
|
-
typeOf: ReservationType.
|
|
5
|
+
typeOf: ReservationType.EventReservation;
|
|
6
6
|
id: string;
|
|
7
7
|
reservedTicket?: {
|
|
8
8
|
ticketedSeat?: Pick<ISeat, 'seatNumber' | 'seatSection'>;
|
package/lib/reservationType.d.ts
CHANGED
package/lib/reservationType.js
CHANGED
|
@@ -6,7 +6,7 @@ exports.ReservationType = void 0;
|
|
|
6
6
|
*/
|
|
7
7
|
var ReservationType;
|
|
8
8
|
(function (ReservationType) {
|
|
9
|
-
|
|
9
|
+
// BusReservation = 'BusReservation',
|
|
10
10
|
ReservationType["EventReservation"] = "EventReservation";
|
|
11
11
|
ReservationType["ReservationPackage"] = "ReservationPackage";
|
|
12
12
|
})(ReservationType = exports.ReservationType || (exports.ReservationType = {}));
|
|
@@ -108,7 +108,7 @@ exports.RESERVED_CODE_VALUES = [
|
|
|
108
108
|
reservationStatusType_1.ReservationStatusType.ReservationPending,
|
|
109
109
|
'ReservationHold',
|
|
110
110
|
reservationStatusType_1.ReservationStatusType.ReservationPending,
|
|
111
|
-
|
|
111
|
+
'BusReservation',
|
|
112
112
|
reservationType_1.ReservationType.EventReservation,
|
|
113
113
|
reservationType_1.ReservationType.ReservationPackage,
|
|
114
114
|
sortType_1.SortType.Ascending,
|
|
@@ -122,7 +122,6 @@ exports.RESERVED_CODE_VALUES = [
|
|
|
122
122
|
transactionStatusType_1.TransactionStatusType.Confirmed,
|
|
123
123
|
transactionStatusType_1.TransactionStatusType.Expired,
|
|
124
124
|
transactionStatusType_1.TransactionStatusType.InProgress,
|
|
125
|
-
transactionType_1.TransactionType.MoneyTransfer,
|
|
126
125
|
transactionType_1.TransactionType.PlaceOrder,
|
|
127
126
|
transactionType_1.TransactionType.ReturnOrder,
|
|
128
127
|
unitCode_1.UnitCode.Ann,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IObjectAsPlaceOrder, IObjectAsReturnOrder, IObjectAsTransactionByAgentId } from '../action/update/delete';
|
|
2
2
|
import { IExtendId } from '../autoGenerated';
|
|
3
3
|
import * as TaskFactory from '../task';
|
|
4
4
|
import { TaskName } from '../taskName';
|
|
5
|
-
export {
|
|
6
|
-
export type IObject =
|
|
5
|
+
export { IObjectAsPlaceOrder, IObjectAsReturnOrder, IObjectAsTransactionByAgentId };
|
|
6
|
+
export type IObject = IObjectAsPlaceOrder | IObjectAsReturnOrder | IObjectAsTransactionByAgentId;
|
|
7
7
|
export interface IData {
|
|
8
8
|
object: IObject;
|
|
9
9
|
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { IExtendId } from '../autoGenerated';
|
|
2
|
+
import { ICategoryCode } from '../categoryCode';
|
|
3
|
+
import { EventType } from '../eventType';
|
|
4
|
+
import { IOfferCatalog } from '../offerCatalog';
|
|
5
|
+
import { OfferType } from '../offerType';
|
|
6
|
+
import { OrganizationType } from '../organizationType';
|
|
7
|
+
import { PlaceType } from '../placeType';
|
|
8
|
+
import { ProductType } from '../product';
|
|
9
|
+
import * as TaskFactory from '../task';
|
|
10
|
+
import { TaskName } from '../taskName';
|
|
11
|
+
export type CategoryCodeType = ICategoryCode['typeOf'];
|
|
12
|
+
export type OfferCatalogType = IOfferCatalog['typeOf'];
|
|
13
|
+
export type IResourceTypeOf = CategoryCodeType | EventType.ScreeningEventSeries | OrganizationType.Corporation | PlaceType.MovieTheater | ProductType | OfferCatalogType | OfferType.AggregateOffer;
|
|
14
|
+
export interface IData4common {
|
|
15
|
+
/**
|
|
16
|
+
* リソースIDリスト
|
|
17
|
+
*/
|
|
18
|
+
id: string[];
|
|
19
|
+
project: {
|
|
20
|
+
id: string;
|
|
21
|
+
};
|
|
22
|
+
typeOf: IResourceTypeOf;
|
|
23
|
+
isNew: boolean;
|
|
24
|
+
isDeleted: true;
|
|
25
|
+
useInform: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* typeOf: OfferCatalogのリポジトリを判定するため
|
|
28
|
+
*/
|
|
29
|
+
isOfferCatalogItem?: boolean;
|
|
30
|
+
branchCode?: never;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* ルーム変更の場合のタスクデータ
|
|
34
|
+
*/
|
|
35
|
+
export interface IData4screeningRoom {
|
|
36
|
+
/**
|
|
37
|
+
* ルームコードリスト
|
|
38
|
+
*/
|
|
39
|
+
branchCode: string[];
|
|
40
|
+
containedInPlace: {
|
|
41
|
+
/**
|
|
42
|
+
* 施設ID
|
|
43
|
+
*/
|
|
44
|
+
id: string;
|
|
45
|
+
};
|
|
46
|
+
project: {
|
|
47
|
+
id: string;
|
|
48
|
+
};
|
|
49
|
+
typeOf: PlaceType.ScreeningRoom;
|
|
50
|
+
isNew?: never;
|
|
51
|
+
isDeleted: true;
|
|
52
|
+
useInform: boolean;
|
|
53
|
+
}
|
|
54
|
+
export interface IData4pos {
|
|
55
|
+
/**
|
|
56
|
+
* コード
|
|
57
|
+
*/
|
|
58
|
+
branchCode: string;
|
|
59
|
+
operator: {
|
|
60
|
+
/**
|
|
61
|
+
* 施設ID
|
|
62
|
+
*/
|
|
63
|
+
id: string;
|
|
64
|
+
};
|
|
65
|
+
project: {
|
|
66
|
+
id: string;
|
|
67
|
+
};
|
|
68
|
+
typeOf: 'POS';
|
|
69
|
+
isNew: boolean;
|
|
70
|
+
isDeleted: true;
|
|
71
|
+
useInform: boolean;
|
|
72
|
+
}
|
|
73
|
+
export type IData = IData4common | IData4screeningRoom | IData4pos;
|
|
74
|
+
export interface IAttributes extends TaskFactory.IAttributes {
|
|
75
|
+
name: TaskName.OnResourceDeleted;
|
|
76
|
+
data: IData;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* リソース変更時タスク
|
|
80
|
+
*/
|
|
81
|
+
export type ITask = IExtendId<IAttributes>;
|
|
@@ -15,24 +15,31 @@ export type CategoryCodeType = ICategoryCode['typeOf'];
|
|
|
15
15
|
export type OfferCatalogType = IOfferCatalog['typeOf'];
|
|
16
16
|
export type IResourceTypeOf = AccountTitleType | CategoryCodeType | CreativeWorkType.Movie | CreativeWorkType.NoteDigitalDocument | EventType.ScreeningEventSeries | OrganizationType.Corporation | PlaceType.MovieTheater | ProductType | OfferCatalogType | OfferType.AggregateOffer;
|
|
17
17
|
export interface IData4common {
|
|
18
|
+
/**
|
|
19
|
+
* リソースIDリスト
|
|
20
|
+
*/
|
|
18
21
|
id: string[];
|
|
19
22
|
project: {
|
|
20
23
|
id: string;
|
|
21
24
|
};
|
|
22
25
|
typeOf: IResourceTypeOf;
|
|
23
26
|
isNew: boolean;
|
|
24
|
-
isDeleted?: boolean;
|
|
25
27
|
useInform: boolean;
|
|
26
28
|
/**
|
|
27
29
|
* typeOf: OfferCatalogのリポジトリを判定するため
|
|
28
30
|
*/
|
|
29
31
|
isOfferCatalogItem?: boolean;
|
|
32
|
+
branchCode?: never;
|
|
33
|
+
isDeleted?: never;
|
|
30
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* ルーム変更の場合のタスクデータ
|
|
37
|
+
*/
|
|
31
38
|
export interface IData4screeningRoom {
|
|
32
39
|
/**
|
|
33
|
-
*
|
|
40
|
+
* ルームコードリスト
|
|
34
41
|
*/
|
|
35
|
-
branchCode: string;
|
|
42
|
+
branchCode: string[];
|
|
36
43
|
containedInPlace: {
|
|
37
44
|
/**
|
|
38
45
|
* 施設ID
|
|
@@ -43,8 +50,9 @@ export interface IData4screeningRoom {
|
|
|
43
50
|
id: string;
|
|
44
51
|
};
|
|
45
52
|
typeOf: PlaceType.ScreeningRoom;
|
|
46
|
-
|
|
53
|
+
isNew?: never;
|
|
47
54
|
useInform: boolean;
|
|
55
|
+
isDeleted?: never;
|
|
48
56
|
}
|
|
49
57
|
export interface IData4pos {
|
|
50
58
|
/**
|
|
@@ -62,10 +70,32 @@ export interface IData4pos {
|
|
|
62
70
|
};
|
|
63
71
|
typeOf: 'POS';
|
|
64
72
|
isNew: boolean;
|
|
65
|
-
isDeleted: boolean;
|
|
66
73
|
useInform: boolean;
|
|
74
|
+
isDeleted?: never;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* 入場ゲート変更の場合のタスクデータ
|
|
78
|
+
*/
|
|
79
|
+
export interface IData4entranceGate {
|
|
80
|
+
/**
|
|
81
|
+
* コードリスト
|
|
82
|
+
*/
|
|
83
|
+
identifier: string[];
|
|
84
|
+
containedInPlace: {
|
|
85
|
+
/**
|
|
86
|
+
* 施設ID
|
|
87
|
+
*/
|
|
88
|
+
id: string;
|
|
89
|
+
};
|
|
90
|
+
project: {
|
|
91
|
+
id: string;
|
|
92
|
+
};
|
|
93
|
+
typeOf: PlaceType.EntranceGate;
|
|
94
|
+
useInform: boolean;
|
|
95
|
+
isNew?: never;
|
|
96
|
+
isDeleted?: never;
|
|
67
97
|
}
|
|
68
|
-
export type IData = IData4common | IData4screeningRoom | IData4pos;
|
|
98
|
+
export type IData = IData4common | IData4screeningRoom | IData4pos | IData4entranceGate;
|
|
69
99
|
export interface IAttributes extends TaskFactory.IAttributes {
|
|
70
100
|
name: TaskName.OnResourceUpdated;
|
|
71
101
|
data: IData;
|
|
@@ -11,7 +11,7 @@ import { IOfferCatalogAsNotification } from '../notification/offerCatalog';
|
|
|
11
11
|
import { IOrder4inform } from '../notification/order';
|
|
12
12
|
import { IPayAction4inform } from '../notification/payAction';
|
|
13
13
|
import { IPersonAsNotification } from '../notification/person';
|
|
14
|
-
import { IHasPOSAsNotification, IMovieTheaterAsNotification } from '../notification/place';
|
|
14
|
+
import { IEntranceGateAsNotification, IHasPOSAsNotification, IMovieTheaterAsNotification, IRoomAsNotification } from '../notification/place';
|
|
15
15
|
import { IProductAsNotification } from '../notification/product';
|
|
16
16
|
import { IRefundAction4inform } from '../notification/refundAction';
|
|
17
17
|
import { IReservation4inform } from '../notification/reservation';
|
|
@@ -25,7 +25,7 @@ export type IDeprecatedRecipient = Pick<IRecipientDeprecated, 'id' | 'name' | 't
|
|
|
25
25
|
/**
|
|
26
26
|
* define strictly(2025-02-20~)
|
|
27
27
|
*/
|
|
28
|
-
export type IAnyResourceAsObject = IPlaceOrderAsNotification | IOfferCatalogAsNotification | IHasPOSAsNotification | IMovieTheaterAsNotification | IOfferAsNotification | IAccountTitleAsNotification | IProductAsNotification | ICategoryCodeAsNotification | IMovieAsNotification | INoteDigitalDocumentAsNotification | IPersonAsNotification | IEvent4inform2agg | IEventAsNotification | IEventSeriesAsNotification;
|
|
28
|
+
export type IAnyResourceAsObject = IPlaceOrderAsNotification | IOfferCatalogAsNotification | IEntranceGateAsNotification | IHasPOSAsNotification | IMovieTheaterAsNotification | IRoomAsNotification | IOfferAsNotification | IAccountTitleAsNotification | IProductAsNotification | ICategoryCodeAsNotification | IMovieAsNotification | INoteDigitalDocumentAsNotification | IPersonAsNotification | IEvent4inform2agg | IEventAsNotification | IEventSeriesAsNotification;
|
|
29
29
|
export type IInformAnyResourceAction = Pick<IInformActionAttributes<IAnyResourceAsObject>, 'object' | 'about'> & {
|
|
30
30
|
/**
|
|
31
31
|
* 通知識別子(2024-10-24~)
|
package/lib/taskName.d.ts
CHANGED
|
@@ -29,10 +29,6 @@ export declare enum TaskName {
|
|
|
29
29
|
* リソース検証
|
|
30
30
|
*/
|
|
31
31
|
CheckResource = "checkResource",
|
|
32
|
-
/**
|
|
33
|
-
* 通貨転送
|
|
34
|
-
*/
|
|
35
|
-
ConfirmMoneyTransfer = "confirmMoneyTransfer",
|
|
36
32
|
/**
|
|
37
33
|
* サービス登録
|
|
38
34
|
*/
|
|
@@ -53,10 +49,6 @@ export declare enum TaskName {
|
|
|
53
49
|
* 経理レポート作成
|
|
54
50
|
*/
|
|
55
51
|
CreateAccountingReport = "createAccountingReport",
|
|
56
|
-
/**
|
|
57
|
-
* イベント作成
|
|
58
|
-
*/
|
|
59
|
-
CreateEvent = "createEvent",
|
|
60
52
|
DeletePerson = "deletePerson",
|
|
61
53
|
DeleteTransaction = "deleteTransaction",
|
|
62
54
|
/**
|
|
@@ -72,6 +64,7 @@ export declare enum TaskName {
|
|
|
72
64
|
OnAssetTransactionStatusChanged = "onAssetTransactionStatusChanged",
|
|
73
65
|
OnAuthorizationCreated = "onAuthorizationCreated",
|
|
74
66
|
OnEventChanged = "onEventChanged",
|
|
67
|
+
OnResourceDeleted = "onResourceDeleted",
|
|
75
68
|
OnResourceUpdated = "onResourceUpdated",
|
|
76
69
|
OnOrderPaymentCompleted = "onOrderPaymentCompleted",
|
|
77
70
|
Pay = "pay",
|
|
@@ -93,10 +86,6 @@ export declare enum TaskName {
|
|
|
93
86
|
* 注文返品
|
|
94
87
|
*/
|
|
95
88
|
ReturnOrder = "returnOrder",
|
|
96
|
-
/**
|
|
97
|
-
* 入金返却
|
|
98
|
-
*/
|
|
99
|
-
ReturnMoneyTransfer = "returnMoneyTransfer",
|
|
100
89
|
/**
|
|
101
90
|
* 決済資産取引返却
|
|
102
91
|
*/
|
|
@@ -121,10 +110,6 @@ export declare enum TaskName {
|
|
|
121
110
|
TriggerWebhook = "triggerWebhook",
|
|
122
111
|
UseReservation = "useReservation",
|
|
123
112
|
VoidPayment = "voidPayment",
|
|
124
|
-
/**
|
|
125
|
-
* 通貨転送中止
|
|
126
|
-
*/
|
|
127
|
-
VoidMoneyTransferTransaction = "voidMoneyTransferTransaction",
|
|
128
113
|
/**
|
|
129
114
|
* 決済中止
|
|
130
115
|
*/
|
package/lib/taskName.js
CHANGED
|
@@ -33,10 +33,6 @@ var TaskName;
|
|
|
33
33
|
* リソース検証
|
|
34
34
|
*/
|
|
35
35
|
TaskName["CheckResource"] = "checkResource";
|
|
36
|
-
/**
|
|
37
|
-
* 通貨転送
|
|
38
|
-
*/
|
|
39
|
-
TaskName["ConfirmMoneyTransfer"] = "confirmMoneyTransfer";
|
|
40
36
|
/**
|
|
41
37
|
* サービス登録
|
|
42
38
|
*/
|
|
@@ -57,10 +53,10 @@ var TaskName;
|
|
|
57
53
|
* 経理レポート作成
|
|
58
54
|
*/
|
|
59
55
|
TaskName["CreateAccountingReport"] = "createAccountingReport";
|
|
60
|
-
/**
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
56
|
+
// /**
|
|
57
|
+
// * イベント作成
|
|
58
|
+
// */
|
|
59
|
+
// CreateEvent = 'createEvent', // discontinue(2026-02-14~)
|
|
64
60
|
TaskName["DeletePerson"] = "deletePerson";
|
|
65
61
|
TaskName["DeleteTransaction"] = "deleteTransaction";
|
|
66
62
|
/**
|
|
@@ -76,6 +72,7 @@ var TaskName;
|
|
|
76
72
|
TaskName["OnAssetTransactionStatusChanged"] = "onAssetTransactionStatusChanged";
|
|
77
73
|
TaskName["OnAuthorizationCreated"] = "onAuthorizationCreated";
|
|
78
74
|
TaskName["OnEventChanged"] = "onEventChanged";
|
|
75
|
+
TaskName["OnResourceDeleted"] = "onResourceDeleted";
|
|
79
76
|
TaskName["OnResourceUpdated"] = "onResourceUpdated";
|
|
80
77
|
TaskName["OnOrderPaymentCompleted"] = "onOrderPaymentCompleted";
|
|
81
78
|
// OrderProgramMembership = 'orderProgramMembership', // 廃止(2023-08-18~)
|
|
@@ -98,10 +95,6 @@ var TaskName;
|
|
|
98
95
|
* 注文返品
|
|
99
96
|
*/
|
|
100
97
|
TaskName["ReturnOrder"] = "returnOrder";
|
|
101
|
-
/**
|
|
102
|
-
* 入金返却
|
|
103
|
-
*/
|
|
104
|
-
TaskName["ReturnMoneyTransfer"] = "returnMoneyTransfer";
|
|
105
98
|
/**
|
|
106
99
|
* 決済資産取引返却
|
|
107
100
|
*/
|
|
@@ -126,10 +119,6 @@ var TaskName;
|
|
|
126
119
|
TaskName["TriggerWebhook"] = "triggerWebhook";
|
|
127
120
|
TaskName["UseReservation"] = "useReservation";
|
|
128
121
|
TaskName["VoidPayment"] = "voidPayment";
|
|
129
|
-
/**
|
|
130
|
-
* 通貨転送中止
|
|
131
|
-
*/
|
|
132
|
-
TaskName["VoidMoneyTransferTransaction"] = "voidMoneyTransferTransaction";
|
|
133
122
|
/**
|
|
134
123
|
* 決済中止
|
|
135
124
|
*/
|
package/lib/transactionType.d.ts
CHANGED
package/lib/transactionType.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chevre/factory",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0-alpha.0",
|
|
4
4
|
"description": "Chevre Factory Library for Javascript",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"license": "UNLICENSED",
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@types/mocha": "^5.2.7",
|
|
45
|
-
"@types/node": "
|
|
45
|
+
"@types/node": "22.19.7",
|
|
46
46
|
"coveralls": "3.1.1",
|
|
47
47
|
"mocha": "^5.2.0",
|
|
48
48
|
"nyc": "15.1.0",
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import * as ActionFactory from '../../../action';
|
|
2
|
-
import { ActionType } from '../../../actionType';
|
|
3
|
-
import * as MoneyTransferTransactionFactory from '../../../assetTransaction/moneyTransfer';
|
|
4
|
-
import { AssetTransactionType } from '../../../assetTransactionType';
|
|
5
|
-
import { IOffer } from '../../../offer';
|
|
6
|
-
import * as OrderFactory from '../../../order';
|
|
7
|
-
import { PriceCurrency } from '../../../priceCurrency';
|
|
8
|
-
import { TransactionType } from '../../../transactionType';
|
|
9
|
-
import * as AuthorizeActionFactory from '../../authorize';
|
|
10
|
-
export type IAgent = ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsPerson | ActionFactory.IParticipantAsSeller;
|
|
11
|
-
export type IRecipient = ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsPerson;
|
|
12
|
-
export type IRequestBody = MoneyTransferTransactionFactory.IStartParamsWithoutDetail;
|
|
13
|
-
export type IResponseBody = MoneyTransferTransactionFactory.ITransaction;
|
|
14
|
-
export import IPendingTransaction = OrderFactory.IMoneyTransferPendingTransaction;
|
|
15
|
-
export type IResultAcceptedOffer = OrderFactory.IAcceptedOffer<OrderFactory.IMoneyTransfer>;
|
|
16
|
-
export interface IResult {
|
|
17
|
-
price: number;
|
|
18
|
-
priceCurrency: PriceCurrency;
|
|
19
|
-
requestBody?: IRequestBody;
|
|
20
|
-
responseBody: IResponseBody;
|
|
21
|
-
}
|
|
22
|
-
export import IItemOffered = OrderFactory.IMoneyTransfer;
|
|
23
|
-
export interface IAcceptedOffer extends Omit<IOffer, 'addOn' | 'availability' | 'availableAtOrFrom'> {
|
|
24
|
-
itemOffered: IItemOffered;
|
|
25
|
-
seller: ActionFactory.IParticipantAsSeller;
|
|
26
|
-
}
|
|
27
|
-
export type IObject = IAcceptedOffer;
|
|
28
|
-
export interface ITransactionPurpose {
|
|
29
|
-
typeOf: TransactionType;
|
|
30
|
-
id: string;
|
|
31
|
-
}
|
|
32
|
-
export type IPurpose = ITransactionPurpose;
|
|
33
|
-
export type IError = any;
|
|
34
|
-
export interface IInstrument {
|
|
35
|
-
typeOf: AssetTransactionType.MoneyTransfer;
|
|
36
|
-
transactionNumber: string;
|
|
37
|
-
}
|
|
38
|
-
export interface IAttributes extends AuthorizeActionFactory.IAttributes<IObject, IResult> {
|
|
39
|
-
typeOf: ActionType.AuthorizeAction;
|
|
40
|
-
agent: IAgent;
|
|
41
|
-
instrument: IInstrument;
|
|
42
|
-
recipient: IRecipient;
|
|
43
|
-
object: IObject;
|
|
44
|
-
purpose: IPurpose;
|
|
45
|
-
}
|
|
46
|
-
export type IAction = ActionFactory.IAction<IAttributes>;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { IParticipantAsProject } from '../../../action';
|
|
2
|
-
import { AssetTransactionType } from '../../../assetTransactionType';
|
|
3
|
-
import { ISimpleOrder } from '../../../order';
|
|
4
|
-
import { TransactionType } from '../../../transactionType';
|
|
5
|
-
import * as ConfirmActionFactory from '../confirm';
|
|
6
|
-
export type IAgent = IParticipantAsProject;
|
|
7
|
-
export interface IObject {
|
|
8
|
-
transactionNumber: string;
|
|
9
|
-
typeOf: AssetTransactionType.MoneyTransfer;
|
|
10
|
-
}
|
|
11
|
-
export type IResult = any;
|
|
12
|
-
export interface ITransactionPurpose {
|
|
13
|
-
typeOf: TransactionType.MoneyTransfer;
|
|
14
|
-
id: string;
|
|
15
|
-
}
|
|
16
|
-
export type IPurpose = ITransactionPurpose | ISimpleOrder;
|
|
17
|
-
export interface IAttributes extends ConfirmActionFactory.IAttributes<IObject, IResult> {
|
|
18
|
-
agent: IAgent;
|
|
19
|
-
/**
|
|
20
|
-
* 注文取引から発生した場合はISimpleOrder
|
|
21
|
-
*/
|
|
22
|
-
purpose: IPurpose;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* 通貨転送確定アクション
|
|
26
|
-
*/
|
|
27
|
-
export type IAction = ConfirmActionFactory.IAction<IAttributes>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import * as ActionFactory from '../../../action';
|
|
2
|
-
import * as MoneyTransferActionFactory from '../moneyTransfer';
|
|
3
|
-
import * as ReturnActionFactory from '../return';
|
|
4
|
-
export type IAgent = ActionFactory.IParticipantAsProject;
|
|
5
|
-
export type IRecipient = ActionFactory.IParticipantAsSeller;
|
|
6
|
-
/**
|
|
7
|
-
* 返却対象は入金アクション
|
|
8
|
-
*/
|
|
9
|
-
export type IObject = Pick<MoneyTransferActionFactory.IAction, 'object' | 'typeOf'>;
|
|
10
|
-
export type IResult = any;
|
|
11
|
-
export interface IPotentialActions {
|
|
12
|
-
}
|
|
13
|
-
export interface IAttributes extends ReturnActionFactory.IAttributes<IObject, IResult> {
|
|
14
|
-
agent: IAgent;
|
|
15
|
-
recipient: IRecipient;
|
|
16
|
-
potentialActions?: IPotentialActions;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* 入金返却アクション
|
|
20
|
-
*/
|
|
21
|
-
export type IAction = ReturnActionFactory.IAction<IAttributes>;
|