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

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.
Files changed (32) hide show
  1. package/lib/abstract/chevre/categoryCode.d.ts +3 -6
  2. package/lib/abstract/chevre/categoryCode.js +2 -6
  3. package/lib/abstract/chevre/creativeWork.d.ts +7 -4
  4. package/lib/abstract/chevre/creativeWork.js +2 -6
  5. package/lib/abstract/chevre/event/factory.d.ts +1 -1
  6. package/lib/abstract/chevre/event.d.ts +2 -1
  7. package/lib/abstract/chevre/place.d.ts +17 -28
  8. package/lib/abstract/chevre/place.js +17 -37
  9. package/lib/abstract/chevreAsset/order/factory.d.ts +12 -0
  10. package/lib/abstract/chevreAsset/order.d.ts +5 -4
  11. package/lib/abstract/chevreAsset/order.js +5 -3
  12. package/lib/abstract/chevreConsole/event.d.ts +1 -1
  13. package/lib/abstract/chevreConsole/transaction/placeOrder.d.ts +3 -2
  14. package/lib/abstract/chevreConsole/transaction/placeOrder.js +2 -6
  15. package/lib/abstract/chevreTxn/transaction/placeOrder/factory.d.ts +1 -1
  16. package/lib/abstract/chevreTxn/transaction/returnOrder/factory.d.ts +7 -3
  17. package/lib/abstract/chevreTxn/transaction/returnOrder.d.ts +1 -7
  18. package/lib/abstract/chevreTxn/transaction/returnOrder.js +3 -15
  19. package/lib/abstract/cinerino/service/categoryCode.d.ts +4 -4
  20. package/lib/abstract/cinerino/service/categoryCode.js +1 -1
  21. package/lib/abstract/cinerino/service/place.d.ts +4 -4
  22. package/lib/abstract/cloud/asset/order.d.ts +2 -3
  23. package/lib/abstract/cloud/asset/order.js +3 -2
  24. package/lib/abstract/cloud/search/creativeWork.d.ts +1 -1
  25. package/lib/abstract/cloud/search/creativeWork.js +0 -3
  26. package/lib/abstract/cloud/search/event.d.ts +4 -2
  27. package/lib/abstract/cloud/search/place.d.ts +3 -9
  28. package/lib/abstract/cloud/search/place.js +1 -0
  29. package/lib/abstract/cloud/txn/transaction/returnOrder.d.ts +1 -1
  30. package/lib/bundle.js +3 -3
  31. package/lib/bundle.js.map +4 -4
  32. package/package.json +2 -2
@@ -1,13 +1,13 @@
1
1
  import { factory } from '../factory';
2
2
  import { Service } from '../service';
