@cinerino/sdk 18.0.0-alpha.9 → 18.1.0-alpha.0
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.
- package/lib/abstract/chevre/categoryCode.d.ts +3 -6
- package/lib/abstract/chevre/categoryCode.js +2 -6
- package/lib/abstract/chevre/creativeWork.d.ts +7 -4
- package/lib/abstract/chevre/creativeWork.js +2 -6
- package/lib/abstract/chevre/eventSeries.d.ts +17 -4
- package/lib/abstract/chevre/eventSeries.js +1 -1
- package/lib/abstract/chevre/place.d.ts +23 -2
- package/lib/abstract/chevre/place.js +17 -3
- package/lib/abstract/chevre/seller.d.ts +5 -6
- package/lib/abstract/chevre/seller.js +2 -5
- package/lib/abstract/chevre.d.ts +0 -11
- package/lib/abstract/chevre.js +0 -12
- package/lib/abstract/chevreAdmin/seller.js +0 -4
- package/lib/abstract/chevreConsole/{place/hasPOS.d.ts → pos.d.ts} +7 -7
- package/lib/abstract/chevreConsole/{place/hasPOS.js → pos.js} +9 -9
- package/lib/abstract/chevreConsole/seller.d.ts +9 -13
- package/lib/abstract/chevreConsole/seller.js +10 -8
- package/lib/abstract/chevreConsole.d.ts +8 -10
- package/lib/abstract/chevreConsole.js +7 -10
- package/lib/abstract/cinerino/service/categoryCode.d.ts +4 -4
- package/lib/abstract/cinerino/service/categoryCode.js +1 -1
- package/lib/abstract/cinerino/service/place/hasPOS.d.ts +2 -11
- package/lib/abstract/cinerino/service/place/hasPOS.js +2 -1
- package/lib/abstract/cinerino/service/place.d.ts +4 -4
- package/lib/abstract/cinerino/service/seller.d.ts +4 -8
- package/lib/abstract/cinerino/service/seller.js +1 -6
- package/lib/abstract/cloud/search/creativeWork.d.ts +1 -1
- package/lib/abstract/cloud/search/creativeWork.js +0 -3
- package/lib/abstract/cloud/search/eventSeries.d.ts +1 -9
- package/lib/abstract/cloud/search/eventSeries.js +0 -3
- package/lib/bundle.js +3 -3
- package/lib/bundle.js.map +4 -4
- package/package.json +2 -2
- package/lib/abstract/chevre/place/hasPOS.d.ts +0 -26
- package/lib/abstract/chevre/place/hasPOS.js +0 -21
- package/lib/abstract/cinerino/service/event.d.ts +0 -92
- package/lib/abstract/cinerino/service/event.js +0 -22
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { factory } from '../factory';
|
|
2
2
|
import { Service } from '../service';
|
|
3
|
-
type IFindParams = Pick<factory.categoryCode.ISearchConditions, '
|
|
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
|
-
|
|
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
|
|
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, '
|
|
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
|
-
|
|
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
|
|
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;
|
|
@@ -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
|
-
|
|
10
|
-
typeOf: factory.eventType.ScreeningEventSeries;
|
|
11
|
-
$projection?: IProjection;
|
|
12
|
-
}): Promise<factory.eventSeries.IEvent[]>;
|
|
25
|
+
findEventSeries(params: IFindParams): Promise<IEventSeriesAsFindResult[]>;
|
|
13
26
|
}
|
|
14
27
|
export {};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { factory } from '../factory';
|
|
2
2
|
import { Service } from '../service';
|
|
3
|
-
export type
|
|
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 {
|
|
@@ -12,6 +14,15 @@ interface IFindMovieTheaterParams {
|
|
|
12
14
|
export type IMovieTheaterAsFindResult = Pick<factory.place.movieTheater.IPlace, 'additionalProperty' | 'branchCode' | 'id' | 'kanaName' | 'name' | 'parentOrganization' | 'telephone' | 'url'> & {
|
|
13
15
|
offers?: Pick<factory.place.movieTheater.IOffer, 'availabilityStartsGraceTime'>;
|
|
14
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
|
+
};
|
|
15
26
|
/**
|
|
16
27
|
* 施設サービス
|
|
17
28
|
*/
|
|
@@ -23,8 +34,9 @@ export declare class PlaceService extends Service {
|
|
|
23
34
|
findMovieTheaters(params: IFindMovieTheaterParams): Promise<IMovieTheaterAsFindResult[]>;
|
|
24
35
|
/**
|
|
25
36
|
* ルーム検索
|
|
37
|
+
* 2026-09-15~
|
|
26
38
|
*/
|
|
27
|
-
|
|
39
|
+
findRooms(params: IFindRoomParams): Promise<IRoomAsFindResult[]>;
|
|
28
40
|
/**
|
|
29
41
|
* ルーム指定でセクション検索
|
|
30
42
|
* ルーティングによる販売者指定が必須
|
|
@@ -71,5 +83,14 @@ export declare class PlaceService extends Service {
|
|
|
71
83
|
*/
|
|
72
84
|
seatingType?: string;
|
|
73
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'>[]>;
|
|
74
95
|
}
|
|
75
96
|
export {};
|
|
@@ -2,7 +2,6 @@
|
|
|
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
|
* 施設サービス
|
|
@@ -23,10 +22,11 @@ class PlaceService extends service_1.Service {
|
|
|
23
22
|
}
|
|
24
23
|
/**
|
|
25
24
|
* ルーム検索
|
|
25
|
+
* 2026-09-15~
|
|
26
26
|
*/
|
|
27
|
-
async
|
|
27
|
+
async findRooms(params) {
|
|
28
28
|
return this.fetch({
|
|
29
|
-
uri: `/
|
|
29
|
+
uri: `/rooms`,
|
|
30
30
|
method: 'GET',
|
|
31
31
|
qs: params,
|
|
32
32
|
expectedStatusCodes: [http_status_1.status.OK]
|
|
@@ -61,5 +61,19 @@ class PlaceService extends service_1.Service {
|
|
|
61
61
|
})
|
|
62
62
|
.then(async (response) => response.json());
|
|
63
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
|
+
}
|
|
64
78
|
}
|
|
65
79
|
exports.PlaceService = PlaceService;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { factory } from '../factory';
|
|
2
2
|
import { IOptions, Service } from '../service';
|
|
3
3
|
import { IPaymentAccepted, IPaymentServiceByProvider, ISearchPaymentServiceConditions } from './seller/factory';
|
|
4
|
-
type IKeyOfProjection = keyof Omit<factory.seller.ISeller, 'makesOffer' | 'paymentAccepted'>;
|
|
5
|
-
type IProjection = Partial<Record<IKeyOfProjection, 0>>;
|
|
6
4
|
/**
|
|
7
5
|
* 販売者サービス
|
|
8
6
|
*/
|
|
@@ -10,14 +8,16 @@ export declare class SellerService extends Service<IOptions> {
|
|
|
10
8
|
/**
|
|
11
9
|
* 販売者取得
|
|
12
10
|
*/
|
|
13
|
-
|
|
11
|
+
findSellerById(params: {
|
|
14
12
|
id: string;
|
|
15
13
|
}): Promise<Pick<factory.seller.ISeller, 'additionalProperty' | 'branchCode' | 'hasMerchantReturnPolicy' | 'id' | 'name' | 'project' | 'telephone' | 'typeOf' | 'url'>>;
|
|
16
14
|
/**
|
|
17
15
|
* 販売者検索
|
|
18
16
|
*/
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
findSellers(params: Pick<factory.seller.ISearchConditions, 'limit' | 'page' | 'sort'> & {
|
|
18
|
+
branchCode?: {
|
|
19
|
+
$eq?: string;
|
|
20
|
+
};
|
|
21
21
|
}): Promise<Pick<factory.seller.ISeller, 'additionalProperty' | 'branchCode' | 'id' | 'name' | 'project' | 'telephone' | 'typeOf' | 'url'>[]>;
|
|
22
22
|
/**
|
|
23
23
|
* 提供決済サービス検索(public)
|
|
@@ -51,4 +51,3 @@ export declare class SellerService extends Service<IOptions> {
|
|
|
51
51
|
};
|
|
52
52
|
}): Promise<IPaymentAccepted[]>;
|
|
53
53
|
}
|
|
54
|
-
export {};
|
|
@@ -10,11 +10,10 @@ class SellerService extends service_1.Service {
|
|
|
10
10
|
/**
|
|
11
11
|
* 販売者取得
|
|
12
12
|
*/
|
|
13
|
-
async
|
|
13
|
+
async findSellerById(params) {
|
|
14
14
|
return this.fetch({
|
|
15
15
|
uri: `/sellers/${params.id}`,
|
|
16
16
|
method: 'GET',
|
|
17
|
-
// qs: params.qs,
|
|
18
17
|
expectedStatusCodes: [http_status_1.status.OK]
|
|
19
18
|
})
|
|
20
19
|
.then(async (response) => response.json());
|
|
@@ -22,9 +21,7 @@ class SellerService extends service_1.Service {
|
|
|
22
21
|
/**
|
|
23
22
|
* 販売者検索
|
|
24
23
|
*/
|
|
25
|
-
async
|
|
26
|
-
// ): Promise<Omit<factory.seller.ISeller, 'hasMerchantReturnPolicy' | 'makesOffer' | 'paymentAccepted'>[]> {
|
|
27
|
-
) {
|
|
24
|
+
async findSellers(params) {
|
|
28
25
|
return this.fetch({
|
|
29
26
|
uri: '/sellers',
|
|
30
27
|
method: 'GET',
|
package/lib/abstract/chevre.d.ts
CHANGED
|
@@ -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>;
|
package/lib/abstract/chevre.js
CHANGED
|
@@ -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;
|
|
@@ -3,10 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.SellerService = void 0;
|
|
4
4
|
const http_status_1 = require("http-status");
|
|
5
5
|
const service_1 = require("../service");
|
|
6
|
-
// type IKeyOfProjection = keyof Omit<factory.seller.ISeller, 'makesOffer' | 'paymentAccepted'>;
|
|
7
|
-
// type IProjection = {
|
|
8
|
-
// [key in IKeyOfProjection]?: 0;
|
|
9
|
-
// };
|
|
10
6
|
/**
|
|
11
7
|
* 販売者サービス
|
|
12
8
|
*/
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { factory } from '
|
|
2
|
-
import { Service } from '
|
|
1
|
+
import { factory } from '../factory';
|
|
2
|
+
import { Service } from '../service';
|
|
3
3
|
/**
|
|
4
4
|
* 施設のPOSサービス
|
|
5
5
|
*/
|
|
6
|
-
export declare class
|
|
7
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
3
|
+
exports.POSService = void 0;
|
|
4
4
|
const http_status_1 = require("http-status");
|
|
5
|
-
const factory_1 = require("
|
|
6
|
-
const service_1 = require("
|
|
5
|
+
const factory_1 = require("../factory");
|
|
6
|
+
const service_1 = require("../service");
|
|
7
7
|
/**
|
|
8
8
|
* 施設のPOSサービス
|
|
9
9
|
*/
|
|
10
|
-
class
|
|
11
|
-
async
|
|
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
|
|
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
|
|
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
|
|
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.
|
|
44
|
+
exports.POSService = POSService;
|
|
@@ -22,13 +22,13 @@ export declare class SellerService extends Service<IOptions> {
|
|
|
22
22
|
qs: {
|
|
23
23
|
$projection: IProjection;
|
|
24
24
|
};
|
|
25
|
-
}): Promise<
|
|
25
|
+
}): Promise<Pick<factory.seller.ISeller, 'additionalProperty' | 'branchCode' | 'hasMerchantReturnPolicy' | 'id' | 'makesOffer' | 'name' | 'project' | 'telephone' | 'typeOf' | 'url'>>;
|
|
26
26
|
/**
|
|
27
27
|
* 販売者検索
|
|
28
28
|
*/
|
|
29
29
|
search(params: Omit<factory.seller.ISearchConditions, 'project' | 'id'> & {
|
|
30
30
|
$projection: IProjection;
|
|
31
|
-
}): Promise<ISearchResult<
|
|
31
|
+
}): Promise<ISearchResult<Pick<factory.seller.ISeller, 'additionalProperty' | 'branchCode' | 'id' | 'name' | 'project' | 'telephone' | 'typeOf' | 'url'>[]>>;
|
|
32
32
|
/**
|
|
33
33
|
* 販売者編集
|
|
34
34
|
*/
|
|
@@ -45,11 +45,11 @@ export declare class SellerService extends Service<IOptions> {
|
|
|
45
45
|
/**
|
|
46
46
|
* 対応決済方法区分検索
|
|
47
47
|
*/
|
|
48
|
-
|
|
48
|
+
findSellerPaymentAccepted(params: {
|
|
49
49
|
/**
|
|
50
50
|
* 販売者ID
|
|
51
51
|
*/
|
|
52
|
-
|
|
52
|
+
sellerId: string;
|
|
53
53
|
/**
|
|
54
54
|
* 検索条件
|
|
55
55
|
*/
|
|
@@ -60,18 +60,14 @@ export declare class SellerService extends Service<IOptions> {
|
|
|
60
60
|
$eq?: string;
|
|
61
61
|
};
|
|
62
62
|
};
|
|
63
|
-
}): Promise<IPaymentAccepted[]>;
|
|
64
|
-
|
|
63
|
+
}): Promise<Pick<IPaymentAccepted, 'codeValue'>[]>;
|
|
64
|
+
addSellerPaymentAccepted(params: {
|
|
65
65
|
codeValue: string;
|
|
66
|
-
|
|
67
|
-
id: string;
|
|
68
|
-
};
|
|
66
|
+
sellerId: string;
|
|
69
67
|
}): Promise<void>;
|
|
70
|
-
|
|
68
|
+
deleteSellerPaymentAccepted(params: {
|
|
71
69
|
codeValue: string;
|
|
72
|
-
|
|
73
|
-
id: string;
|
|
74
|
-
};
|
|
70
|
+
sellerId: string;
|
|
75
71
|
}): Promise<void>;
|
|
76
72
|
/**
|
|
77
73
|
* 提供決済サービス検索
|
|
@@ -71,27 +71,29 @@ class SellerService extends service_1.Service {
|
|
|
71
71
|
/**
|
|
72
72
|
* 対応決済方法区分検索
|
|
73
73
|
*/
|
|
74
|
-
async
|
|
74
|
+
async findSellerPaymentAccepted(params) {
|
|
75
|
+
const { sellerId } = params;
|
|
75
76
|
return this.fetch({
|
|
76
|
-
uri: `/sellers/${
|
|
77
|
+
uri: `/sellers/${sellerId}/paymentAccepted`,
|
|
77
78
|
method: 'GET',
|
|
78
79
|
qs: params.qs,
|
|
79
80
|
expectedStatusCodes: [http_status_1.status.OK]
|
|
80
81
|
})
|
|
81
82
|
.then(async (response) => response.json());
|
|
82
83
|
}
|
|
83
|
-
async
|
|
84
|
-
const {
|
|
84
|
+
async addSellerPaymentAccepted(params) {
|
|
85
|
+
const { sellerId, codeValue } = params;
|
|
85
86
|
await this.fetch({
|
|
86
|
-
uri: `/sellers/${
|
|
87
|
+
uri: `/sellers/${sellerId}/paymentAccepted`,
|
|
87
88
|
method: 'POST',
|
|
88
|
-
body,
|
|
89
|
+
body: { codeValue },
|
|
89
90
|
expectedStatusCodes: [http_status_1.status.NO_CONTENT]
|
|
90
91
|
});
|
|
91
92
|
}
|
|
92
|
-
async
|
|
93
|
+
async deleteSellerPaymentAccepted(params) {
|
|
94
|
+
const { sellerId, codeValue } = params;
|
|
93
95
|
await this.fetch({
|
|
94
|
-
uri: `/sellers/${
|
|
96
|
+
uri: `/sellers/${sellerId}/paymentAccepted/${codeValue}`,
|
|
95
97
|
method: 'DELETE',
|
|
96
98
|
expectedStatusCodes: [http_status_1.status.NO_CONTENT]
|
|
97
99
|
});
|
|
@@ -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 {
|
|
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
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
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
|
-
|
|
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
|
|
151
|
-
(function (
|
|
152
|
-
|
|
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
|
|
466
|
-
if (service.
|
|
467
|
-
service.
|
|
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.
|
|
466
|
+
return new service.POS.svc({ ...this.options, ...params, retryableStatusCodes: [] });
|
|
470
467
|
}
|
|
471
468
|
async createPriceSpecificationInstance(params) {
|
|
472
469
|
if (service.PriceSpecification.svc === undefined) {
|
|
@@ -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:
|
|
12
|
-
data:
|
|
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({
|