@motionpicture/coa-service 9.3.0 → 9.4.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.
@@ -103,12 +103,28 @@ export interface ITitleResult {
103
103
  dateEnd: string;
104
104
  /**
105
105
  * ムビチケ使用フラグ
106
+ * 1:ムビチケ使用対象
107
+ * ※2017/02/01追加
106
108
  */
107
109
  flgMvtkUse: string;
108
110
  /**
109
111
  * ムビチケ利用開始日
112
+ * ※日付は西暦8桁 "YYYYMMDD"
113
+ * ※2017/02/01追加
110
114
  */
111
115
  dateMvtkBegin: string;
116
+ /**
117
+ * MGチケット使用フラグ
118
+ * 0:使用不可、1:使用可、2:無料券(計上単価=0)使用不可
119
+ * ※2024/02/09追加
120
+ */
121
+ flgMgtkUse?: string;
122
+ /**
123
+ * MGチケット利用開始日
124
+ * ※日付は西暦8桁 "YYYYMMDD"
125
+ * ※2024/02/09追加
126
+ */
127
+ dateMgtkBegin?: string;
112
128
  }
113
129
  /**
114
130
  * スクリーンマスター抽出in
@@ -1,4 +1,4 @@
1
- import * as MasterFactory from '../factory/master';
1
+ import { IKubunNameArgs, IKubunNameResult, IMgtkTicketcodeArgs, IMgtkTicketcodeResult, IMvtkTicketcodeArgs, IMvtkTicketcodeResult, IScheduleArgs, IScheduleResult, IScreenArgs, IScreenResult, ITheaterArgs, ITheaterResult, ITicketArgs, ITicketResult, ITitleArgs, ITitleResult } from '../factory/master';
2
2
  import { Service } from '../service';
3
3
  /**
4
4
  * マスターサービス
@@ -6,52 +6,34 @@ import { Service } from '../service';
6
6
  export declare class MasterService extends Service {
7
7
  /**
8
8
  * 施設マスター抽出
9
- * @param args.theaterCode 劇場コード
10
9
  */
11
- theater(args: MasterFactory.ITheaterArgs): Promise<MasterFactory.ITheaterResult>;
10
+ theater(args: ITheaterArgs): Promise<ITheaterResult>;
12
11
  /**
13
12
  * 作品マスター抽出
14
- * @param args.theaterCode 劇場コード
15
13
  */
16
- title(args: MasterFactory.ITitleArgs): Promise<MasterFactory.ITitleResult[]>;
14
+ title(args: ITitleArgs): Promise<ITitleResult[]>;
17
15
  /**
18
16
  * スクリーンマスター抽出
19
- * @param args.theaterCode 劇場コード
20
17
  */
21
- screen(args: MasterFactory.IScreenArgs): Promise<MasterFactory.IScreenResult[]>;
18
+ screen(args: IScreenArgs): Promise<IScreenResult[]>;
22
19
  /**
23
20
  * スケジュールマスター抽出
24
- * @param args.theaterCode 劇場コード
25
21
  */
26
- schedule(args: MasterFactory.IScheduleArgs): Promise<MasterFactory.IScheduleResult[]>;
22
+ schedule(args: IScheduleArgs): Promise<IScheduleResult[]>;
27
23
  /**
28
24
  * 券種マスター抽出
29
- * @param args.theaterCode 劇場コード
30
25
  */
31
- ticket(args: MasterFactory.ITicketArgs): Promise<MasterFactory.ITicketResult[]>;
26
+ ticket(args: ITicketArgs): Promise<ITicketResult[]>;
32
27
  /**
33
28
  * 各種区分マスター抽出
34
- * @memberOf services.master
35
- * @param args.theaterCode 劇場コード
36
- * @param args.kubunClass 区分種別
37
29
  */