3
- type IFindParams = Pick<factory.categoryCode.ISearchConditions, 'codeValue' | 'limit' | 'page'> & {
3
+ export type IFindParams = Pick<factory.categoryCode.ISearchConditions, 'limit' | 'page'> & {
4
4
  inCodeSet?: {
5
5
  identifier?: {
6
6
  $eq?: string;
7
7
  };
8
8
  };
9
9
  };
10
- type ICategoryCodeAsFindResult = Pick<factory.categoryCode.ICategoryCode, 'additionalProperty' | 'codeValue' | 'color' | 'image' | 'name' | 'typeOf'>;
10
+ export type ICategoryCodeAsFindResult = Pick<factory.categoryCode.ICategoryCode, 'additionalProperty' | 'codeValue' | 'color' | 'image' | 'name' | 'typeOf'>;
11
11
  /**
12
12
  * 区分サービス
13
13
  */
@@ -15,8 +15,5 @@ export declare class CategoryCodeService extends Service {
15
15
  /**
16
16
  * 区分検索(決済カード区分を除く)
17
17
  */
18
- search(params: IFindParams): Promise<{
19
- data: ICategoryCodeAsFindResult[];
20
- }>;
18
+ findCategoryCodes(params: IFindParams): Promise<ICategoryCodeAsFindResult[]>;
21
19
  }
22
- export {};
@@ -10,18 +10,14 @@ class CategoryCodeService extends service_1.Service {
10
10
  /**
11
11
  * 区分検索(決済カード区分を除く)
12
12
  */
13
- async search(params) {
13
+ async findCategoryCodes(params) {
14
14
  return this.fetch({
15
15
  uri: '/categoryCodes',
16
16
  method: 'GET',
17
17
  qs: params,
18
18
  expectedStatusCodes: [http_status_1.status.OK]
19
19
  })
20
- .then(async (response) => {
21
- return {
22
- data: await response.json()
23
- };
24
- });
20
+ .then(async (response) => response.json());
25
21
  }
26
22
  }
27
23
  exports.CategoryCodeService = CategoryCodeService;
@@ -3,12 +3,15 @@ import { Service } from '../service';
3
3
  export type IMovieAsFindResult = Pick<factory.creativeWork.movie.ICreativeWork, 'additionalProperty' | 'alternativeHeadline' | 'contentRating' | 'datePublished' | 'distributor' | 'duration' | 'headline' | 'identifier' | 'name' | 'project' | 'thumbnailUrl' | 'typeOf'> & {
4
4
  id: string;
5
5
  };
6
- export type IFindParams = Pick<factory.creativeWork.movie.ISearchConditions, 'additionalProperty' | 'contentRating' | 'datePublishedFrom' | 'datePublishedThrough' | 'distributor' | 'id' | 'identifier' | 'limit' | 'name' | 'offers' | 'page' | 'sort'>;
6
+ export type IFindParams = Pick<factory.creativeWork.movie.ISearchConditions, 'limit' | 'page'> & {
7
+ identifier?: string | {
8
+ $eq?: string;
9
+ $in?: string[];
10
+ };
11
+ };
7
12
  /**
8
13
  * コンテンツサービス
9
14
  */
10
15
  export declare class CreativeWorkService extends Service {
11
- searchMovies(params: IFindParams): Promise<{
12
- data: IMovieAsFindResult[];
13
- }>;
16
+ findMovies(params: IFindParams): Promise<IMovieAsFindResult[]>;
14
17
  }
@@ -7,18 +7,14 @@ const service_1 = require("../service");
7
7
  * コンテンツサービス
8
8
  */
9
9
  class CreativeWorkService extends service_1.Service {
10
- async searchMovies(params) {
10
+ async findMovies(params) {
11
11
  return this.fetch({
12
12
  uri: '/creativeWorks/movie',
13
13
  method: 'GET',
14
14
  qs: params,
15
15
  expectedStatusCodes: [http_status_1.status.OK]
16
16
  })
17
- .then(async (response) => {
18
- return {
19
- data: await response.json()
20
- };
21
- });
17
+ .then(async (response) => response.json());
22
18
  }
23
19
  }
24
20
  exports.CreativeWorkService = CreativeWorkService;
@@ -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 IFindParams = Pick<factory.event.screeningEvent.ISearchConditions, 'limit' | 'page' | 'sort' | 'additionalProperty' | 'eventStatuses' | 'id' | 'identifiers' | 'inSessionFrom' | 'inSessionThrough' | 'location' | 'startFrom' | 'startThrough' | 'superEvent'> & {
4
+ export type IFindParams = Pick<factory.event.screeningEvent.ISearchConditions, 'limit' | 'page' | 'sort' | 'eventStatuses' | 'id' | 'identifiers' | 'inSessionFrom' | 'inSessionThrough' | 'location' | 'startFrom' | 'startThrough' | 'superEvent'> & {
5
5
  typeOf: factory.eventType.ScreeningEvent;
6
6
  $projection?: IProjection;
7
7
  /**
@@ -13,7 +13,8 @@ export declare class EventService extends Service {
13
13
  /**
14
14
  * イベント集計検索
15
15
  */
16
- searchAggregations(params: Pick<factory.event.screeningEvent.ISearchConditions, 'page' | 'limit' | 'sort' | 'typeOf' | 'id' | 'startFrom' | 'startThrough'> & {
16
+ searchAggregations(params: Pick<factory.event.screeningEvent.ISearchConditions, 'page' | 'limit' | 'sort' | 'id' | 'startFrom' | 'startThrough'> & {
17
+ typeOf: factory.eventType.ScreeningEvent;
17
18
  $projection?: {
18
19
  aggregateEntranceGate?: 1;
19
20
  aggregateOffer?: 1;
@@ -1,6 +1,8 @@
1
1
  import { factory } from '../factory';
2
2
  import { Service } from '../service';
3
- export type IScreeningRoom = Omit<factory.place.screeningRoom.IPlace, 'containsPlace' | 'parentOrganization'>;
3
+ export type IScreeningRoomLegacy = Pick<factory.place.screeningRoom.IPlace, 'additionalProperty' | 'address' | 'branchCode' | 'maximumAttendeeCapacity' | 'name' | 'openSeatingAllowed' | 'typeOf'> & {
4
+ containedInPlace?: Pick<factory.place.screeningRoom.IContainedInPlace, 'branchCode'>;
5
+ };
4
6
  export type IScreeningRoomSection = Omit<factory.place.screeningRoomSection.IPlace, 'containsPlace' | 'parentOrganization'>;
5
7
  export type ISeat = Omit<factory.place.seat.IPlace, 'parentOrganization'>;
6
8
  interface IFindMovieTheaterParams {
@@ -9,28 +11,22 @@ interface IFindMovieTheaterParams {
9
11
  id?: string;
10
12
  branchCode?: string;
11
13
  }
12
- type IMovieTheaterAsFindResult = Pick<factory.place.movieTheater.IPlace, 'additionalProperty' | 'branchCode' | 'id' | 'kanaName' | 'name' | 'parentOrganization' | 'telephone' | 'url'>;
14
+ export type IMovieTheaterAsFindResult = Pick<factory.place.movieTheater.IPlace, 'additionalProperty' | 'branchCode' | 'id' | 'kanaName' | 'name' | 'parentOrganization' | 'telephone' | 'url'> & {
15
+ offers?: Pick<factory.place.movieTheater.IOffer, 'availabilityStartsGraceTime'>;
16
+ };
17
+ interface IFindRoomParams {
18
+ limit?: number;
19
+ page?: number;
20
+ branchCode?: string;
21
+ movieTheaterCode?: string;
22
+ }
23
+ export type IRoomAsFindResult = Pick<factory.place.screeningRoom.IPlace, 'additionalProperty' | 'address' | 'branchCode' | 'maximumAttendeeCapacity' | 'name' | 'openSeatingAllowed' | 'typeOf'> & {
24
+ containedInPlace?: Pick<factory.place.screeningRoom.IContainedInPlace, 'branchCode'>;
25
+ };
13
26
  /**
14
27
  * 施設サービス
15
28
  */
16
29
  export declare class PlaceService extends Service {
17
- /**
18
- * 施設検索
19
- * @deprecated use findMovieTheaters
20
- */
21
- searchMovieTheatersLegacy(params: Pick<factory.place.movieTheater.ISearchConditions, 'sort'> & {
22
- id?: {
23
- $eq?: string;
24
- };
25
- /**
26
- * 名称
27
- */
28
- name?: string;
29
- limit: number;
30
- page: number;
31
- }): Promise<Pick<factory.place.movieTheater.IPlace, 'additionalProperty' | 'branchCode' | 'id' | 'kanaName' | 'name' | 'parentOrganization' | 'telephone' | 'url'> & {
32
- offers?: Pick<factory.place.movieTheater.IOffer, 'availabilityStartsGraceTime'>;
33
- }[]>;
34
30
  /**
35
31
  * 施設検索
36
32
  * 2026-01-03~
@@ -38,16 +34,9 @@ export declare class PlaceService extends Service {
38
34
  findMovieTheaters(params: IFindMovieTheaterParams): Promise<IMovieTheaterAsFindResult[]>;
39
35
  /**
40
36
  * ルーム検索
37
+ * 2026-09-15~
41
38
  */
42
- searchScreeningRooms(params: Omit<factory.place.screeningRoom.ISearchConditions, 'project'>): Promise<{
43
- data: IScreeningRoom[];
44
- }>;
45
- /**
46
- * セクション検索
47
- */
48
- searchScreeningRoomSections(params: Omit<factory.place.screeningRoomSection.ISearchConditions, 'project'>): Promise<{
49
- data: IScreeningRoomSection[];
50
- }>;
39
+ findRooms(params: IFindRoomParams): Promise<IRoomAsFindResult[]>;
51
40
  /**
52
41
  * ルーム指定でセクション検索
53
42
  * ルーティングによる販売者指定が必須
@@ -2,25 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PlaceService = void 0;
4
4
  const http_status_1 = require("http-status");
5
- const factory_1 = require("../factory");
6
5
  const service_1 = require("../service");
7
6
  /**
8
7
  * 施設サービス
9
8
  */
10
9
  class PlaceService extends service_1.Service {
11
- /**
12
- * 施設検索
13
- * @deprecated use findMovieTheaters
14
- */
15
- async searchMovieTheatersLegacy(params) {
16
- return this.fetch({
17
- uri: `/places/${factory_1.factory.placeType.MovieTheater}`,
18
- method: 'GET',
19
- qs: params,
20
- expectedStatusCodes: [http_status_1.status.OK]
21
- })
22
- .then(async (response) => response.json());
23
- }
24
10
  /**
25
11
  * 施設検索
26
12
  * 2026-01-03~
@@ -36,36 +22,30 @@ class PlaceService extends service_1.Service {
36
22
  }
37
23
  /**
38
24
  * ルーム検索
25
+ * 2026-09-15~
39
26
  */
40
- async searchScreeningRooms(params) {
27
+ async findRooms(params) {
41
28
  return this.fetch({
42
- uri: `/places/${factory_1.factory.placeType.ScreeningRoom}`,
29
+ uri: `/rooms`,
43
30
  method: 'GET',
44
31
  qs: params,
45
32
  expectedStatusCodes: [http_status_1.status.OK]
46
33
  })
47
- .then(async (response) => {
48
- return {
49
- data: await response.json()
50
- };
51
- });
52
- }
53
- /**
54
- * セクション検索
55
- */
56
- async searchScreeningRoomSections(params) {
57
- return this.fetch({
58
- uri: `/places/${factory_1.factory.placeType.ScreeningRoomSection}`,
59
- method: 'GET',
60
- qs: params,
61
- expectedStatusCodes: [http_status_1.status.OK]
62
- })
63
- .then(async (response) => {
64
- return {
65
- data: await response.json()
66
- };
67
- });
34
+ .then(async (response) => response.json());
68
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
+ // }
69
49
  /**
70
50
  * ルーム指定でセクション検索
71
51
  * ルーティングによる販売者指定が必須
@@ -21,3 +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'> & {
25
+ /**
26
+ * 注文オファー参照結果に含まれるイベント情報は基本的にidのみ
27
+ */
28
+ reservationFor: Pick<factory.order.IEventAsReservationFor, 'id' | 'typeOf'>;
29
+ };
30
+ /**
31
+ * 注文番号+確認番号による注文オファー検索結果としての注文オファー
32
+ */
33
+ export type IAcceptedOfferAsFindResult = Pick<factory.order.IAcceptedOffer, 'id' | 'offeredThrough' | 'priceSpecification' | 'serialNumber' | 'typeOf'> & {
34
+ itemOffered: IItemOfferedMinimized;
35
+ };
@@ -1,5 +1,4 @@
1
- import { factory } from '../factory';
2
- import { IAuthorizeResult, IOrderAsFindByConfirmationNumberResult } from './order/factory';
1
+ import { IAuthorizeResult, IOrderAsFindByConfirmationNumberResult, IAcceptedOfferAsFindResult } from './order/factory';
3
2
  import { Service } from '../service';
4
3
  /**
5
4
  * 注文サービス
@@ -85,12 +84,14 @@ export declare class OrderService extends Service {
85
84
  /**
86
85
  * 確認番号で注文オファー検索
87
86
  */
88
- searchAcceptedOffersByConfirmationNumber(params: {
87
+ findAcceptedOffersByConfirmationNumber(params: {
89
88
  limit?: number;
90
89
  page?: number;
91
90
  confirmationNumber: string;
92
91
  orderNumber: string;
93
- }): Promise<factory.order.IAcceptedOffer[]>;
92
+ }, options: {
93
+ minimizeReservationFor: boolean;
94
+ }): Promise<IAcceptedOfferAsFindResult[]>;
94
95
  /**
95
96
  * 注文コードを発行する
96
97
  */
@@ -91,12 +91,14 @@ class OrderService extends service_1.Service {
91
91
  /**
92
92
  * 確認番号で注文オファー検索
93
93
  */
94
- async searchAcceptedOffersByConfirmationNumber(params) {
95
- const { orderNumber, ...body } = params;
94
+ async findAcceptedOffersByConfirmationNumber(params, options) {
95
+ const { orderNumber, limit, page, confirmationNumber } = params;
96
+ const { minimizeReservationFor } = options;
96
97
  return this.fetch({
97
98
  uri: `/orders/${orderNumber}/acceptedOffersByConfirmationNumber`,
98
99
  method: 'POST',
99
- body,
100
+ body: { limit, page, confirmationNumber },
101
+ qs: { minimizeReservationFor },
100
102
  expectedStatusCodes: [http_status_1.status.OK]
101
103
  })
102
104
  .then(async (response) => response.json());
@@ -19,7 +19,7 @@ export declare class EventService extends Service {
19
19
  /**
20
20
  * イベント検索
21
21
  */
22
- projectFields(params: Pick<factory.event.screeningEvent.ISearchConditions, 'additionalProperty' | 'endFrom' | 'endThrough' | 'eventStatuses' | 'id' | 'identifiers' | 'inSessionFrom' | 'inSessionThrough' | 'limit' | 'location' | 'offers' | 'page' | 'sort' | 'startFrom' | 'startThrough' | 'superEvent' | 'typeOf'> & {
22
+ projectFields(params: Pick<factory.event.screeningEvent.ISearchConditions, 'additionalProperty' | 'endFrom' | 'endThrough' | 'eventStatuses' | 'id' | 'identifiers' | 'inSessionFrom' | 'inSessionThrough' | 'limit' | 'location' | 'offers' | 'page' | 'sort' | 'startFrom' | 'startThrough' | 'superEvent'> & {
23
23
  typeOf: factory.eventType.ScreeningEvent;
24
24
  $projection?: IProjection;
25
25
  }): Promise<IAdminSearchedEvent[]>;
@@ -1,6 +1,7 @@
1
1
  import { factory } from '../../factory';
2
- import { ISearchResult, Service } from '../../service';
2
+ import { Service } from '../../service';
3
3
  type IAction4transaction = factory.action.accept.coaOffer.IAction | factory.action.accept.pay.IAction | factory.action.authorize.offer.eventService.IAction | factory.action.authorize.paymentMethod.any.IAction;
4
+ type IFindParams = Pick<factory.transaction.placeOrder.ISearchConditions, 'agent' | 'ids' | 'limit' | 'object' | 'page' | 'project' | 'seller' | 'sort' | 'startFrom' | 'startThrough' | 'status' | 'statuses'>;
4
5
  /**
5
6
  * 注文取引サービス
6
7
  */
@@ -9,7 +10,7 @@ export declare class PlaceOrderTransactionService extends Service {
9
10
  /**
10
11
  * 取引検索
11
12
  */
12
- search(params: Omit<factory.transaction.ISearchConditions<factory.transactionType.PlaceOrder>, 'project'>): Promise<ISearchResult<factory.transaction.ITransaction<factory.transactionType.PlaceOrder>[]>>;
13
+ findPlaceOrderTransactions(params: IFindParams): Promise<factory.transaction.placeOrder.ITransaction[]>;
13
14
  /**
14
15
  * 取引に対するアクションを検索する
15
16
  */
@@ -12,18 +12,14 @@ class PlaceOrderTransactionService extends service_1.Service {
12
12
  /**
13
13
  * 取引検索
14
14
  */
15
- async search(params) {
15
+ async findPlaceOrderTransactions(params) {
16
16
  return this.fetch({
17
17
  uri: `/transactions/${this.typeOf}`,
18
18
  method: 'GET',
19
19
  qs: params,
20
20
  expectedStatusCodes: [http_status_1.status.OK]
21
21
  })
22
- .then(async (response) => {
23
- return {
24
- data: await response.json()
25
- };
26
- });
22
+ .then(async (response) => response.json());
27
23
  }
28
24
  /**
29
25
  * 取引に対するアクションを検索する
@@ -35,7 +35,7 @@ export interface IStartParams {
35
35
  id: string;
36
36
  };
37
37
  }
38
- export type IStartPlaceOrderResult = Pick<factory.transaction.ITransaction<factory.transactionType.PlaceOrder>, 'expires' | 'startDate' | 'id'>;
38
+ export type IStartPlaceOrderResult = Pick<factory.transaction.placeOrder.ITransaction, 'expires' | 'startDate' | 'id'>;
39
39
  type IAuthorizeEventServiceAction = factory.action.authorize.offer.eventService.IAction;
40
40
  export type IAuthorizeEventServiceResult = Pick<IAuthorizeEventServiceAction, 'id'> & {
41
41
  result?: {
@@ -10,7 +10,7 @@ export interface IStartParams {
10
10
  /**
11
11
  * 返品対象注文
12
12
  */
13
- order: factory.transaction.returnOrder.IReturnableOrder | factory.transaction.returnOrder.IReturnableOrder[];
13
+ order: factory.transaction.returnOrder.IReturnableOrder;
14
14
  reason?: factory.transaction.returnOrder.Reason;
15
15
  };
16
16
  }
@@ -97,6 +97,10 @@ export interface IPotentialActionsParams {
97
97
  };
98
98
  };
99
99
  }
100
- export type IConfirmParams = Pick<factory.transaction.returnOrder.IConfirmParams, 'id'> & {
100
+ export interface IConfirmParams {
101
+ /**
102
+ * 取引ID
103
+ */
104
+ id: string;
101
105
  potentialActions?: IPotentialActionsParams;
102
- };
106
+ }
@@ -1,24 +1,18 @@
1
1
  import { factory } from '../../factory';
2
2
  import { Service } from '../../service';
3
- import { ISetProfileParams } from '../transaction';
4
3
  import { IStartParams, IConfirmParams } from '../transaction/returnOrder/factory';
5
4
  /**
6
5
  * 返品取引サービス
7
6
  */
8
7
  export declare class ReturnOrderTransactionService extends Service {
9
- typeOf: factory.transactionType.ReturnOrder;
10
8
  /**
11
9
  * 取引を開始する
12
10
  */
13
- start(params: IStartParams): Promise<Pick<factory.transaction.ITransaction<factory.transactionType.ReturnOrder>, 'expires' | 'id' | 'project' | 'startDate' | 'status' | 'typeOf'>>;
11
+ start(params: IStartParams): Promise<Pick<factory.transaction.returnOrder.ITransaction, 'expires' | 'id' | 'startDate'>>;
14
12
  /**
15
13
  * 返品取引を開始可能かどうか検証する
16
14
  */
17
15
  verifyReturnPolicy(params: Pick<IStartParams, 'object'>): Promise<void>;
18
- /**
19
- * 取引人プロフィール変更
20
- */
21
- setProfile(params: ISetProfileParams): Promise<void>;
22
16
  /**
23
17
  * 取引確定
24
18
  */
@@ -8,13 +8,12 @@ const service_1 = require("../../service");
8
8
  * 返品取引サービス
9
9
  */
10
10
  class ReturnOrderTransactionService extends service_1.Service {
11
- typeOf = factory_1.factory.transactionType.ReturnOrder;
12
11
  /**
13
12
  * 取引を開始する
14
13
  */
15
14
  async start(params) {
16
15
  return this.fetch({
17
- uri: `/transactions/${this.typeOf}/start`,
16
+ uri: `/transactions/${factory_1.factory.transactionType.ReturnOrder}/start`,
18
17
  method: 'POST',
19
18
  body: params,
20
19
  expectedStatusCodes: [http_status_1.status.OK]
@@ -26,31 +25,20 @@ class ReturnOrderTransactionService extends service_1.Service {
26
25
  */
27
26
  async verifyReturnPolicy(params) {
28
27
  await this.fetch({
29
- uri: `/transactions/${this.typeOf}/start`,
28
+ uri: `/transactions/${factory_1.factory.transactionType.ReturnOrder}/start`,
30
29
  method: 'POST',
31
30
  body: params,
32
31
  qs: { justVerify: true },
33
32
  expectedStatusCodes: [http_status_1.status.NO_CONTENT, http_status_1.status.OK]
34
33
  });
35
34
  }
36
- /**
37
- * 取引人プロフィール変更
38
- */
39
- async setProfile(params) {
40
- await this.fetch({
41
- uri: `/transactions/${this.typeOf}/${params.id}/agent`,
42
- method: 'PUT',
43
- expectedStatusCodes: [http_status_1.status.NO_CONTENT],
44
- body: params.agent
45
- });
46
- }
47
35
  /**
48
36
  * 取引確定
49
37
  */
50
38
  async confirm(params) {
51
39
  const { id, ...body } = params;
52
40
  await this.fetch({
53
- uri: `/transactions/${this.typeOf}/${id}/confirm`,
41
+ uri: `/transactions/${factory_1.factory.transactionType.ReturnOrder}/${id}/confirm`,
54
42
  method: 'PUT',
55
43
  body,
56
44
  expectedStatusCodes: [http_status_1.status.NO_CONTENT]
@@ -1,14 +1,14 @@
1
- import { factory } from '../../factory';
2
1
  import { IAdditionalOptions, IOptions, Service } from '../../service';
2
+ import type { ICategoryCodeAsFindResult, IFindParams } from '../../chevre/categoryCode';
3
3
  /**
4
4
  * 区分サービス
5
5
  */
6
6
  export declare class CategoryCodeService extends Service {
7
7
  constructor(options: IAdditionalOptions & Pick<IOptions, 'auth' | 'endpoint' | 'transporter' | 'project' | 'defaultPath'>);
8
8
  /**
9
- * 検索
9
+ * 区分検索(決済カード区分を除く)
10
10
  */
11
- search(params: Omit<factory.categoryCode.ISearchConditions, 'project'>): Promise<{
12
- data: Omit<factory.categoryCode.ICategoryCode, 'id' | 'inCodeSet' | 'project'>[];
11
+ search(params: IFindParams): Promise<{
12
+ data: ICategoryCodeAsFindResult[];
13
13
  }>;
14
14
  }
@@ -11,7 +11,7 @@ class CategoryCodeService extends service_1.Service {
11
11
  super({ ...options, retryableStatusCodes: [http_status_1.status.BAD_GATEWAY, http_status_1.status.FORBIDDEN, http_status_1.status.UNAUTHORIZED] });
12
12
  }
13
13
  /**
14
- * 検索
14
+ * 区分検索(決済カード区分を除く)
15
15
  */
16
16
  async search(params) {
17
17
  return this.fetch({
@@ -1,4 +1,4 @@
1
- import { IScreeningRoom } from '../../chevre/place';
1
+ import { IScreeningRoomLegacy } from '../../chevre/place';
2
2
  import { IAdditionalOptions, IOptions, ISearchResult, Service } from '../../service';
3
3
  /**
4
4
  * 施設サービス
@@ -9,8 +9,8 @@ export declare class PlaceService extends Service {
9
9
  * ルーム検索
10
10
  */
11
11
  searchScreeningRooms(params: {
12
- limit?: number;
13
- page?: number;
12
+ limit: number;
13
+ page: number;
14
14
  /**
15
15
  * ルームコード
16
16
  */
@@ -28,5 +28,5 @@ export declare class PlaceService extends Service {
28
28
  $eq?: string;
29
29
  };
30
30
  };
31
- }): Promise<ISearchResult<IScreeningRoom[]>>;
31
+ }): Promise<ISearchResult<IScreeningRoomLegacy[]>>;
32
32
  }
@@ -1,5 +1,4 @@
1
- import { factory } from '../../factory';
2
- import { IOrderAsFindByConfirmationNumberResult } from '../../chevreAsset/order/factory';
1
+ import { IOrderAsFindByConfirmationNumberResult, IAcceptedOfferAsFindResult } from '../../chevreAsset/order/factory';
3
2
  import { Service } from '../../service';
4
3
  /**
5
4
  * 注文サービス
@@ -123,5 +122,5 @@ export declare class OrderService extends Service {
123
122
  page?: number;
124
123
  confirmationNumber: string;
125
124
  orderNumber: string;
126
- }): Promise<factory.order.IAcceptedOffer[]>;
125
+ }): Promise<IAcceptedOfferAsFindResult[]>;
127
126
  }
@@ -152,11 +152,12 @@ class OrderService extends service_1.Service {
152
152
  ...(Array.isArray(retryableStatusCodes)) ? retryableStatusCodes : []
153
153
  ]
154
154
  });
155
- return orderService.searchAcceptedOffersByConfirmationNumber({
155
+ return orderService.findAcceptedOffersByConfirmationNumber({
156
156
  confirmationNumber, orderNumber,
157
157
  ...(typeof limit === 'number') ? { limit } : undefined,
158
158
  ...(typeof page === 'number') ? { page } : undefined
159
- });
159
+ }, { minimizeReservationFor: true } // 2026-09-12~
160
+ );
160
161
  }
161
162
  }
162
163
  exports.OrderService = OrderService;
@@ -7,5 +7,5 @@ export declare class CreativeWorkService extends Service {
7
7
  /**
8
8
  * コンテンツ検索
9
9
  */
10
- findMovies(params: Pick<IFindParams, 'identifier' | 'limit' | 'page' | 'sort'>): Promise<Omit<IMovieAsFindResult, 'project'>[]>;
10
+ findMovies(params: Pick<IFindParams, 'identifier' | 'limit' | 'page'>): Promise<Omit<IMovieAsFindResult, 'project'>[]>;
11
11
  }
@@ -7,9 +7,6 @@ const service_1 = require("../../service");
7
7
  * コンテンツサービス
8
8
  */
9
9
  class CreativeWorkService extends service_1.Service {
10
- // constructor(options: IAdditionalOptions & Pick<IOptions, 'auth' | 'endpoint' | 'transporter' | 'project' | 'defaultPath'>) {
11
- // super({ ...options, retryableStatusCodes: [BAD_GATEWAY, FORBIDDEN, UNAUTHORIZED] });
12
- // }
13
10
  /**
14
11
  * コンテンツ検索
15
12
  */
@@ -31,12 +31,14 @@ export declare class EventService extends Service {
31
31
  /**
32
32
  * イベント(公開属性)検索
33
33
  */
34
- findEvents(params: Pick<IFindParams, 'limit' | 'page' | 'sort' | 'additionalProperty' | 'eventStatuses' | 'id' | 'identifiers' | 'inSessionFrom' | 'inSessionThrough' | 'location' | 'offers' | 'startFrom' | 'startThrough' | 'superEvent' | '$projection' | 'sellerMakesOfferAvailableAtIn' | 'typeOf'>): Promise<IEventAsFindResult[]>;
34
+ findEvents(params: Pick<IFindParams, 'limit' | 'page' | 'sort' | 'eventStatuses' | 'id' | 'identifiers' | 'inSessionFrom' | 'inSessionThrough' | 'location' | 'offers' | 'startFrom' | 'startThrough' | 'superEvent' | '$projection' | 'sellerMakesOfferAvailableAtIn' | 'typeOf'>): Promise<IEventAsFindResult[]>;
35
35
  /**
36
36
  * イベントの予約集計検索
37
37
  * @deprecated ttts専用
38
38
  */
39
- findAggregateReservations4ttts(params: Pick<factory.event.screeningEvent.ISearchConditions, 'page' | 'limit' | 'sort' | 'typeOf' | 'id' | 'startFrom' | 'startThrough'>): Promise<ISearchWithReservationForIdResult[]>;
39
+ findAggregateReservations4ttts(params: Pick<factory.event.screeningEvent.ISearchConditions, 'page' | 'limit' | 'sort' | 'id' | 'startFrom' | 'startThrough'> & {
40
+ typeOf: factory.eventType.ScreeningEvent;
41
+ }): Promise<ISearchWithReservationForIdResult[]>;
40
42
  /**
41
43
  * イベントに対する座席検索
42
44
  * ルームの複数セクション非対応
@@ -1,19 +1,13 @@
1
1
  import { factory } from '../../factory';
2
2
  import { Service } from '../../service';
3
- type IFindMovieTheatersParams = Pick<factory.place.movieTheater.ISearchConditions, 'sort'> & {
3
+ import { IMovieTheaterAsFindResult } from '../../chevre/place';
4
+ interface IFindMovieTheatersParams {
4
5
  id?: {
5
6
  $eq?: string;
6
7
  };
7
- /**
8
- * 名称
9
- */
10
- name?: string;
11
8
  limit: number;
12
9
  page: number;
13
- };
14
- type IMovieTheaterAsFindResult = Pick<factory.place.movieTheater.IPlace, 'additionalProperty' | 'branchCode' | 'id' | 'kanaName' | 'name' | 'parentOrganization' | 'telephone' | 'url'> & {
15
- offers?: Pick<factory.place.movieTheater.IOffer, 'availabilityStartsGraceTime'>;
16
- };
10
+ }
17
11
  /**
18
12
  * 施設サービス
19
13
  */
@@ -4,6 +4,7 @@ exports.PlaceService = void 0;
4
4
  const http_status_1 = require("http-status");
5
5
  const factory_1 = require("../../factory");
6
6
  const service_1 = require("../../service");
7
+ ;
7
8
  /**
8
9
  * 施設サービス
9
10
  */