@chevre/factory 4.382.0-alpha.0 → 4.382.0-alpha.2
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.
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as ActionFactory from '../../action';
|
|
2
|
+
import { IAuthorization, IObject } from '../../authorization';
|
|
3
|
+
import { CreativeWorkType } from '../../creativeWorkType';
|
|
4
|
+
import * as AuthorizeActionFactory from '../authorize';
|
|
5
|
+
export { IObject };
|
|
6
|
+
export type IResult = Pick<IAuthorization, 'code' | 'typeOf'>[];
|
|
7
|
+
export interface IInstrument {
|
|
8
|
+
id: string;
|
|
9
|
+
typeOf: CreativeWorkType.SoftwareApplication | CreativeWorkType.WebApplication;
|
|
10
|
+
}
|
|
11
|
+
export interface IAttributes extends Pick<AuthorizeActionFactory.IAttributes<IObject, IResult>, 'agent' | 'error' | 'object' | 'project' | 'recipient' | 'result' | 'typeOf'> {
|
|
12
|
+
instrument?: IInstrument;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* チケットオブジェクト承認アクション
|
|
16
|
+
*/
|
|
17
|
+
export type IAction = ActionFactory.IAction<IAttributes>;
|
|
@@ -95,53 +95,19 @@ export type IOffer4COA = Pick<IOffer, 'typeOf' | 'eligibleQuantity'> & {
|
|
|
95
95
|
};
|
|
96
96
|
unacceptedPaymentMethod?: never;
|
|
97
97
|
};
|
|
98
|
-
export
|
|
98
|
+
export type ICOAKubun = COA.factory.master.IKubunNameResult;
|
|
99
|
+
export type ICOAInfo = Pick<COA.factory.master.IScheduleResult, 'dateJouei' | 'titleCode' | 'titleBranchNum' | 'timeBegin' | 'timeEnd' | 'screenCode' | 'trailerTime' | 'nameServiceDay' | 'availableNum' | 'rsvStartDate' | 'rsvEndDate' | 'flgEarlyBooking'> & {
|
|
99
100
|
theaterCode: string;
|
|
100
|
-
dateJouei: string;
|
|
101
|
-
titleCode: string;
|
|
102
|
-
titleBranchNum: string;
|
|
103
|
-
timeBegin: string;
|
|
104
|
-
timeEnd: string;
|
|
105
|
-
screenCode: string;
|
|
106
|
-
/**
|
|
107
|
-
* トレーラー時間
|
|
108
|
-
* トレーラー含む本編以外の時間(分)
|
|
109
|
-
*/
|
|
110
|
-
trailerTime: number;
|
|
111
101
|
/**
|
|
112
102
|
* サービス区分
|
|
113
103
|
* 「通常興行」「レイトショー」など
|
|
114
104
|
*/
|
|
115
|
-
kbnService?:
|
|
105
|
+
kbnService?: ICOAKubun;
|
|
116
106
|
/**
|
|
117
107
|
* 音響区分
|
|
118
108
|
*/
|
|
119
|
-
kbnAcoustic?:
|
|
120
|
-
|
|
121
|
-
* サービスデイ名称
|
|
122
|
-
* 「映画の日」「レディースデイ」など ※割引区分、割引コード、特定日等の組み合わせで登録するため名称で連携の方が容易
|
|
123
|
-
*/
|
|
124
|
-
nameServiceDay: string;
|
|
125
|
-
/**
|
|
126
|
-
* 購入可能枚数
|
|
127
|
-
*/
|
|
128
|
-
availableNum: number;
|
|
129
|
-
/**
|
|
130
|
-
* 予約開始日
|
|
131
|
-
* 予約可能になる日付(YYYYMMDD)
|
|
132
|
-
*/
|
|
133
|
-
rsvStartDate: string;
|
|
134
|
-
/**
|
|
135
|
-
* 予約終了日
|
|
136
|
-
* 予約終了になる日付(YYYYMMDD)
|
|
137
|
-
*/
|
|
138
|
-
rsvEndDate: string;
|
|
139
|
-
/**
|
|
140
|
-
* 先行予約フラグ
|
|
141
|
-
* 先行予約の場合は'1'、それ以外は'0'
|
|
142
|
-
*/
|
|
143
|
-
flgEarlyBooking: string;
|
|
144
|
-
}
|
|
109
|
+
kbnAcoustic?: ICOAKubun;
|
|
110
|
+
};
|
|
145
111
|
/**
|
|
146
112
|
* COA券種情報
|
|
147
113
|
*/
|
|
@@ -41,48 +41,26 @@ export interface IOrganizer {
|
|
|
41
41
|
*/
|
|
42
42
|
id: string;
|
|
43
43
|
}
|
|
44
|
-
export
|
|
45
|
-
|
|
44
|
+
export type ICOAKubun = COA.factory.master.IKubunNameResult;
|
|
45
|
+
export type ICOAInfo = Pick<COA.factory.master.ITitleResult, 'dateMgtkBegin' | 'dateMvtkBegin' | 'flgMgtkUse' | 'flgMvtkUse' | 'flgNotDiscount' | 'titleBranchNum'> & {
|
|
46
46
|
/**
|
|
47
47
|
* 映倫区分
|
|
48
48
|
*/
|
|
49
|
-
kbnEirin?:
|
|
49
|
+
kbnEirin?: ICOAKubun;
|
|
50
50
|
/**
|
|
51
51
|
* 映像区分
|
|
52
52
|
* 2D、3D
|
|
53
53
|
*/
|
|
54
|
-
kbnEizou?:
|
|
54
|
+
kbnEizou?: ICOAKubun;
|
|
55
55
|
/**
|
|
56
56
|
* 上映方式区分(IMAX,4DX等)
|
|
57
57
|
*/
|
|
58
|
-
kbnJoueihousiki?:
|
|
58
|
+
kbnJoueihousiki?: ICOAKubun;
|
|
59
59
|
/**
|
|
60
60
|
* 字幕吹替区分(字幕、吹き替え)
|
|
61
61
|
*/
|
|
62
|
-
kbnJimakufukikae?:
|
|
63
|
-
|
|
64
|
-
* ムビチケ使用フラグ
|
|
65
|
-
* 1:ムビチケ使用対象
|
|
66
|
-
*/
|
|
67
|
-
flgMvtkUse: string;
|
|
68
|
-
/**
|
|
69
|
-
* ムビチケ利用開始日
|
|
70
|
-
* ※日付は西暦8桁 "YYYYMMDD"
|
|
71
|
-
*/
|
|
72
|
-
dateMvtkBegin: string;
|
|
73
|
-
/**
|
|
74
|
-
* MGチケット使用フラグ
|
|
75
|
-
* 0:使用不可、1:使用可、2:無料券(計上単価=0)使用不可
|
|
76
|
-
* (2024-03-05~)
|
|
77
|
-
*/
|
|
78
|
-
flgMgtkUse?: string;
|
|
79
|
-
/**
|
|
80
|
-
* MGチケット利用開始日
|
|
81
|
-
* ※日付は西暦8桁 "YYYYMMDD"
|
|
82
|
-
* (2024-03-05~)
|
|
83
|
-
*/
|
|
84
|
-
dateMgtkBegin?: string;
|
|
85
|
-
}
|
|
62
|
+
kbnJimakufukikae?: ICOAKubun;
|
|
63
|
+
};
|
|
86
64
|
export interface ILocation {
|
|
87
65
|
typeOf: PlaceType.MovieTheater;
|
|
88
66
|
/**
|
|
@@ -110,7 +88,7 @@ export interface IAttributes extends Pick<EventFactory.IAttributes<EventType.Scr
|
|
|
110
88
|
/**
|
|
111
89
|
* 上映方式
|
|
112
90
|
*/
|
|
113
|
-
videoFormat: IVideoFormat[] |
|
|
91
|
+
videoFormat: IVideoFormat[] | ICOAKubun;
|
|
114
92
|
/**
|
|
115
93
|
* 音響方式
|
|
116
94
|
*/
|
|
@@ -148,7 +126,6 @@ export interface IAttributes extends Pick<EventFactory.IAttributes<EventType.Scr
|
|
|
148
126
|
offers?: IOffer;
|
|
149
127
|
/**
|
|
150
128
|
* その他COA情報
|
|
151
|
-
* @deprecated 基本的にCinemaSunshineの互換性維持目的であり、そのうち廃止予定
|
|
152
129
|
*/
|
|
153
130
|
coaInfo?: ICOAInfo;
|
|
154
131
|
}
|
package/lib/index.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ import * as AuthorizeEventServiceOfferActionFactory from './action/authorize/off
|
|
|
15
15
|
import * as AuthorizeMoneyTransferOfferActionFactory from './action/authorize/offer/moneyTransfer';
|
|
16
16
|
import * as AuthorizeProductOfferActionFactory from './action/authorize/offer/product';
|
|
17
17
|
import * as AuthorizeAnyPaymentActionFactory from './action/authorize/paymentMethod/any';
|
|
18
|
+
import * as AuthorizeTicketedObjectActionFactory from './action/authorize/ticketedObject';
|
|
18
19
|
import * as CancelReservationActionFactory from './action/cancel/reservation';
|
|
19
20
|
import * as CheckMovieTicketActionFactory from './action/check/paymentMethod/movieTicket';
|
|
20
21
|
import * as CheckTokenActionFactory from './action/check/token';
|
|
@@ -231,6 +232,7 @@ export declare namespace action {
|
|
|
231
232
|
export import product = AuthorizeProductOfferActionFactory;
|
|
232
233
|
}
|
|
233
234
|
export import invoice = AuthorizeInvoiceActionFactory;
|
|
235
|
+
export import ticketedObject = AuthorizeTicketedObjectActionFactory;
|
|
234
236
|
}
|
|
235
237
|
namespace cancel {
|
|
236
238
|
export import reservation = CancelReservationActionFactory;
|
package/lib/index.js
CHANGED
|
@@ -17,6 +17,7 @@ var AuthorizeEventServiceOfferActionFactory = require("./action/authorize/offer/
|
|
|
17
17
|
var AuthorizeMoneyTransferOfferActionFactory = require("./action/authorize/offer/moneyTransfer");
|
|
18
18
|
var AuthorizeProductOfferActionFactory = require("./action/authorize/offer/product");
|
|
19
19
|
var AuthorizeAnyPaymentActionFactory = require("./action/authorize/paymentMethod/any");
|
|
20
|
+
var AuthorizeTicketedObjectActionFactory = require("./action/authorize/ticketedObject");
|
|
20
21
|
var CancelReservationActionFactory = require("./action/cancel/reservation");
|
|
21
22
|
var CheckMovieTicketActionFactory = require("./action/check/paymentMethod/movieTicket");
|
|
22
23
|
var CheckTokenActionFactory = require("./action/check/token");
|
|
@@ -194,6 +195,7 @@ var action;
|
|
|
194
195
|
})(offer = authorize.offer || (authorize.offer = {}));
|
|
195
196
|
// tslint:disable-next-line:no-shadowed-variable
|
|
196
197
|
authorize.invoice = AuthorizeInvoiceActionFactory;
|
|
198
|
+
authorize.ticketedObject = AuthorizeTicketedObjectActionFactory;
|
|
197
199
|
})(authorize = action.authorize || (action.authorize = {}));
|
|
198
200
|
var cancel;
|
|
199
201
|
(function (cancel) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chevre/factory",
|
|
3
|
-
"version": "4.382.0-alpha.
|
|
3
|
+
"version": "4.382.0-alpha.2",
|
|
4
4
|
"description": "Chevre Factory Library for Javascript",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"@aws-sdk/client-cognito-identity-provider": "3.438.0",
|
|
57
|
-
"@motionpicture/coa-service": "9.
|
|
57
|
+
"@motionpicture/coa-service": "9.5.0-alpha.0",
|
|
58
58
|
"@motionpicture/gmo-service": "5.3.0",
|
|
59
59
|
"@surfrock/sdk": "1.3.0",
|
|
60
60
|
"@waiter/factory": "2.2.0",
|