38
- kubunName(args: MasterFactory.IKubunNameArgs): Promise<MasterFactory.IKubunNameResult[]>;
30
+ kubunName(args: IKubunNameArgs): Promise<IKubunNameResult[]>;
39
31
  /**
40
32
  * ムビチケチケットコード取得
41
- * @param args.theaterCode 劇場コード
42
- * @param args.kbnDenshiken 電子券区分
43
- * @param args.kbnMaeuriken 前売券区分
44
- * @param args.kbnKensyu 券種区分
45
- * @param args.salesPrice 販売単価
46
- * @param args.appPrice 計上単価
47
- * @param args.kbnEisyahousiki 映写方式区分
48
- * @param args.titleCode 作品コード
49
- * @param args.titleBranchNum 作品枝番
50
- * @param args.dateJouei 上映日
51
- */
52
- mvtkTicketcode(args: MasterFactory.IMvtkTicketcodeArgs): Promise<MasterFactory.IMvtkTicketcodeResult>;
33
+ */
34
+ mvtkTicketcode(args: IMvtkTicketcodeArgs): Promise<IMvtkTicketcodeResult>;
53
35
  /**
54
36
  * MGチケットコード確認
55
37
  */
56
- mgtkTicketcode(args: MasterFactory.IMgtkTicketcodeArgs): Promise<MasterFactory.IMgtkTicketcodeResult>;
38
+ mgtkTicketcode(args: IMgtkTicketcodeArgs): Promise<IMgtkTicketcodeResult>;
57
39
  }
@@ -11,7 +11,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.MasterService = void 0;
13
13
  const http_status_1 = require("http-status");
14
- const MasterFactory = require("../factory/master");
14
+ const master_1 = require("../factory/master");
15
15
  const service_1 = require("../service");
16
16
  /**
17
17
  * マスターサービス
@@ -19,7 +19,6 @@ const service_1 = require("../service");
19
19
  class MasterService extends service_1.Service {
20
20
  /**
21
21
  * 施設マスター抽出
22
- * @param args.theaterCode 劇場コード
23
22
  */
