@cinerino/sdk 18.0.0-alpha.11 → 18.0.0-alpha.13
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/eventSeries.d.ts +17 -4
- package/lib/abstract/chevre/eventSeries.js +1 -1
- package/lib/abstract/chevre/place.d.ts +9 -0
- package/lib/abstract/chevre/place.js +14 -13
- package/lib/abstract/chevre.d.ts +0 -11
- package/lib/abstract/chevre.js +0 -12
- package/lib/abstract/cinerino/service/place/hasPOS.d.ts +2 -11
- package/lib/abstract/cinerino/service/place/hasPOS.js +2 -1
- package/lib/abstract/cloud/search/eventSeries.d.ts +1 -9
- package/lib/abstract/cloud/search/eventSeries.js +0 -3
- package/lib/bundle.js +3 -3
- package/lib/bundle.js.map +4 -4
- package/package.json +1 -1
- package/lib/abstract/chevre/place/hasPOS.d.ts +0 -26
- package/lib/abstract/chevre/place/hasPOS.js +0 -21
|
@@ -2,13 +2,26 @@ import { factory } from '../factory';
|
|
|
2
2
|
import { Service } from '../service';
|
|
3
3
|
type IKeyOfProjection = keyof factory.eventSeries.IEvent;
|
|
4
4
|
type IProjection = Partial<Record<IKeyOfProjection, 0>>;
|
|
5
|
+
export type IFindParams = Pick<factory.eventSeries.ISearchConditions, 'endFrom' | 'endThrough' | 'id' | 'limit' | 'name' | 'page' | 'sort' | 'startFrom' | 'startThrough'> & {
|
|
6
|
+
location?: {
|
|
7
|
+
branchCode?: {
|
|
8
|
+
$eq?: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
workPerformed?: {
|
|
12
|
+
/**
|
|
13
|
+
* コンテンツコード
|
|
14
|
+
*/
|
|
15
|
+
identifiers?: string[];
|
|
16
|
+
};
|
|
17
|
+
typeOf: factory.eventType.ScreeningEventSeries;
|
|
18
|
+
$projection?: IProjection;
|
|
19
|
+
};
|
|
20
|
+
export type IEventSeriesAsFindResult = Pick<factory.eventSeries.IEvent, 'additionalProperty' | 'alternativeHeadline' | 'coaInfo' | 'description' | 'dubLanguage' | 'duration' | 'endDate' | 'eventStatus' | 'headline' | 'identifier' | 'kanaName' | 'location' | 'name' | 'offers' | 'organizer' | 'project' | 'startDate' | 'subtitleLanguage' | 'typeOf' | 'workPerformed' | 'subEvent' | 'id'>;
|
|
5
21
|
/**
|
|
6
22
|
* 施設コンテンツサービス
|
|
7
23
|
*/
|
|
8
24
|
export declare class EventSeriesService extends Service {
|
|
9
|
-
|
|
10
|
-
typeOf: factory.eventType.ScreeningEventSeries;
|
|
11
|
-
$projection?: IProjection;
|
|
12
|
-
}): Promise<factory.eventSeries.IEvent[]>;
|
|
25
|
+
findEventSeries(params: IFindParams): Promise<IEventSeriesAsFindResult[]>;
|
|
13
26
|
}
|
|
14
27
|
export {};
|
|
@@ -83,5 +83,14 @@ export declare class PlaceService extends Service {
|
|
|
83
83
|
*/
|
|
84
84
|
seatingType?: string;
|
|
85
85
|
}): Promise<ISeat[]>;
|
|
86
|
+
/**
|
|
87
|
+
* 施設のPOS検索
|
|
88
|
+
* 管理者権限が必要
|
|
89
|
+
*/
|
|
90
|
+
adminFindPOS(params: {
|
|
91
|
+
movieTheaterId: string;
|
|
92
|
+
limit: number;
|
|
93
|
+
page: number;
|
|
94
|
+
}): Promise<Pick<factory.place.movieTheater.IPOS, 'branchCode' | 'name'>[]>;
|
|
86
95
|
}
|
|
87
96
|
export {};
|
|
@@ -33,19 +33,6 @@ class PlaceService extends service_1.Service {
|
|
|
33
33
|
})
|
|
34
34
|
.then(async (response) => response.json());
|
|
35
35
|
}
|
|
36
|
-
// discontinue findRoomsLegacy(2026-09-15~)
|
|
37
|
-
// /**
|
|
38
|
-
// * ルーム検索(legacy)
|
|
39
|
-
// */
|
|
40
|
-
// public async findRoomsLegacy(params: Pick<factory.place.screeningRoom.ISearchConditions, 'branchCode' | 'containedInPlace'>): Promise<IScreeningRoomLegacy[]> {
|
|
41
|
-
// return this.fetch({
|
|
42
|
-
// uri: `/places/${factory.placeType.ScreeningRoom}`,
|
|
43
|
-
// method: 'GET',
|
|
44
|
-
// qs: params,
|
|
45
|
-
// expectedStatusCodes: [status.OK]
|
|
46
|
-
// })
|
|
47
|
-
// .then(async (response) => response.json());
|
|
48
|
-
// }
|
|
49
36
|
/**
|
|
50
37
|
* ルーム指定でセクション検索
|
|
51
38
|
* ルーティングによる販売者指定が必須
|
|
@@ -74,5 +61,19 @@ class PlaceService extends service_1.Service {
|
|
|
74
61
|
})
|
|
75
62
|
.then(async (response) => response.json());
|
|
76
63
|
}
|
|
64
|
+
/**
|
|
65
|
+
* 施設のPOS検索
|
|
66
|
+
* 管理者権限が必要
|
|
67
|
+
*/
|
|
68
|
+
async adminFindPOS(params) {
|
|
69
|
+
const { movieTheaterId, limit, page } = params;
|
|
70
|
+
return this.fetch({
|
|
71
|
+
uri: '/pos',
|
|
72
|
+
method: 'GET',
|
|
73
|
+
qs: { movieTheaterId, limit, page },
|
|
74
|
+
expectedStatusCodes: [http_status_1.status.OK]
|
|
75
|
+
})
|
|
76
|
+
.then(async (response) => response.json());
|
|
77
|
+
}
|
|
77
78
|
}
|
|
78
79
|
exports.PlaceService = PlaceService;
|
package/lib/abstract/chevre.d.ts
CHANGED
|
@@ -7,7 +7,6 @@ import type { EventOfferService } from './chevre/eventOffer';
|
|
|
7
7
|
import type { EventSeriesService } from './chevre/eventSeries';
|
|
8
8
|
import type { PaymentProductService } from './chevre/paymentService';
|
|
9
9
|
import type { PlaceService } from './chevre/place';
|
|
10
|
-
import type { HasPOSService } from './chevre/place/hasPOS';
|
|
11
10
|
import type { ProductService } from './chevre/product';
|
|
12
11
|
import type { SeatOfferService } from './chevre/seatOffer';
|
|
13
12
|
import type { SellerService } from './chevre/seller';
|
|
@@ -69,15 +68,6 @@ export declare namespace service {
|
|
|
69
68
|
namespace Place {
|
|
70
69
|
let svc: typeof PlaceService | undefined;
|
|
71
70
|
}
|
|
72
|
-
namespace place {
|
|
73
|
-
/**
|
|
74
|
-
* 施設のPoints-of-Salesサービス
|
|
75
|
-
*/
|
|
76
|
-
type HasPOS = HasPOSService;
|
|
77
|
-
namespace HasPOS {
|
|
78
|
-
let svc: typeof HasPOSService | undefined;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
71
|
/**
|
|
82
72
|
* プロダクトサービス
|
|
83
73
|
*/
|
|
@@ -114,7 +104,6 @@ export declare class Chevre {
|
|
|
114
104
|
createEventSeriesInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<EventSeriesService>;
|
|
115
105
|
createPaymentProductInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<PaymentProductService>;
|
|
116
106
|
createPlaceInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<PlaceService>;
|
|
117
|
-
createHasPOSInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<HasPOSService>;
|
|
118
107
|
createProductInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<ProductService>;
|
|
119
108
|
createSeatOfferInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<SeatOfferService>;
|
|
120
109
|
createSellerInstance(params: Pick<IOptions, 'project'>): Promise<SellerService>;
|
package/lib/abstract/chevre.js
CHANGED
|
@@ -60,12 +60,6 @@ var service;
|
|
|
60
60
|
let Place;
|
|
61
61
|
(function (Place) {
|
|
62
62
|
})(Place = service.Place || (service.Place = {}));
|
|
63
|
-
let place;
|
|
64
|
-
(function (place) {
|
|
65
|
-
let HasPOS;
|
|
66
|
-
(function (HasPOS) {
|
|
67
|
-
})(HasPOS = place.HasPOS || (place.HasPOS = {}));
|
|
68
|
-
})(place = service.place || (service.place = {}));
|
|
69
63
|
let Product;
|
|
70
64
|
(function (Product) {
|
|
71
65
|
})(Product = service.Product || (service.Product = {}));
|
|
@@ -132,12 +126,6 @@ class Chevre {
|
|
|
132
126
|
}
|
|
133
127
|
return new service.Place.svc({ ...this.options, ...params, retryableStatusCodes: [] });
|
|
134
128
|
}
|
|
135
|
-
async createHasPOSInstance(params) {
|
|
136
|
-
if (service.place.HasPOS.svc === undefined) {
|
|
137
|
-
service.place.HasPOS.svc = (await Promise.resolve().then(() => __importStar(require('./chevre/place/hasPOS.js')))).HasPOSService;
|
|
138
|
-
}
|
|
139
|
-
return new service.place.HasPOS.svc({ ...this.options, ...params, retryableStatusCodes: [] });
|
|
140
|
-
}
|
|
141
129
|
async createProductInstance(params) {
|
|
142
130
|
if (service.Product.svc === undefined) {
|
|
143
131
|
service.Product.svc = (await Promise.resolve().then(() => __importStar(require('./chevre/product.js')))).ProductService;
|
|
@@ -6,7 +6,8 @@ import { IAdditionalOptions, IOptions, Service } from '../../../service';
|
|
|
6
6
|
export declare class HasPOSService extends Service {
|
|
7
7
|
constructor(options: IAdditionalOptions & Pick<IOptions, 'auth' | 'endpoint' | 'transporter' | 'project' | 'defaultPath'>);
|
|
8
8
|
/**
|
|
9
|
-
* 施設のPOS
|
|
9
|
+
* 施設のPOS検索
|
|
10
|
+
* 管理者権限が必要
|
|
10
11
|
*/
|
|
11
12
|
search(params: {
|
|
12
13
|
operater: {
|
|
@@ -21,16 +22,6 @@ export declare class HasPOSService extends Service {
|
|
|
21
22
|
qs: {
|
|
22
23
|
limit?: number;
|
|
23
24
|
page?: number;
|
|
24
|
-
branchCode?: {
|
|
25
|
-
/**
|
|
26
|
-
* POSコード完全一致
|
|
27
|
-
*/
|
|
28
|
-
$eq?: string;
|
|
29
|
-
/**
|
|
30
|
-
* POSコード部分一致
|
|
31
|
-
*/
|
|
32
|
-
$regex?: string;
|
|
33
|
-
};
|
|
34
25
|
};
|
|
35
26
|
}): Promise<Pick<factory.place.movieTheater.IPOS, 'branchCode' | 'name'>[]>;
|
|
36
27
|
}
|
|
@@ -12,7 +12,8 @@ class HasPOSService extends service_1.Service {
|
|
|
12
12
|
super({ ...options, retryableStatusCodes: [http_status_1.status.BAD_GATEWAY, http_status_1.status.FORBIDDEN, http_status_1.status.UNAUTHORIZED] });
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
15
|
-
* 施設のPOS
|
|
15
|
+
* 施設のPOS検索
|
|
16
|
+
* 管理者権限が必要
|
|
16
17
|
*/
|
|
17
18
|
async search(params) {
|
|
18
19
|
return this.fetch({
|
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
import { factory } from '../../factory';
|
|
2
1
|
import { Service } from '../../service';
|
|
3
|
-
|
|
4
|
-
type IFindParams = Pick<factory.eventSeries.ISearchConditions, 'additionalProperty' | 'endFrom' | 'endThrough' | 'id' | 'inSessionFrom' | 'inSessionThrough' | 'limit' | 'location' | 'name' | 'page' | 'sort' | 'startFrom' | 'startThrough' | 'videoFormat' | 'workPerformed'> & {
|
|
5
|
-
typeOf: factory.eventType.ScreeningEventSeries;
|
|
6
|
-
$projection?: {
|
|
7
|
-
[key in keyof factory.eventSeries.IEvent]?: 0;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
2
|
+
import { IFindParams, IEventSeriesAsFindResult } from '../../chevre/eventSeries';
|
|
10
3
|
/**
|
|
11
4
|
* 施設コンテンツサービス
|
|
12
5
|
*/
|
|
@@ -16,4 +9,3 @@ export declare class EventSeriesService extends Service {
|
|
|
16
9
|
*/
|
|
17
10
|
findEventSeries(params: IFindParams): Promise<IEventSeriesAsFindResult[]>;
|
|
18
11
|
}
|
|
19
|
-
export {};
|
|
@@ -8,9 +8,6 @@ const BASE_URI = '/eventSeries';
|
|
|
8
8
|
* 施設コンテンツサービス
|
|
9
9
|
*/
|
|
10
10
|
class EventSeriesService extends service_1.Service {
|
|
11
|
-
// constructor(options: IAdditionalOptions & Pick<IOptions, 'auth' | 'endpoint' | 'transporter' | 'project' | 'defaultPath'>) {
|
|
12
|
-
// super({ ...options, retryableStatusCodes: [status.BAD_GATEWAY, status.FORBIDDEN, status.UNAUTHORIZED] });
|
|
13
|
-
// }
|
|
14
11
|
/**
|
|
15
12
|
* 施設コンテンツ検索
|
|
16
13
|
*/
|