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

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.
@@ -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;
@@ -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>;
@@ -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;
@@ -1,10 +1,10 @@
1
- import { factory } from '../../factory';
2
- import { Service } from '../../service';
1
+ import { factory } from '../factory';
2
+ import { Service } from '../service';
3
3
  /**
4
4
  * 施設のPOSサービス
5
5
  */
6
- export declare class HasPOSService extends Service {
7
- search(params: {
6
+ export declare class POSService extends Service {
7
+ findPOS(params: {
8
8
  operater: {
9
9
  /**
10
10
  * 施設ID
@@ -23,7 +23,7 @@ export declare class HasPOSService extends Service {
23
23
  };
24
24
  };
25
25
  }): Promise<Pick<factory.place.movieTheater.IPOS, 'branchCode' | 'name'>[]>;
26
- createByBranchCode(params: Pick<factory.place.movieTheater.IPOS, 'branchCode' | 'name'> & {
26
+ addPOSByBranchCode(params: Pick<factory.place.movieTheater.IPOS, 'branchCode' | 'name'> & {
27
27
  operater: {
28
28
  /**
29
29
  * 施設ID
@@ -31,7 +31,7 @@ export declare class HasPOSService extends Service {
31
31
  id: string;
32
32
  };
33
33
  }): Promise<void>;
34
- updateByBranchCode(params: Pick<factory.place.movieTheater.IPOS, 'branchCode' | 'name'> & {
34
+ updatePOSByBranchCode(params: Pick<factory.place.movieTheater.IPOS, 'branchCode' | 'name'> & {
35
35
  operater: {
36
36
  /**
37
37
  * 施設ID
@@ -39,7 +39,7 @@ export declare class HasPOSService extends Service {
39
39
  id: string;
40
40
  };
41
41
  }): Promise<void>;
42
- deleteByBranchCode(params: Pick<factory.place.movieTheater.IPOS, 'branchCode'> & {
42
+ deletePOSByBranchCode(params: Pick<factory.place.movieTheater.IPOS, 'branchCode'> & {
43
43
  operater: {
44
44
  /**
45
45
  * 施設ID
@@ -1,14 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.HasPOSService = void 0;
3
+ exports.POSService = void 0;
4
4
  const http_status_1 = require("http-status");
5
- const factory_1 = require("../../factory");
6
- const service_1 = require("../../service");
5
+ const factory_1 = require("../factory");
6
+ const service_1 = require("../service");
7
7
  /**
8
8
  * 施設のPOSサービス
9
9
  */
10
- class HasPOSService extends service_1.Service {
11
- async search(params) {
10
+ class POSService extends service_1.Service {
11
+ async findPOS(params) {
12
12
  return this.fetch({
13
13
  uri: `/places/${factory_1.factory.placeType.MovieTheater}/${encodeURIComponent(String(params.operater.id))}/hasPOS`,
14
14
  method: 'GET',
@@ -17,7 +17,7 @@ class HasPOSService extends service_1.Service {
17
17
  })
18
18
  .then(async (response) => response.json());
19
19
  }
20
- async createByBranchCode(params) {
20
+ async addPOSByBranchCode(params) {
21
21
  await this.fetch({
22
22
  uri: `/places/${factory_1.factory.placeType.MovieTheater}/${encodeURIComponent(String(params.operater.id))}/hasPOS`,
23
23
  method: 'POST',
@@ -25,7 +25,7 @@ class HasPOSService extends service_1.Service {
25
25
  expectedStatusCodes: [http_status_1.status.NO_CONTENT]
26
26
  });
27
27
  }
28
- async updateByBranchCode(params) {
28
+ async updatePOSByBranchCode(params) {
29
29
  await this.fetch({
30
30
  uri: `/places/${factory_1.factory.placeType.MovieTheater}/${encodeURIComponent(String(params.operater.id))}/hasPOS/${params.branchCode}`,
31
31
  method: 'PUT',
@@ -33,7 +33,7 @@ class HasPOSService extends service_1.Service {
33
33
  expectedStatusCodes: [http_status_1.status.NO_CONTENT]
34
34
  });
35
35
  }
36
- async deleteByBranchCode(params) {
36
+ async deletePOSByBranchCode(params) {
37
37
  await this.fetch({
38
38
  uri: `/places/${factory_1.factory.placeType.MovieTheater}/${encodeURIComponent(String(params.operater.id))}/hasPOS/${params.branchCode}`,
39
39
  method: 'DELETE',
@@ -41,4 +41,4 @@ class HasPOSService extends service_1.Service {
41
41
  });
42
42
  }
43
43
  }
44
- exports.HasPOSService = HasPOSService;
44
+ exports.POSService = POSService;
@@ -42,7 +42,7 @@ import type { PendingReservationService } from './chevreConsole/pendingReservati
42
42
  import type { PermissionService } from './chevreConsole/permission';
43
43
  import type { PersonService } from './chevreConsole/person';
44
44
  import type { PlaceService } from './chevreConsole/place';
45
- import type { HasPOSService } from './chevreConsole/place/hasPOS';
45
+ import type { POSService } from './chevreConsole/pos';
46
46
  import type { PriceSpecificationService } from './chevreConsole/priceSpecification';
47
47
  import type { ProductService } from './chevreConsole/product';
48
48
  import type { ProjectService } from './chevreConsole/project';
@@ -312,14 +312,12 @@ export declare namespace service {
312
312
  namespace Place {
313
313
  let svc: typeof PlaceService | undefined;
314
314
  }
315
- namespace place {
316
- /**
317
- * 施設のPoints-of-Salesサービス
318
- */
319
- type HasPOS = HasPOSService;
320
- namespace HasPOS {
321
- let svc: typeof HasPOSService | undefined;
322
- }
315
+ /**
316
+ * 施設のPOSサービス
317
+ */
318
+ type POS = POSService;
319
+ namespace POS {
320
+ let svc: typeof POSService | undefined;
323
321
  }
324
322
  /**
325
323
  * 価格仕様サービス
@@ -533,7 +531,7 @@ export declare class ChevreConsole {
533
531
  createPermissionInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<PermissionService>;
534
532
  createPersonInstance(params: Pick<IOptions, 'project'>): Promise<PersonService>;
535
533
  createPlaceInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<PlaceService>;
536
- createHasPOSInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<HasPOSService>;
534
+ createPOSInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<POSService>;
537
535
  createPriceSpecificationInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<PriceSpecificationService>;
538
536
  createProductInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<ProductService>;
539
537
  createProjectInstance(): Promise<ProjectService>;
@@ -147,12 +147,9 @@ var service;
147
147
  let Place;
148
148
  (function (Place) {
149
149
  })(Place = service.Place || (service.Place = {}));
150
- let place;
151
- (function (place) {
152
- let HasPOS;
153
- (function (HasPOS) {
154
- })(HasPOS = place.HasPOS || (place.HasPOS = {}));
155
- })(place = service.place || (service.place = {}));
150
+ let POS;
151
+ (function (POS) {
152
+ })(POS = service.POS || (service.POS = {}));
156
153
  let PriceSpecification;
157
154
  (function (PriceSpecification) {
158
155
  })(PriceSpecification = service.PriceSpecification || (service.PriceSpecification = {}));
@@ -462,11 +459,11 @@ class ChevreConsole {
462
459
  }
463
460
  return new service.Place.svc({ ...this.options, ...params, retryableStatusCodes: [] });
464
461
  }
465
- async createHasPOSInstance(params) {
466
- if (service.place.HasPOS.svc === undefined) {
467
- service.place.HasPOS.svc = (await Promise.resolve().then(() => __importStar(require('./chevreConsole/place/hasPOS.js')))).HasPOSService;
462
+ async createPOSInstance(params) {
463
+ if (service.POS.svc === undefined) {
464
+ service.POS.svc = (await Promise.resolve().then(() => __importStar(require('./chevreConsole/pos.js')))).POSService;
468
465
  }
469
- return new service.place.HasPOS.svc({ ...this.options, ...params, retryableStatusCodes: [] });
466
+ return new service.POS.svc({ ...this.options, ...params, retryableStatusCodes: [] });
470
467
  }
471
468
  async createPriceSpecificationInstance(params) {
472
469
  if (service.PriceSpecification.svc === undefined) {
@@ -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({