@cinerino/sdk 18.1.0-alpha.3 → 18.1.0-alpha.5

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.
@@ -49,7 +49,9 @@ export declare class EventService extends Service {
49
49
  */
50
50
  findSeatOffersDeprecated(params: {
51
51
  id: string;
52
- } & Pick<factory.place.seat.ISearchConditions, 'additionalProperty' | 'branchCode' | 'containedInPlace' | 'limit' | 'name' | 'page' | 'parentOrganization' | 'seatingType' | 'sort'>): Promise<ISeatAsEventOffer[]>;
52
+ limit: number;
53
+ page: number;
54
+ }): Promise<ISeatAsEventOffer[]>;
53
55
  /**
54
56
  * オファーで利用可能な適用決済カード条件を検索する
55
57
  */
@@ -49,15 +49,11 @@ class EventService extends service_1.Service {
49
49
  * @deprecated use find seatOffers
50
50
  */
51
51
  async findSeatOffersDeprecated(params) {
52
- const { id, ...query } = params;
53
- // const { useDefaultSection } = options;
52
+ const { id, limit, page } = params;
54
53
  return this.fetch({
55
54
  uri: `/events/${encodeURIComponent(String(id))}/seats`,
56
55
  method: 'GET',
57
- qs: {
58
- ...query,
59
- // useDefaultSection
60
- },
56
+ qs: { limit, page },
61
57
  expectedStatusCodes: [http_status_1.status.OK]
62
58
  })
63
59
  .then(async (response) => response.json());
@@ -1,7 +1,5 @@
1
1
  import { factory } from '../factory';
2
2
  import { Service } from '../service';
3
- type IKeyOfProjection = keyof factory.eventSeries.IEvent;
4
- type IProjection = Partial<Record<IKeyOfProjection, 0>>;
5
3
  export type IFindParamsLegacy = Pick<factory.eventSeries.ISearchConditions, 'endFrom' | 'endThrough' | 'id' | 'limit' | 'name' | 'page' | 'sort' | 'startFrom' | 'startThrough'> & {
6
4
  location?: {
7
5
  branchCode?: {
@@ -10,12 +8,12 @@ export type IFindParamsLegacy = Pick<factory.eventSeries.ISearchConditions, 'end
10
8
  };
11
9
  workPerformed?: {
12
10
  /**
13
- * コンテンツコード
11
+ * コンテンツコード(最大1つ指定可能)
14
12
  */
15
13
  identifiers?: string[];
16
14
  };
17
15
  typeOf: factory.eventType.ScreeningEventSeries;
18
- $projection?: IProjection;
16
+ $projection?: never;
19
17
  };
20
18
  export interface IFindParamsNew {
21
19
  limit: number;
@@ -50,7 +48,8 @@ export interface IFindParamsNew {
50
48
  /**
51
49
  * コンテンツコード
52
50
  */
53
- movieIdentifiers?: string[];
51
+ movieIdentifier?: string;
52
+ movieIdentifiers?: never;
54
53
  }
55
54
  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'>;
56
55
  /**
@@ -59,4 +58,3 @@ export type IEventSeriesAsFindResult = Pick<factory.eventSeries.IEvent, 'additio
59
58
  export declare class EventSeriesService extends Service {
60
59
  findEventSeries(params: IFindParamsNew): Promise<IEventSeriesAsFindResult[]>;
61
60
  }
62
- export {};
@@ -21,15 +21,15 @@ export type IOrderAsFindByConfirmationNumberResult = Pick<factory.order.IOrder,
21
21
  telephone?: string;
22
22
  };
23
23
  };
24
- export type IItemOfferedMinimized = Pick<factory.order.IAcceptedOffer['itemOffered'], 'additionalTicketText' | 'id' | 'issuedThrough' | 'programMembershipUsed' | 'reservationNumber' | 'reservedTicket' | 'typeOf'> & {
24
+ export type IItemOfferedMinimized = Pick<factory.acceptedOffer.IAcceptedOffer['itemOffered'], 'additionalTicketText' | 'id' | 'issuedThrough' | 'programMembershipUsed' | 'reservationNumber' | 'reservedTicket' | 'typeOf'> & {
25
25
  /**
26
26
  * 注文オファー参照結果に含まれるイベント情報は基本的にidのみ
27
27
  */
28
- reservationFor: Pick<factory.order.IEventAsReservationFor, 'id' | 'typeOf'>;
28
+ reservationFor: Pick<factory.acceptedOffer.IEventAsReservationFor, 'id' | 'typeOf'>;
29
29
  };
30
30
  /**
31
31
  * 注文番号+確認番号による注文オファー検索結果としての注文オファー
32
32
  */
33
- export type IAcceptedOfferAsFindResult = Pick<factory.order.IAcceptedOffer, 'id' | 'offeredThrough' | 'priceSpecification' | 'serialNumber' | 'typeOf'> & {
33
+ export type IAcceptedOfferAsFindResult = Pick<factory.acceptedOffer.IAcceptedOffer, 'id' | 'offeredThrough' | 'priceSpecification' | 'serialNumber' | 'typeOf'> & {
34
34
  itemOffered: IItemOfferedMinimized;
35
35
  };
@@ -4,13 +4,13 @@ type IKeyOfProjection = keyof factory.order.IOrder | '_id';
4
4
  * 注文検索時projection
5
5
  */
6
6
  export type IProjection = Partial<Record<IKeyOfProjection, 1>>;
7
- export type IItemOfferedMinimized = Pick<factory.order.IAcceptedOffer['itemOffered'], 'additionalTicketText' | 'id' | 'issuedThrough' | 'programMembershipUsed' | 'reservationNumber' | 'reservedTicket' | 'typeOf'> & {
7
+ export type IItemOfferedMinimized = Pick<factory.acceptedOffer.IAcceptedOffer['itemOffered'], 'additionalTicketText' | 'id' | 'issuedThrough' | 'programMembershipUsed' | 'reservationNumber' | 'reservedTicket' | 'typeOf'> & {
8
8
  /**
9
9
  * 注文オファー参照結果に含まれるイベント情報は基本的にidのみ
10
10
  */
11
- reservationFor: Pick<factory.order.IEventAsReservationFor, 'id' | 'typeOf'>;
11
+ reservationFor: Pick<factory.acceptedOffer.IEventAsReservationFor, 'id' | 'typeOf'>;
12
12
  };
13
- export type IAcceptedOfferMinimized = Pick<factory.order.IAcceptedOffer, 'id' | 'offeredThrough' | 'priceSpecification' | 'serialNumber' | 'typeOf'> & {
13
+ export type IAcceptedOfferMinimized = Pick<factory.acceptedOffer.IAcceptedOffer, 'id' | 'offeredThrough' | 'priceSpecification' | 'serialNumber' | 'typeOf'> & {
14
14
  itemOffered: IItemOfferedMinimized;
15
15
  };
16
16
  /**