@cinerino/sdk 12.12.0-alpha.4 → 12.12.0-alpha.6
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/example/src/chevre/{searchEventSeats.ts → default/findEventSeatOffersBySection.ts} +14 -15
- package/lib/abstract/chevre/event.d.ts +5 -2
- package/lib/abstract/chevre/event.js +16 -3
- package/lib/abstract/chevre/place.d.ts +0 -6
- package/lib/abstract/chevre/place.js +0 -28
- package/lib/abstract/chevre/seatOffer.d.ts +41 -0
- package/lib/abstract/chevre/seatOffer.js +88 -0
- package/lib/abstract/chevre.d.ts +9 -0
- package/lib/abstract/chevre.js +20 -0
- package/lib/abstract/cinerino/service/event.d.ts +2 -0
- package/lib/abstract/cinerino/service/event.js +4 -3
- package/lib/abstract/cinerino/service/place.d.ts +1 -51
- package/lib/abstract/cinerino/service/place.js +0 -56
- package/lib/bundle.js +777 -737
- package/package.json +1 -1
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
// tslint:disable:no-implicit-dependencies no-console
|
|
2
|
-
import * as client from '../../../lib/index';
|
|
3
2
|
|
|
4
|
-
|
|
3
|
+
import * as client from '../../../../lib/index';
|
|
4
|
+
|
|
5
|
+
const { PROJECT_ID } = process.env;
|
|
6
|
+
const SELLER_ID = '59d20831e53ebc2b4e774466';
|
|
5
7
|
|
|
6
8
|
async function main() {
|
|
7
9
|
const authClient = await client.auth.ClientCredentials.createInstance({
|
|
@@ -12,25 +14,22 @@ async function main() {
|
|
|
12
14
|
state: ''
|
|
13
15
|
});
|
|
14
16
|
|
|
15
|
-
const
|
|
17
|
+
const seatOfferService = await (await client.loadChevre({
|
|
16
18
|
endpoint: <string>process.env.CHEVRE_ENDPOINT,
|
|
17
19
|
auth: authClient
|
|
20
|
+
})).createSeatOfferInstance({
|
|
21
|
+
project: { id: String(PROJECT_ID) },
|
|
22
|
+
seller: { id: SELLER_ID }
|
|
18
23
|
});
|
|
19
24
|
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
seller: { id: '' }
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
const result = await eventService.searchSeats({
|
|
26
|
-
id: 'bm2bfj55r',
|
|
25
|
+
const result = await seatOfferService.findEventSeatOffersBySection({
|
|
26
|
+
limit: 10,
|
|
27
27
|
page: 1,
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
eventId: '691ed47f249a02f4f078a2d6',
|
|
29
|
+
sectionCode: 'Default02'
|
|
30
30
|
});
|
|
31
|
-
|
|
32
|
-
console.
|
|
33
|
-
console.log(result.length, 'events returned');
|
|
31
|
+
console.log(result);
|
|
32
|
+
console.log(result.length, 'offers returned');
|
|
34
33
|
}
|
|
35
34
|
|
|
36
35
|
main()
|
|
@@ -63,10 +63,13 @@ export declare class EventService extends Service {
|
|
|
63
63
|
}): Promise<Omit<factory.product.ITicketOffer, 'priceCurrency'>[]>;
|
|
64
64
|
/**
|
|
65
65
|
* イベントに対する座席検索
|
|
66
|
+
* @deprecated use find seatOffers
|
|
66
67
|
*/
|
|
67
|
-
|
|
68
|
+
findSeatOffersDeprecated(params: {
|
|
68
69
|
id: string;
|
|
69
|
-
} & Pick<factory.place.seat.ISearchConditions, 'additionalProperty' | 'branchCode' | 'containedInPlace' | 'limit' | 'name' | 'page' | 'parentOrganization' | 'seatingType' | 'sort'
|
|
70
|
+
} & Pick<factory.place.seat.ISearchConditions, 'additionalProperty' | 'branchCode' | 'containedInPlace' | 'limit' | 'name' | 'page' | 'parentOrganization' | 'seatingType' | 'sort'>, options: {
|
|
71
|
+
useDefaultSection: boolean;
|
|
72
|
+
}): Promise<ISeatAsEventOffer[]>;
|
|
70
73
|
/**
|
|
71
74
|
* オファーで利用可能な適用決済カード条件を検索する
|
|
72
75
|
*/
|
|
@@ -14,6 +14,17 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
14
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
15
|
};
|
|
16
16
|
})();
|
|
17
|
+
var __assign = (this && this.__assign) || function () {
|
|
18
|
+
__assign = Object.assign || function(t) {
|
|
19
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
20
|
+
s = arguments[i];
|
|
21
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
22
|
+
t[p] = s[p];
|
|
23
|
+
}
|
|
24
|
+
return t;
|
|
25
|
+
};
|
|
26
|
+
return __assign.apply(this, arguments);
|
|
27
|
+
};
|
|
17
28
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
18
29
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
19
30
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -161,17 +172,19 @@ var EventService = /** @class */ (function (_super) {
|
|
|
161
172
|
};
|
|
162
173
|
/**
|
|
163
174
|
* イベントに対する座席検索
|
|
175
|
+
* @deprecated use find seatOffers
|
|
164
176
|
*/
|
|
165
|
-
EventService.prototype.
|
|
177
|
+
EventService.prototype.findSeatOffersDeprecated = function (params, options) {
|
|
166
178
|
return __awaiter(this, void 0, void 0, function () {
|
|
167
|
-
var id, query;
|
|
179
|
+
var id, query, useDefaultSection;
|
|
168
180
|
var _this = this;
|
|
169
181
|
return __generator(this, function (_a) {
|
|
170
182
|
id = params.id, query = __rest(params, ["id"]);
|
|
183
|
+
useDefaultSection = options.useDefaultSection;
|
|
171
184
|
return [2 /*return*/, this.fetch({
|
|
172
185
|
uri: "/events/" + encodeURIComponent(String(id)) + "/seats",
|
|
173
186
|
method: 'GET',
|
|
174
|
-
qs: query,
|
|
187
|
+
qs: __assign(__assign({}, query), { useDefaultSection: useDefaultSection }),
|
|
175
188
|
expectedStatusCodes: [http_status_1.OK]
|
|
176
189
|
})
|
|
177
190
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
@@ -26,12 +26,6 @@ export declare class PlaceService extends Service {
|
|
|
26
26
|
searchScreeningRoomSections(params: Omit<factory.place.screeningRoomSection.ISearchConditions, 'project'>): Promise<{
|
|
27
27
|
data: IScreeningRoomSection[];
|
|
28
28
|
}>;
|
|
29
|
-
/**
|
|
30
|
-
* 座席検索
|
|
31
|
-
*/
|
|
32
|
-
searchSeats(params: Omit<factory.place.seat.ISearchConditions, 'project'>): Promise<{
|
|
33
|
-
data: ISeat[];
|
|
34
|
-
}>;
|
|
35
29
|
/**
|
|
36
30
|
* ルーム指定でセクション検索
|
|
37
31
|
* ルーティングによる販売者指定が必須
|
|
@@ -147,34 +147,6 @@ var PlaceService = /** @class */ (function (_super) {
|
|
|
147
147
|
});
|
|
148
148
|
});
|
|
149
149
|
};
|
|
150
|
-
/**
|
|
151
|
-
* 座席検索
|
|
152
|
-
*/
|
|
153
|
-
PlaceService.prototype.searchSeats = function (params) {
|
|
154
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
155
|
-
var _this = this;
|
|
156
|
-
return __generator(this, function (_a) {
|
|
157
|
-
return [2 /*return*/, this.fetch({
|
|
158
|
-
uri: "/places/" + factory.placeType.Seat,
|
|
159
|
-
method: 'GET',
|
|
160
|
-
qs: params,
|
|
161
|
-
expectedStatusCodes: [http_status_1.OK]
|
|
162
|
-
})
|
|
163
|
-
.then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
164
|
-
var _a;
|
|
165
|
-
return __generator(this, function (_b) {
|
|
166
|
-
switch (_b.label) {
|
|
167
|
-
case 0:
|
|
168
|
-
_a = {};
|
|
169
|
-
return [4 /*yield*/, response.json()];
|
|
170
|
-
case 1: return [2 /*return*/, (_a.data = _b.sent(),
|
|
171
|
-
_a)];
|
|
172
|
-
}
|
|
173
|
-
});
|
|
174
|
-
}); })];
|
|
175
|
-
});
|
|
176
|
-
});
|
|
177
|
-
};
|
|
178
150
|
/**
|
|
179
151
|
* ルーム指定でセクション検索
|
|
180
152
|
* ルーティングによる販売者指定が必須
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import * as factory from '../factory';
|
|
2
|
+
import { Service } from '../service';
|
|
3
|
+
/**
|
|
4
|
+
* 座席オファー
|
|
5
|
+
*/
|
|
6
|
+
interface ISeatOfferBySection {
|
|
7
|
+
/**
|
|
8
|
+
* 在庫状態
|
|
9
|
+
*/
|
|
10
|
+
availability: factory.itemAvailability.InStock | factory.itemAvailability.OutOfStock;
|
|
11
|
+
itemOffered: {
|
|
12
|
+
/**
|
|
13
|
+
* 座席コード
|
|
14
|
+
*/
|
|
15
|
+
branchCode: string;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* 座席オファーサービス
|
|
20
|
+
*/
|
|
21
|
+
export declare class SeatOfferService extends Service {
|
|
22
|
+
/**
|
|
23
|
+
* イベントとセクション指定で座席在庫検索
|
|
24
|
+
*/
|
|
25
|
+
findEventSeatOffersBySection(params: {
|
|
26
|
+
/**
|
|
27
|
+
* max: 100
|
|
28
|
+
*/
|
|
29
|
+
limit: number;
|
|
30
|
+
page: number;
|
|
31
|
+
/**
|
|
32
|
+
* イベントID
|
|
33
|
+
*/
|
|
34
|
+
eventId: string;
|
|
35
|
+
/**
|
|
36
|
+
* セクションコード
|
|
37
|
+
*/
|
|
38
|
+
sectionCode: string;
|
|
39
|
+
}): Promise<ISeatOfferBySection[]>;
|
|
40
|
+
}
|
|
41
|
+
export {};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
18
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
19
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
20
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
21
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
22
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
23
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
27
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
28
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
29
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
30
|
+
function step(op) {
|
|
31
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
32
|
+
while (_) try {
|
|
33
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
34
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
35
|
+
switch (op[0]) {
|
|
36
|
+
case 0: case 1: t = op; break;
|
|
37
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
38
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
39
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
40
|
+
default:
|
|
41
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
42
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
43
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
44
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
45
|
+
if (t[2]) _.ops.pop();
|
|
46
|
+
_.trys.pop(); continue;
|
|
47
|
+
}
|
|
48
|
+
op = body.call(thisArg, _);
|
|
49
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
50
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
|
+
exports.SeatOfferService = void 0;
|
|
55
|
+
var http_status_1 = require("http-status");
|
|
56
|
+
var service_1 = require("../service");
|
|
57
|
+
/**
|
|
58
|
+
* 座席オファーサービス
|
|
59
|
+
*/
|
|
60
|
+
var SeatOfferService = /** @class */ (function (_super) {
|
|
61
|
+
__extends(SeatOfferService, _super);
|
|
62
|
+
function SeatOfferService() {
|
|
63
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* イベントとセクション指定で座席在庫検索
|
|
67
|
+
*/
|
|
68
|
+
SeatOfferService.prototype.findEventSeatOffersBySection = function (params) {
|
|
69
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
70
|
+
var limit, page, eventId, sectionCode;
|
|
71
|
+
var _this = this;
|
|
72
|
+
return __generator(this, function (_a) {
|
|
73
|
+
limit = params.limit, page = params.page, eventId = params.eventId, sectionCode = params.sectionCode;
|
|
74
|
+
return [2 /*return*/, this.fetch({
|
|
75
|
+
uri: '/seatOffers',
|
|
76
|
+
method: 'GET',
|
|
77
|
+
qs: { limit: limit, page: page, eventId: eventId, sectionCode: sectionCode },
|
|
78
|
+
expectedStatusCodes: [http_status_1.OK]
|
|
79
|
+
})
|
|
80
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
81
|
+
return [2 /*return*/, response.json()];
|
|
82
|
+
}); }); })];
|
|
83
|
+
});
|
|
84
|
+
});
|
|
85
|
+
};
|
|
86
|
+
return SeatOfferService;
|
|
87
|
+
}(service_1.Service));
|
|
88
|
+
exports.SeatOfferService = SeatOfferService;
|
package/lib/abstract/chevre.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ import type { PlaceService } from './chevre/place';
|
|
|
11
11
|
import type { HasPOSService } from './chevre/place/hasPOS';
|
|
12
12
|
import type { ProductService } from './chevre/product';
|
|
13
13
|
import type { ProductOfferService } from './chevre/productOffer';
|
|
14
|
+
import type { SeatOfferService } from './chevre/seatOffer';
|
|
14
15
|
import type { SellerService } from './chevre/seller';
|
|
15
16
|
import type { TripService } from './chevre/trip';
|
|
16
17
|
export declare namespace service {
|
|
@@ -101,6 +102,13 @@ export declare namespace service {
|
|
|
101
102
|
namespace ProductOffer {
|
|
102
103
|
let svc: typeof ProductOfferService | undefined;
|
|
103
104
|
}
|
|
105
|
+
/**
|
|
106
|
+
* 座席オファーサービス
|
|
107
|
+
*/
|
|
108
|
+
type SeatOffer = SeatOfferService;
|
|
109
|
+
namespace SeatOffer {
|
|
110
|
+
let svc: typeof SeatOfferService | undefined;
|
|
111
|
+
}
|
|
104
112
|
/**
|
|
105
113
|
* 販売者サービス
|
|
106
114
|
*/
|
|
@@ -134,6 +142,7 @@ export declare class Chevre {
|
|
|
134
142
|
createHasPOSInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<HasPOSService>;
|
|
135
143
|
createProductInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<ProductService>;
|
|
136
144
|
createProductOfferInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<ProductOfferService>;
|
|
145
|
+
createSeatOfferInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<SeatOfferService>;
|
|
137
146
|
createSellerInstance(params: Pick<IOptions, 'project'>): Promise<SellerService>;
|
|
138
147
|
createTripInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<TripService>;
|
|
139
148
|
}
|
package/lib/abstract/chevre.js
CHANGED
|
@@ -89,6 +89,9 @@ var service;
|
|
|
89
89
|
var ProductOffer;
|
|
90
90
|
(function (ProductOffer) {
|
|
91
91
|
})(ProductOffer = service.ProductOffer || (service.ProductOffer = {}));
|
|
92
|
+
var SeatOffer;
|
|
93
|
+
(function (SeatOffer) {
|
|
94
|
+
})(SeatOffer = service.SeatOffer || (service.SeatOffer = {}));
|
|
92
95
|
var Seller;
|
|
93
96
|
(function (Seller) {
|
|
94
97
|
})(Seller = service.Seller || (service.Seller = {}));
|
|
@@ -307,6 +310,23 @@ var Chevre = /** @class */ (function () {
|
|
|
307
310
|
});
|
|
308
311
|
});
|
|
309
312
|
};
|
|
313
|
+
Chevre.prototype.createSeatOfferInstance = function (params) {
|
|
314
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
315
|
+
var _a;
|
|
316
|
+
return __generator(this, function (_b) {
|
|
317
|
+
switch (_b.label) {
|
|
318
|
+
case 0:
|
|
319
|
+
if (!(service.SeatOffer.svc === undefined)) return [3 /*break*/, 2];
|
|
320
|
+
_a = service.SeatOffer;
|
|
321
|
+
return [4 /*yield*/, Promise.resolve().then(function () { return require('./chevre/seatOffer'); })];
|
|
322
|
+
case 1:
|
|
323
|
+
_a.svc = (_b.sent()).SeatOfferService;
|
|
324
|
+
_b.label = 2;
|
|
325
|
+
case 2: return [2 /*return*/, new service.SeatOffer.svc(__assign(__assign(__assign({}, this.options), params), { retryableStatusCodes: [] }))];
|
|
326
|
+
}
|
|
327
|
+
});
|
|
328
|
+
});
|
|
329
|
+
};
|
|
310
330
|
Chevre.prototype.createSellerInstance = function (params) {
|
|
311
331
|
return __awaiter(this, void 0, void 0, function () {
|
|
312
332
|
var _a;
|
|
@@ -217,16 +217,17 @@ var EventService = /** @class */ (function (_super) {
|
|
|
217
217
|
/**
|
|
218
218
|
* イベントに対する座席検索
|
|
219
219
|
*/
|
|
220
|
-
EventService.prototype.searchSeats = function (params) {
|
|
220
|
+
EventService.prototype.searchSeats = function (params, options) {
|
|
221
221
|
return __awaiter(this, void 0, void 0, function () {
|
|
222
|
-
var event, query;
|
|
222
|
+
var event, query, useDefaultSection;
|
|
223
223
|
var _this = this;
|
|
224
224
|
return __generator(this, function (_a) {
|
|
225
225
|
event = params.event, query = __rest(params, ["event"]);
|
|
226
|
+
useDefaultSection = (options === null || options === void 0 ? void 0 : options.useDefaultSection) === true;
|
|
226
227
|
return [2 /*return*/, this.fetch({
|
|
227
228
|
uri: "/events/" + encodeURIComponent(String(event.id)) + "/seats",
|
|
228
229
|
method: 'GET',
|
|
229
|
-
qs: query,
|
|
230
|
+
qs: __assign(__assign({}, query), { useDefaultSection: useDefaultSection }),
|
|
230
231
|
expectedStatusCodes: [http_status_1.OK]
|
|
231
232
|
})
|
|
232
233
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IScreeningRoom
|
|
1
|
+
import { IScreeningRoom } from '../../chevre/place';
|
|
2
2
|
import * as factory from '../../factory';
|
|
3
3
|
import { IAdditionalOptions, IOptions, ISearchResult, Service } from '../../service';
|
|
4
4
|
/**
|
|
@@ -34,54 +34,4 @@ export declare class PlaceService extends Service {
|
|
|
34
34
|
};
|
|
35
35
|
};
|
|
36
36
|
}): Promise<ISearchResult<IScreeningRoom[]>>;
|
|
37
|
-
/**
|
|
38
|
-
* 座席検索
|
|
39
|
-
*/
|
|
40
|
-
searchSeats(params: {
|
|
41
|
-
limit?: number;
|
|
42
|
-
page?: number;
|
|
43
|
-
/**
|
|
44
|
-
* 座席コード
|
|
45
|
-
*/
|
|
46
|
-
branchCode?: {
|
|
47
|
-
$eq?: string;
|
|
48
|
-
/**
|
|
49
|
-
* max: 10
|
|
50
|
-
*/
|
|
51
|
-
$in?: string[];
|
|
52
|
-
};
|
|
53
|
-
/**
|
|
54
|
-
* セクション条件
|
|
55
|
-
*/
|
|
56
|
-
containedInPlace?: {
|
|
57
|
-
branchCode?: {
|
|
58
|
-
/**
|
|
59
|
-
* max: 10
|
|
60
|
-
*/
|
|
61
|
-
$in?: string[];
|
|
62
|
-
};
|
|
63
|
-
/**
|
|
64
|
-
* ルーム条件
|
|
65
|
-
*/
|
|
66
|
-
containedInPlace?: {
|
|
67
|
-
/**
|
|
68
|
-
* 施設条件
|
|
69
|
-
*/
|
|
70
|
-
containedInPlace?: {
|
|
71
|
-
/**
|
|
72
|
-
* 施設コード
|
|
73
|
-
*/
|
|
74
|
-
branchCode?: {
|
|
75
|
-
$eq?: string;
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
|
-
};
|
|
80
|
-
}): Promise<ISearchResult<ISeat[]>>;
|
|
81
|
-
/**
|
|
82
|
-
* ターミナル検索
|
|
83
|
-
*/
|
|
84
|
-
searchBusStops(params: Omit<factory.place.busStop.ISearchConditions, 'project'>): Promise<{
|
|
85
|
-
data: factory.place.busStop.IPlace[];
|
|
86
|
-
}>;
|
|
87
37
|
}
|
|
@@ -130,62 +130,6 @@ var PlaceService = /** @class */ (function (_super) {
|
|
|
130
130
|
});
|
|
131
131
|
});
|
|
132
132
|
};
|
|
133
|
-
/**
|
|
134
|
-
* 座席検索
|
|
135
|
-
*/
|
|
136
|
-
PlaceService.prototype.searchSeats = function (params) {
|
|
137
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
138
|
-
var _this = this;
|
|
139
|
-
return __generator(this, function (_a) {
|
|
140
|
-
return [2 /*return*/, this.fetch({
|
|
141
|
-
uri: "/places/" + factory.placeType.Seat,
|
|
142
|
-
method: 'GET',
|
|
143
|
-
qs: params,
|
|
144
|
-
expectedStatusCodes: [http_status_1.OK]
|
|
145
|
-
})
|
|
146
|
-
.then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
147
|
-
var _a;
|
|
148
|
-
return __generator(this, function (_b) {
|
|
149
|
-
switch (_b.label) {
|
|
150
|
-
case 0:
|
|
151
|
-
_a = {};
|
|
152
|
-
return [4 /*yield*/, response.json()];
|
|
153
|
-
case 1: return [2 /*return*/, (_a.data = _b.sent(),
|
|
154
|
-
_a)];
|
|
155
|
-
}
|
|
156
|
-
});
|
|
157
|
-
}); })];
|
|
158
|
-
});
|
|
159
|
-
});
|
|
160
|
-
};
|
|
161
|
-
/**
|
|
162
|
-
* ターミナル検索
|
|
163
|
-
*/
|
|
164
|
-
PlaceService.prototype.searchBusStops = function (params) {
|
|
165
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
166
|
-
var _this = this;
|
|
167
|
-
return __generator(this, function (_a) {
|
|
168
|
-
return [2 /*return*/, this.fetch({
|
|
169
|
-
uri: "/places/" + factory.placeType.BusStop,
|
|
170
|
-
method: 'GET',
|
|
171
|
-
qs: params,
|
|
172
|
-
expectedStatusCodes: [http_status_1.OK]
|
|
173
|
-
})
|
|
174
|
-
.then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
175
|
-
var _a;
|
|
176
|
-
return __generator(this, function (_b) {
|
|
177
|
-
switch (_b.label) {
|
|
178
|
-
case 0:
|
|
179
|
-
_a = {};
|
|
180
|
-
return [4 /*yield*/, response.json()];
|
|
181
|
-
case 1: return [2 /*return*/, (_a.data = _b.sent(),
|
|
182
|
-
_a)];
|
|
183
|
-
}
|
|
184
|
-
});
|
|
185
|
-
}); })];
|
|
186
|
-
});
|
|
187
|
-
});
|
|
188
|
-
};
|
|
189
133
|
return PlaceService;
|
|
190
134
|
}(service_1.Service));
|
|
191
135
|
exports.PlaceService = PlaceService;
|