@cinerino/sdk 18.0.0-alpha.13 → 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.
@@ -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) {