@cinerino/sdk 18.3.0-alpha.1 → 18.3.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/abstract/chevre/event/factory.d.ts +31 -1
- package/lib/abstract/chevre/event.d.ts +7 -2
- package/lib/abstract/chevre/event.js +13 -0
- package/lib/abstract/chevre.d.ts +0 -9
- package/lib/abstract/chevre.js +0 -9
- package/lib/abstract/chevreConsole/event.d.ts +0 -11
- package/lib/abstract/chevreConsole/event.js +23 -48
- package/lib/abstract/chevreConsole/eventSeries.d.ts +1 -1
- package/lib/abstract/chevreConsole/eventSeries.js +3 -20
- package/lib/abstract/cloud/search/event.d.ts +2 -2
- package/lib/bundle.js +3 -3
- package/lib/bundle.js.map +4 -4
- package/package.json +2 -2
- package/lib/abstract/chevre/emailMessage.d.ts +0 -24
- package/lib/abstract/chevre/emailMessage.js +0 -27
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { factory } from '../../factory';
|
|
2
2
|
type IKeyOfProjection = keyof factory.event.screeningEvent.IEvent;
|
|
3
3
|
type IProjection = Partial<Record<IKeyOfProjection, 0>>;
|
|
4
|
-
export type
|
|
4
|
+
export type IFindParamsLegacy = Pick<factory.event.screeningEvent.ISearchConditions, 'limit' | 'page' | 'sort' | 'eventStatuses' | 'id' | 'identifiers' | 'inSessionFrom' | 'inSessionThrough' | 'startFrom' | 'startThrough'> & {
|
|
5
5
|
superEvent?: {
|
|
6
6
|
/**
|
|
7
7
|
* 施設コンテンツID
|
|
@@ -44,6 +44,36 @@ export type IFindParams = Pick<factory.event.screeningEvent.ISearchConditions, '
|
|
|
44
44
|
};
|
|
45
45
|
$projection?: IProjection;
|
|
46
46
|
};
|
|
47
|
+
export interface IFindSubEventsParams {
|
|
48
|
+
limit?: number;
|
|
49
|
+
page?: number;
|
|
50
|
+
id?: string;
|
|
51
|
+
ids?: string[];
|
|
52
|
+
identifiers?: string[];
|
|
53
|
+
eventStatuses?: factory.eventStatusType[];
|
|
54
|
+
startFrom?: Date;
|
|
55
|
+
startThrough?: Date;
|
|
56
|
+
eventSeriesId?: string;
|
|
57
|
+
movieTheaterCode?: string;
|
|
58
|
+
movieIdentifier?: string;
|
|
59
|
+
/**
|
|
60
|
+
* offerAvailableAtIdが指定された場合のみ、offerに関する検索条件が有効
|
|
61
|
+
*/
|
|
62
|
+
offerAvailableAtId?: string;
|
|
63
|
+
offerAvailabilityEndsGte?: Date;
|
|
64
|
+
offerAvailabilityEndsLte?: Date;
|
|
65
|
+
offerAvailabilityStartsGte?: Date;
|
|
66
|
+
offerAvailabilityStartsLte?: Date;
|
|
67
|
+
offerValidFromGte?: Date;
|
|
68
|
+
offerValidFromLte?: Date;
|
|
69
|
+
offerValidThroughGte?: Date;
|
|
70
|
+
offerValidThroughLte?: Date;
|
|
71
|
+
/**
|
|
72
|
+
* offer.seller.makesOfferをアプリケーションIDでfilterする(max:2)
|
|
73
|
+
*/
|
|
74
|
+
includeMakesOfferAvailableAtIds?: string[];
|
|
75
|
+
excludeFields?: (keyof factory.event.screeningEvent.IEvent)[];
|
|
76
|
+
}
|
|
47
77
|
/**
|
|
48
78
|
* イベントのサブカタログ検索結果
|
|
49
79
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ISearchWithReservationForIdResult } from '../chevreConsole/aggregateReservation';
|
|
2
2
|
import { factory } from '../factory';
|
|
3
|
-
import { ISearchOfferCatalogItemAvailabilityResult, ISearchOfferCatalogItemResult, ISeatAsEventOffer,
|
|
3
|
+
import { ISearchOfferCatalogItemAvailabilityResult, ISearchOfferCatalogItemResult, ISeatAsEventOffer, IFindParamsLegacy, IFindSubEventsParams } from './event/factory';
|
|
4
4
|
import { Service } from '../service';
|
|
5
5
|
/**
|
|
6
6
|
* イベントサービス
|
|
@@ -8,8 +8,13 @@ import { Service } from '../service';
|
|
|
8
8
|
export declare class EventService extends Service {
|
|
9
9
|
/**
|
|
10
10
|
* イベント検索
|
|
11
|
+
* @deprecated use findSubEvents
|
|
11
12
|
*/
|
|
12
|
-
projectFields(params:
|
|
13
|
+
projectFields(params: IFindParamsLegacy): Promise<factory.event.screeningEvent.IEvent[]>;
|
|
14
|
+
/**
|
|
15
|
+
* イベント検索
|
|
16
|
+
*/
|
|
17
|
+
findSubEvents(params: IFindSubEventsParams): Promise<factory.event.screeningEvent.IEvent[]>;
|
|
13
18
|
/**
|
|
14
19
|
* イベント集計検索
|
|
15
20
|
*/
|
|
@@ -9,6 +9,7 @@ const service_1 = require("../service");
|
|
|
9
9
|
class EventService extends service_1.Service {
|
|
10
10
|
/**
|
|
11
11
|
* イベント検索
|
|
12
|
+
* @deprecated use findSubEvents
|
|
12
13
|
*/
|
|
13
14
|
async projectFields(params) {
|
|
14
15
|
return this.fetch({
|
|
@@ -19,6 +20,18 @@ class EventService extends service_1.Service {
|
|
|
19
20
|
})
|
|
20
21
|
.then(async (response) => response.json());
|
|
21
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
* イベント検索
|
|
25
|
+
*/
|
|
26
|
+
async findSubEvents(params) {
|
|
27
|
+
return this.fetch({
|
|
28
|
+
uri: '/subEvents',
|
|
29
|
+
method: 'GET',
|
|
30
|
+
qs: params,
|
|
31
|
+
expectedStatusCodes: [http_status_1.status.OK]
|
|
32
|
+
})
|
|
33
|
+
.then(async (response) => response.json());
|
|
34
|
+
}
|
|
22
35
|
/**
|
|
23
36
|
* イベント集計検索
|
|
24
37
|
*/
|
package/lib/abstract/chevre.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { IAdditionalOptions, IOptions, IUnset as IUnsetOnService } from './service';
|
|
2
2
|
import type { CategoryCodeService } from './chevre/categoryCode';
|
|
3
3
|
import type { CreativeWorkService } from './chevre/creativeWork';
|
|
4
|
-
import type { EmailMessageService } from './chevre/emailMessage';
|
|
5
4
|
import type { EventService } from './chevre/event';
|
|
6
5
|
import type { EventOfferService } from './chevre/eventOffer';
|
|
7
6
|
import type { EventSeriesService } from './chevre/eventSeries';
|
|
@@ -25,13 +24,6 @@ export declare namespace service {
|
|
|
25
24
|
namespace CreativeWork {
|
|
26
25
|
let svc: typeof CreativeWorkService | undefined;
|
|
27
26
|
}
|
|
28
|
-
/**
|
|
29
|
-
* Eメールメッセージサービス
|
|
30
|
-
*/
|
|
31
|
-
type EmailMessage = EmailMessageService;
|
|
32
|
-
namespace EmailMessage {
|
|
33
|
-
let svc: typeof EmailMessageService | undefined;
|
|
34
|
-
}
|
|
35
27
|
/**
|
|
36
28
|
* イベントサービス
|
|
37
29
|
*/
|
|
@@ -90,7 +82,6 @@ export declare class Chevre {
|
|
|
90
82
|
constructor(options: Pick<IOptions, 'auth' | 'endpoint'>);
|
|
91
83
|
createCategoryCodeInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<CategoryCodeService>;
|
|
92
84
|
createCreativeWorkInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<CreativeWorkService>;
|
|
93
|
-
createEmailMessageInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<EmailMessageService>;
|
|
94
85
|
createEventInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<EventService>;
|
|
95
86
|
createEventOfferInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<EventOfferService>;
|
|
96
87
|
createEventSeriesInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<EventSeriesService>;
|
package/lib/abstract/chevre.js
CHANGED
|
@@ -42,9 +42,6 @@ var service;
|
|
|
42
42
|
let CreativeWork;
|
|
43
43
|
(function (CreativeWork) {
|
|
44
44
|
})(CreativeWork = service.CreativeWork || (service.CreativeWork = {}));
|
|
45
|
-
let EmailMessage;
|
|
46
|
-
(function (EmailMessage) {
|
|
47
|
-
})(EmailMessage = service.EmailMessage || (service.EmailMessage = {}));
|
|
48
45
|
let Event;
|
|
49
46
|
(function (Event) {
|
|
50
47
|
})(Event = service.Event || (service.Event = {}));
|
|
@@ -87,12 +84,6 @@ class Chevre {
|
|
|
87
84
|
}
|
|
88
85
|
return new service.CreativeWork.svc({ ...this.options, ...params, retryableStatusCodes: [] });
|
|
89
86
|
}
|
|
90
|
-
async createEmailMessageInstance(params) {
|
|
91
|
-
if (service.EmailMessage.svc === undefined) {
|
|
92
|
-
service.EmailMessage.svc = (await Promise.resolve().then(() => __importStar(require('./chevre/emailMessage.js')))).EmailMessageService;
|
|
93
|
-
}
|
|
94
|
-
return new service.EmailMessage.svc({ ...this.options, ...params, retryableStatusCodes: [] });
|
|
95
|
-
}
|
|
96
87
|
async createEventInstance(params) {
|
|
97
88
|
if (service.Event.svc === undefined) {
|
|
98
89
|
service.Event.svc = (await Promise.resolve().then(() => __importStar(require('./chevre/event.js')))).EventService;
|
|
@@ -28,18 +28,7 @@ export declare class EventService extends Service {
|
|
|
28
28
|
*/
|
|
29
29
|
findEventById(params: {
|
|
30
30
|
id: string;
|
|
31
|
-
typeOf: factory.eventType.ScreeningEvent;
|
|
32
31
|
}): Promise<factory.event.screeningEvent.IEvent>;
|
|
33
|
-
/**
|
|
34
|
-
* 興行イベント編集
|
|
35
|
-
*/
|
|
36
|
-
updateEventById(params: {
|
|
37
|
-
id: string;
|
|
38
|
-
attributes: factory.event.screeningEvent.IUpdateByIdParams;
|
|
39
|
-
options: {
|
|
40
|
-
disableOverwriteMakesOffer: boolean;
|
|
41
|
-
};
|
|
42
|
-
}): Promise<void>;
|
|
43
32
|
/**
|
|
44
33
|
* イベントのアプリケーションオファー編集
|
|
45
34
|
*/
|
|
@@ -8,34 +8,6 @@ const service_1 = require("../service");
|
|
|
8
8
|
* イベントサービス
|
|
9
9
|
*/
|
|
10
10
|
class EventService extends service_1.Service {
|
|
11
|
-
// discontinue(2026-01-30~)
|
|
12
|
-
// /**
|
|
13
|
-
// * 興行イベント複数作成
|
|
14
|
-
// */
|
|
15
|
-
// public async createScreeningEvents(
|
|
16
|
-
// params: factory.event.screeningEvent.ICreateParams[],
|
|
17
|
-
// // add options(2025-08-26~)
|
|
18
|
-
// options: {
|
|
19
|
-
// superEventId: string;
|
|
20
|
-
// locationBranchCode: string;
|
|
21
|
-
// hasTicketedSeat: boolean;
|
|
22
|
-
// }
|
|
23
|
-
// ): Promise<void> {
|
|
24
|
-
// const { superEventId, locationBranchCode, hasTicketedSeat } = options;
|
|
25
|
-
// await this.fetch({
|
|
26
|
-
// uri: '/events',
|
|
27
|
-
// method: 'POST',
|
|
28
|
-
// body: params,
|
|
29
|
-
// qs: {
|
|
30
|
-
// expectsNoContent: '1',
|
|
31
|
-
// typeOf: factory.eventType.ScreeningEvent,
|
|
32
|
-
// superEventId,
|
|
33
|
-
// locationBranchCode,
|
|
34
|
-
// hasTicketedSeat
|
|
35
|
-
// },
|
|
36
|
-
// expectedStatusCodes: [status.NO_CONTENT]
|
|
37
|
-
// });
|
|
38
|
-
// }
|
|
39
11
|
/**
|
|
40
12
|
* 興行イベント複数追加パラメータ検証
|
|
41
13
|
* consoleでのイベント追加時にのみ使用される想定
|
|
@@ -47,12 +19,10 @@ class EventService extends service_1.Service {
|
|
|
47
19
|
method: 'POST',
|
|
48
20
|
body: params,
|
|
49
21
|
qs: {
|
|
50
|
-
expectsNoContent: '1',
|
|
51
22
|
typeOf: factory_1.factory.eventType.ScreeningEvent,
|
|
52
23
|
superEventId,
|
|
53
24
|
locationBranchCode,
|
|
54
25
|
hasTicketedSeat,
|
|
55
|
-
onlyValidate: true
|
|
56
26
|
},
|
|
57
27
|
expectedStatusCodes: [http_status_1.status.NO_CONTENT]
|
|
58
28
|
});
|
|
@@ -73,31 +43,36 @@ class EventService extends service_1.Service {
|
|
|
73
43
|
* イベント取得
|
|
74
44
|
*/
|
|
75
45
|
async findEventById(params) {
|
|
76
|
-
const { id
|
|
46
|
+
const { id } = params;
|
|
77
47
|
return this.fetch({
|
|
78
48
|
uri: `/events/${encodeURIComponent(String(id))}`,
|
|
79
49
|
method: 'GET',
|
|
80
50
|
expectedStatusCodes: [http_status_1.status.OK],
|
|
81
|
-
qs: { typeOf }
|
|
82
51
|
})
|
|
83
52
|
.then(async (response) => response.json());
|
|
84
53
|
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
54
|
+
// migrate to chvevreAdmin.updateEventsByIdentifier(2026-10-12~)
|
|
55
|
+
// /**
|
|
56
|
+
// * 興行イベント編集
|
|
57
|
+
// */
|
|
58
|
+
// public async updateEventById(params: {
|
|
59
|
+
// id: string;
|
|
60
|
+
// attributes: factory.event.screeningEvent.IUpdateByIdParams;
|
|
61
|
+
// options: {
|
|
62
|
+
// disableOverwriteMakesOffer: boolean;
|
|
63
|
+
// };
|
|
64
|
+
// }): Promise<void> {
|
|
65
|
+
// await this.fetch({
|
|
66
|
+
// uri: `/events/${encodeURIComponent(String(params.id))}`,
|
|
67
|
+
// method: 'PUT',
|
|
68
|
+
// body: params.attributes,
|
|
69
|
+
// qs: {
|
|
70
|
+
// typeOf: factory.eventType.ScreeningEvent,
|
|
71
|
+
// disableOverwriteMakesOffer: params.options?.disableOverwriteMakesOffer === true // support disableOverwriteMakesOffer(2025-10-26~)
|
|
72
|
+
// },
|
|
73
|
+
// expectedStatusCodes: [status.NO_CONTENT]
|
|
74
|
+
// });
|
|
75
|
+
// }
|
|
101
76
|
/**
|
|
102
77
|
* イベントのアプリケーションオファー編集
|
|
103
78
|
*/
|
|
@@ -2,35 +2,18 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.EventSeriesService = void 0;
|
|
4
4
|
const http_status_1 = require("http-status");
|
|
5
|
-
const factory_1 = require("../factory");
|
|
6
5
|
const service_1 = require("../service");
|
|
6
|
+
const BASE_URI = '/eventSeries';
|
|
7
7
|
/**
|
|
8
8
|
* 施設コンテンツサービス
|
|
9
9
|
*/
|
|
10
10
|
class EventSeriesService extends service_1.Service {
|
|
11
|
-
// discontinue(2026-10-04~)
|
|
12
|
-
// public async aggregateMaxVersion(params: {
|
|
13
|
-
// workPerformed: {
|
|
14
|
-
// identifier: { $eq: string };
|
|
15
|
-
// };
|
|
16
|
-
// location: {
|
|
17
|
-
// branchCode: { $in: string[] };
|
|
18
|
-
// };
|
|
19
|
-
// }): Promise<{ maxVersion: string }> {
|
|
20
|
-
// return this.fetch({
|
|
21
|
-
// uri: `/events/${factory.eventType.ScreeningEventSeries}/aggregateScreeningEventMaxVersion`,
|
|
22
|
-
// method: 'GET',
|
|
23
|
-
// qs: params,
|
|
24
|
-
// expectedStatusCodes: [status.OK]
|
|
25
|
-
// })
|
|
26
|
-
// .then(async (response) => response.json());
|
|
27
|
-
// }
|
|
28
11
|
/**
|
|
29
12
|
* 施設コンテンツ削除
|
|
30
13
|
*/
|
|
31
|
-
async
|
|
14
|
+
async deleteEventSeriesById(params) {
|
|
32
15
|
await this.fetch({
|
|
33
|
-
uri:
|
|
16
|
+
uri: `${BASE_URI}/${encodeURIComponent(String(params.id))}`,
|
|
34
17
|
method: 'DELETE',
|
|
35
18
|
expectedStatusCodes: [http_status_1.status.NO_CONTENT]
|
|
36
19
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ISearchOfferCatalogItemAvailabilityResult, ISearchOfferCatalogItemResult, ISeatAsEventOffer,
|
|
1
|
+
import { ISearchOfferCatalogItemAvailabilityResult, ISearchOfferCatalogItemResult, ISeatAsEventOffer, IFindParamsLegacy } from '../../chevre/event/factory';
|
|
2
2
|
import type { ISearchWithReservationForIdResult } from '../../chevreConsole/aggregateReservation';
|
|
3
3
|
import { factory } from '../../factory';
|
|
4
4
|
import { ISearchResult, Service } from '../../service';
|
|
@@ -31,7 +31,7 @@ export declare class EventService extends Service {
|
|
|
31
31
|
/**
|
|
32
32
|
* イベント(公開属性)検索
|
|
33
33
|
*/
|
|
34
|
-
findEvents(params: Pick<
|
|
34
|
+
findEvents(params: Pick<IFindParamsLegacy, 'limit' | 'page' | 'sort' | 'eventStatuses' | 'id' | 'identifiers' | 'inSessionFrom' | 'inSessionThrough' | 'offers' | 'startFrom' | 'startThrough' | 'superEvent' | 'sellerMakesOfferAvailableAtIn' | 'typeOf' | '$projection'>): Promise<IEventAsFindResult[]>;
|
|
35
35
|
/**
|
|
36
36
|
* イベントの予約集計検索
|
|
37
37
|
* @deprecated ttts専用
|