@cinerino/sdk 18.0.0-alpha.11 → 18.0.0-alpha.12

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.
@@ -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
- projectFields(params: Omit<factory.eventSeries.ISearchConditions, 'project' | 'organizer'> & {
10
- typeOf: factory.eventType.ScreeningEventSeries;
11
- $projection?: IProjection;
12
- }): Promise<factory.eventSeries.IEvent[]>;
25
+ findEventSeries(params: IFindParams): Promise<IEventSeriesAsFindResult[]>;
13
26
  }
14
27
  export {};
@@ -7,7 +7,7 @@ const service_1 = require("../service");
7
7
  * 施設コンテンツサービス
8
8
  */
9
9
  class EventSeriesService extends service_1.Service {
10
- async projectFields(params) {
10
+ async findEventSeries(params) {
11
11
  return this.fetch({
12
12
  uri: '/eventSeries',
13
13
  method: 'GET',
@@ -1,12 +1,5 @@
1
- import { factory } from '../../factory';
2
1
  import { Service } from '../../service';
3
- 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'>;
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
  */