24
23
  theater(args) {
25
24
  return __awaiter(this, void 0, void 0, function* () {
@@ -38,7 +37,6 @@ class MasterService extends service_1.Service {
38
37
  }
39
38
  /**
40
39
  * 作品マスター抽出
41
- * @param args.theaterCode 劇場コード
42
40
  */
43
41
  title(args) {
44
42
  return __awaiter(this, void 0, void 0, function* () {
@@ -46,31 +44,15 @@ class MasterService extends service_1.Service {
46
44
  uri: `/api/v1/theater/${args.theaterCode}/title/`,
47
45
  method: 'GET'
48
46
  }, [http_status_1.OK]);
49
- return body.list_title.map((value) => {
50
- return {
51
- titleCode: value.title_code,
52
- titleBranchNum: value.title_branch_num,
53
- titleName: value.title_name,
54
- titleNameKana: value.title_name_kana,
55
- titleNameEng: value.title_name_eng,
56
- titleNameShort: value.title_name_short,
57
- titleNameOrig: value.title_name_orig,
58
- kbnEirin: value.kbn_eirin,
59
- kbnEizou: value.kbn_eizou,
60
- kbnJoueihousiki: value.kbn_joueihousiki,
61
- kbnJimakufukikae: value.kbn_jimakufukikae,
62
- showTime: value.show_time,
63
- dateBegin: value.date_begin,
64
- dateEnd: value.date_end,
65
- flgMvtkUse: value.flg_mvtk_use,
66
- dateMvtkBegin: value.date_mvtk_begin
67
- };
68
- });
47
+ return (Array.isArray(body.list_title))
48
+ ? body.list_title.map(({ title_code, title_branch_num, title_name, title_name_kana, title_name_eng, title_name_short, title_name_orig, kbn_eirin, kbn_eizou, kbn_joueihousiki, kbn_jimakufukikae, show_time, date_begin, date_end, flg_mvtk_use, date_mvtk_begin, flg_mgtk_use, date_mgtk_begin }) => {
49
+ return Object.assign(Object.assign({ titleCode: title_code, titleBranchNum: title_branch_num, titleName: title_name, titleNameKana: title_name_kana, titleNameEng: title_name_eng, titleNameShort: title_name_short, titleNameOrig: title_name_orig, kbnEirin: kbn_eirin, kbnEizou: kbn_eizou, kbnJoueihousiki: kbn_joueihousiki, kbnJimakufukikae: kbn_jimakufukikae, showTime: show_time, dateBegin: date_begin, dateEnd: date_end, flgMvtkUse: flg_mvtk_use, dateMvtkBegin: date_mvtk_begin }, (typeof flg_mgtk_use === 'string') ? { flgMgtkUse: flg_mgtk_use } : /* istanbul ignore next */ undefined), (typeof date_mgtk_begin === 'string') ? { dateMgtkBegin: date_mgtk_begin } : /* istanbul ignore next */ undefined);
50
+ })
51
+ : /* istanbul ignore next */ [];
69
52
  });
70
53
  }
71
54
  /**
72
55
  * スクリーンマスター抽出
73
- * @param args.theaterCode 劇場コード
74
56
  */
75
57
  screen(args) {
76
58
  return __awaiter(this, void 0, void 0, function* () {
@@ -100,7 +82,6 @@ class MasterService extends service_1.Service {
100
82
  }
101
83
  /**
102
84
  * スケジュールマスター抽出
103
- * @param args.theaterCode 劇場コード
104
85
  */
105
86
  schedule(args) {
106
87
  return __awaiter(this, void 0, void 0, function* () {
@@ -134,7 +115,6 @@ class MasterService extends service_1.Service {
134
115
  }
135
116
  /**
136
117
  * 券種マスター抽出
137
- * @param args.theaterCode 劇場コード
138
118
  */
139
119
  ticket(args) {
140
120
  return __awaiter(this, void 0, void 0, function* () {
@@ -151,16 +131,13 @@ class MasterService extends service_1.Service {
151
131
  // tslint:disable-next-line:no-single-line-block-comment
152
132
  usePoint: (value.use_point !== undefined) ? value.use_point : /* istanbul ignore next */ 0,
153
133
  // tslint:disable-next-line:no-single-line-block-comment
154
- flgMember: (value.flg_member !== undefined) ? value.flg_member : /* istanbul ignore next */ MasterFactory.FlgMember.NonMember
134
+ flgMember: (value.flg_member !== undefined) ? value.flg_member : /* istanbul ignore next */ master_1.FlgMember.NonMember
155
135
  };
156
136
  });
157
137
  });
158
138
  }
159
139
  /**
160
140
  * 各種区分マスター抽出
161
- * @memberOf services.master
162
- * @param args.theaterCode 劇場コード
163
- * @param args.kubunClass 区分種別
164
141
  */
165
142
  kubunName(args) {
166
143
  return __awaiter(this, void 0, void 0, function* () {
@@ -183,16 +160,6 @@ class MasterService extends service_1.Service {
183
160
  }
184
161
  /**
185
162
  * ムビチケチケットコード取得
186
- * @param args.theaterCode 劇場コード
187
- * @param args.kbnDenshiken 電子券区分
188
- * @param args.kbnMaeuriken 前売券区分
189
- * @param args.kbnKensyu 券種区分
190
- * @param args.salesPrice 販売単価
191
- * @param args.appPrice 計上単価
192
- * @param args.kbnEisyahousiki 映写方式区分
193
- * @param args.titleCode 作品コード
194
- * @param args.titleBranchNum 作品枝番
195
- * @param args.dateJouei 上映日
196
163
  */
197
164
  mvtkTicketcode(args) {
198
165
  return __awaiter(this, void 0, void 0, function* () {
package/package.json CHANGED
@@ -76,5 +76,5 @@
76
76
  "postversion": "git push origin --tags",
77
77
  "prepublishOnly": "npm run clean && npm run build && npm test && npm run doc"
78
78
  },
79
- "version": "9.3.0"
79
+ "version": "9.4.0"
80
80
  }