@cinerino/sdk 12.12.0-alpha.2 → 12.12.0-alpha.3
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/default/findSectionsByRoom.ts +40 -0
- package/example/src/{findSeats.ts → cloud/search/findSeatsBySection.ts} +8 -14
- package/example/src/cloud/search/findSectionsByRoom.ts +33 -0
- package/lib/abstract/chevre/place.d.ts +19 -0
- package/lib/abstract/chevre/place.js +22 -0
- package/lib/abstract/cinerino/service/place.d.ts +0 -26
- package/lib/abstract/cinerino/service/place.js +0 -21
- package/lib/abstract/cloud/search/place.d.ts +51 -0
- package/lib/abstract/cloud/search/place.js +109 -0
- package/lib/abstract/cloud/search.d.ts +18 -4
- package/lib/abstract/cloud/search.js +45 -20
- package/lib/bundle.js +565 -428
- package/package.json +1 -1
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// tslint:disable:no-implicit-dependencies no-console
|
|
2
|
+
// import * as moment from 'moment';
|
|
3
|
+
|
|
4
|
+
import * as client from '../../../../lib/index';
|
|
5
|
+
|
|
6
|
+
const PROJECT_ID = String(process.env.PROJECT_ID);
|
|
7
|
+
const SELLER_ID = '59d20831e53ebc2b4e774466';
|
|
8
|
+
|
|
9
|
+
async function main() {
|
|
10
|
+
const authClient = await client.auth.ClientCredentials.createInstance({
|
|
11
|
+
domain: <string>process.env.CHEVRE_AUTHORIZE_SERVER_DOMAIN,
|
|
12
|
+
clientId: <string>process.env.CHEVRE_CLIENT_ID,
|
|
13
|
+
clientSecret: <string>process.env.CHEVRE_CLIENT_SECRET,
|
|
14
|
+
scopes: [],
|
|
15
|
+
state: ''
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
const placeService = await (await client.loadChevre({
|
|
19
|
+
endpoint: <string>process.env.CHEVRE_ENDPOINT,
|
|
20
|
+
auth: authClient
|
|
21
|
+
})).createPlaceInstance({
|
|
22
|
+
project: { id: PROJECT_ID },
|
|
23
|
+
seller: { id: SELLER_ID }
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
const result = await placeService.findSectionsByRoom({
|
|
27
|
+
limit: 100,
|
|
28
|
+
page: 1,
|
|
29
|
+
movieTheaterCode: '118',
|
|
30
|
+
roomCode: '100'
|
|
31
|
+
});
|
|
32
|
+
// tslint:disable-next-line:no-null-keyword
|
|
33
|
+
console.dir(result, { depth: null });
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
main()
|
|
37
|
+
.then(() => {
|
|
38
|
+
console.log('success!');
|
|
39
|
+
})
|
|
40
|
+
.catch(console.error);
|
|
@@ -1,27 +1,21 @@
|
|
|
1
1
|
// tslint:disable:no-console
|
|
2
2
|
// tslint:disable-next-line:no-implicit-dependencies
|
|
3
|
-
import
|
|
3
|
+
import { loadCloudSearch } from '../../../../lib/index';
|
|
4
|
+
import { auth } from '../../auth/clientCredentials';
|
|
4
5
|
|
|
5
|
-
const
|
|
6
|
+
const PROJECT_ID = String(process.env.PROJECT_ID);
|
|
6
7
|
const SELLER_ID = '59d20831e53ebc2b4e774466';
|
|
7
8
|
|
|
8
9
|
async function main() {
|
|
9
|
-
const
|
|
10
|
-
domain: <string>process.env.TEST_AUTHORIZE_SERVER_DOMAIN,
|
|
11
|
-
clientId: <string>process.env.TEST_CLIENT_ID,
|
|
12
|
-
clientSecret: <string>process.env.TEST_CLIENT_SECRET,
|
|
13
|
-
scopes: [],
|
|
14
|
-
state: ''
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
const placeService = new (await client.loadService()).Place({
|
|
10
|
+
const placeService = await (await loadCloudSearch({
|
|
18
11
|
endpoint: <string>process.env.API_ENDPOINT,
|
|
19
|
-
auth:
|
|
20
|
-
|
|
12
|
+
auth: await auth()
|
|
13
|
+
})).createPlaceInstance({
|
|
14
|
+
project: { id: PROJECT_ID },
|
|
21
15
|
seller: { id: SELLER_ID }
|
|
22
16
|
});
|
|
23
17
|
|
|
24
|
-
const seats = await placeService.
|
|
18
|
+
const seats = await placeService.findSeatsBySection({
|
|
25
19
|
limit: 100,
|
|
26
20
|
page: 1,
|
|
27
21
|
movieTheaterCode: '118',
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// tslint:disable:no-console
|
|
2
|
+
// tslint:disable-next-line:no-implicit-dependencies
|
|
3
|
+
import { loadCloudSearch } from '../../../../lib/index';
|
|
4
|
+
import { auth } from '../../auth/clientCredentials';
|
|
5
|
+
|
|
6
|
+
const PROJECT_ID = String(process.env.PROJECT_ID);
|
|
7
|
+
const SELLER_ID = '59d20831e53ebc2b4e774466';
|
|
8
|
+
|
|
9
|
+
async function main() {
|
|
10
|
+
const placeService = await (await loadCloudSearch({
|
|
11
|
+
endpoint: <string>process.env.API_ENDPOINT,
|
|
12
|
+
auth: await auth()
|
|
13
|
+
})).createPlaceInstance({
|
|
14
|
+
project: { id: PROJECT_ID },
|
|
15
|
+
seller: { id: SELLER_ID }
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
const sections = await placeService.findSectionsByRoom({
|
|
19
|
+
limit: 100,
|
|
20
|
+
page: 1,
|
|
21
|
+
movieTheaterCode: '118',
|
|
22
|
+
roomCode: '100'
|
|
23
|
+
});
|
|
24
|
+
// tslint:disable-next-line:no-null-keyword
|
|
25
|
+
console.dir(sections, { depth: null });
|
|
26
|
+
console.log(sections.length);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
main()
|
|
30
|
+
.then(() => {
|
|
31
|
+
console.log('success!');
|
|
32
|
+
})
|
|
33
|
+
.catch(console.error);
|
|
@@ -32,6 +32,25 @@ export declare class PlaceService extends Service {
|
|
|
32
32
|
searchSeats(params: Omit<factory.place.seat.ISearchConditions, 'project'>): Promise<{
|
|
33
33
|
data: ISeat[];
|
|
34
34
|
}>;
|
|
35
|
+
/**
|
|
36
|
+
* ルーム指定でセクション検索
|
|
37
|
+
* ルーティングによる販売者指定が必須
|
|
38
|
+
*/
|
|
39
|
+
findSectionsByRoom(params: {
|
|
40
|
+
/**
|
|
41
|
+
* max: 100
|
|
42
|
+
*/
|
|
43
|
+
limit: number;
|
|
44
|
+
page: number;
|
|
45
|
+
/**
|
|
46
|
+
* 施設コード
|
|
47
|
+
*/
|
|
48
|
+
movieTheaterCode: string;
|
|
49
|
+
/**
|
|
50
|
+
* ルームコード
|
|
51
|
+
*/
|
|
52
|
+
roomCode: string;
|
|
53
|
+
}): Promise<ISeat[]>;
|
|
35
54
|
/**
|
|
36
55
|
* セクション指定で座席検索
|
|
37
56
|
* ルーティングによる販売者指定が必須
|
|
@@ -175,6 +175,28 @@ var PlaceService = /** @class */ (function (_super) {
|
|
|
175
175
|
});
|
|
176
176
|
});
|
|
177
177
|
};
|
|
178
|
+
/**
|
|
179
|
+
* ルーム指定でセクション検索
|
|
180
|
+
* ルーティングによる販売者指定が必須
|
|
181
|
+
*/
|
|
182
|
+
PlaceService.prototype.findSectionsByRoom = function (params) {
|
|
183
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
184
|
+
var limit, page, movieTheaterCode, roomCode;
|
|
185
|
+
var _this = this;
|
|
186
|
+
return __generator(this, function (_a) {
|
|
187
|
+
limit = params.limit, page = params.page, movieTheaterCode = params.movieTheaterCode, roomCode = params.roomCode;
|
|
188
|
+
return [2 /*return*/, this.fetch({
|
|
189
|
+
uri: '/roomSections',
|
|
190
|
+
method: 'GET',
|
|
191
|
+
qs: { limit: limit, page: page, movieTheaterCode: movieTheaterCode, roomCode: roomCode },
|
|
192
|
+
expectedStatusCodes: [http_status_1.OK]
|
|
193
|
+
})
|
|
194
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
195
|
+
return [2 /*return*/, response.json()];
|
|
196
|
+
}); }); })];
|
|
197
|
+
});
|
|
198
|
+
});
|
|
199
|
+
};
|
|
178
200
|
/**
|
|
179
201
|
* セクション指定で座席検索
|
|
180
202
|
* ルーティングによる販売者指定が必須
|
|
@@ -78,32 +78,6 @@ export declare class PlaceService extends Service {
|
|
|
78
78
|
};
|
|
79
79
|
};
|
|
80
80
|
}): Promise<ISearchResult<ISeat[]>>;
|
|
81
|
-
/**
|
|
82
|
-
* 座席検索
|
|
83
|
-
*/
|
|
84
|
-
findSeatsByRoom(params: {
|
|
85
|
-
/**
|
|
86
|
-
* max: 100
|
|
87
|
-
*/
|
|
88
|
-
limit: number;
|
|
89
|
-
page: number;
|
|
90
|
-
/**
|
|
91
|
-
* 施設コード
|
|
92
|
-
*/
|
|
93
|
-
movieTheaterCode: string;
|
|
94
|
-
/**
|
|
95
|
-
* ルームコード
|
|
96
|
-
*/
|
|
97
|
-
roomCode: string;
|
|
98
|
-
/**
|
|
99
|
-
* セクションコード
|
|
100
|
-
*/
|
|
101
|
-
sectionCode: string;
|
|
102
|
-
/**
|
|
103
|
-
* 座席区分
|
|
104
|
-
*/
|
|
105
|
-
seatingType?: string;
|
|
106
|
-
}): Promise<ISeat[]>;
|
|
107
81
|
/**
|
|
108
82
|
* ターミナル検索
|
|
109
83
|
*/
|
|
@@ -158,27 +158,6 @@ var PlaceService = /** @class */ (function (_super) {
|
|
|
158
158
|
});
|
|
159
159
|
});
|
|
160
160
|
};
|
|
161
|
-
/**
|
|
162
|
-
* 座席検索
|
|
163
|
-
*/
|
|
164
|
-
PlaceService.prototype.findSeatsByRoom = function (params) {
|
|
165
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
166
|
-
var limit, page, movieTheaterCode, roomCode, sectionCode, seatingType;
|
|
167
|
-
var _this = this;
|
|
168
|
-
return __generator(this, function (_a) {
|
|
169
|
-
limit = params.limit, page = params.page, movieTheaterCode = params.movieTheaterCode, roomCode = params.roomCode, sectionCode = params.sectionCode, seatingType = params.seatingType;
|
|
170
|
-
return [2 /*return*/, this.fetch({
|
|
171
|
-
uri: '/seats',
|
|
172
|
-
method: 'GET',
|
|
173
|
-
qs: { limit: limit, page: page, movieTheaterCode: movieTheaterCode, roomCode: roomCode, sectionCode: sectionCode, seatingType: seatingType },
|
|
174
|
-
expectedStatusCodes: [http_status_1.OK]
|
|
175
|
-
})
|
|
176
|
-
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
177
|
-
return [2 /*return*/, response.json()];
|
|
178
|
-
}); }); })];
|
|
179
|
-
});
|
|
180
|
-
});
|
|
181
|
-
};
|
|
182
161
|
/**
|
|
183
162
|
* ターミナル検索
|
|
184
163
|
*/
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import * as factory from '../../factory';
|
|
2
|
+
import { Service } from '../../service';
|
|
3
|
+
/**
|
|
4
|
+
* 施設サービス
|
|
5
|
+
*/
|
|
6
|
+
export declare class PlaceService extends Service {
|
|
7
|
+
/**
|
|
8
|
+
* ルーム指定によるセクション検索
|
|
9
|
+
*/
|
|
10
|
+
findSectionsByRoom(params: {
|
|
11
|
+
/**
|
|
12
|
+
* max: 100
|
|
13
|
+
*/
|
|
14
|
+
limit: number;
|
|
15
|
+
page: number;
|
|
16
|
+
/**
|
|
17
|
+
* 施設コード
|
|
18
|
+
*/
|
|
19
|
+
movieTheaterCode: string;
|
|
20
|
+
/**
|
|
21
|
+
* ルームコード
|
|
22
|
+
*/
|
|
23
|
+
roomCode: string;
|
|
24
|
+
}): Promise<Pick<factory.place.screeningRoomSection.IPlace, 'additionalProperty' | 'branchCode' | 'name'>[]>;
|
|
25
|
+
/**
|
|
26
|
+
* セクション指定による座席検索
|
|
27
|
+
*/
|
|
28
|
+
findSeatsBySection(params: {
|
|
29
|
+
/**
|
|
30
|
+
* max: 100
|
|
31
|
+
*/
|
|
32
|
+
limit: number;
|
|
33
|
+
page: number;
|
|
34
|
+
/**
|
|
35
|
+
* 施設コード
|
|
36
|
+
*/
|
|
37
|
+
movieTheaterCode: string;
|
|
38
|
+
/**
|
|
39
|
+
* ルームコード
|
|
40
|
+
*/
|
|
41
|
+
roomCode: string;
|
|
42
|
+
/**
|
|
43
|
+
* セクションコード
|
|
44
|
+
*/
|
|
45
|
+
sectionCode: string;
|
|
46
|
+
/**
|
|
47
|
+
* 座席区分
|
|
48
|
+
*/
|
|
49
|
+
seatingType?: string;
|
|
50
|
+
}): Promise<Pick<factory.place.seat.IPlace, 'additionalProperty' | 'branchCode' | 'name' | 'seatingType'>[]>;
|
|
51
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
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.PlaceService = void 0;
|
|
55
|
+
var http_status_1 = require("http-status");
|
|
56
|
+
var service_1 = require("../../service");
|
|
57
|
+
/**
|
|
58
|
+
* 施設サービス
|
|
59
|
+
*/
|
|
60
|
+
var PlaceService = /** @class */ (function (_super) {
|
|
61
|
+
__extends(PlaceService, _super);
|
|
62
|
+
function PlaceService() {
|
|
63
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* ルーム指定によるセクション検索
|
|
67
|
+
*/
|
|
68
|
+
PlaceService.prototype.findSectionsByRoom = function (params) {
|
|
69
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
70
|
+
var limit, page, movieTheaterCode, roomCode;
|
|
71
|
+
var _this = this;
|
|
72
|
+
return __generator(this, function (_a) {
|
|
73
|
+
limit = params.limit, page = params.page, movieTheaterCode = params.movieTheaterCode, roomCode = params.roomCode;
|
|
74
|
+
return [2 /*return*/, this.fetch({
|
|
75
|
+
uri: '/roomSections',
|
|
76
|
+
method: 'GET',
|
|
77
|
+
qs: { limit: limit, page: page, movieTheaterCode: movieTheaterCode, roomCode: roomCode },
|
|
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
|
+
/**
|
|
87
|
+
* セクション指定による座席検索
|
|
88
|
+
*/
|
|
89
|
+
PlaceService.prototype.findSeatsBySection = function (params) {
|
|
90
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
91
|
+
var limit, page, movieTheaterCode, roomCode, sectionCode, seatingType;
|
|
92
|
+
var _this = this;
|
|
93
|
+
return __generator(this, function (_a) {
|
|
94
|
+
limit = params.limit, page = params.page, movieTheaterCode = params.movieTheaterCode, roomCode = params.roomCode, sectionCode = params.sectionCode, seatingType = params.seatingType;
|
|
95
|
+
return [2 /*return*/, this.fetch({
|
|
96
|
+
uri: '/seats',
|
|
97
|
+
method: 'GET',
|
|
98
|
+
qs: { limit: limit, page: page, movieTheaterCode: movieTheaterCode, roomCode: roomCode, sectionCode: sectionCode, seatingType: seatingType },
|
|
99
|
+
expectedStatusCodes: [http_status_1.OK]
|
|
100
|
+
})
|
|
101
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
102
|
+
return [2 /*return*/, response.json()];
|
|
103
|
+
}); }); })];
|
|
104
|
+
});
|
|
105
|
+
});
|
|
106
|
+
};
|
|
107
|
+
return PlaceService;
|
|
108
|
+
}(service_1.Service));
|
|
109
|
+
exports.PlaceService = PlaceService;
|
|
@@ -2,6 +2,7 @@ import { IAdditionalOptions, IOptions } from '../service';
|
|
|
2
2
|
import type { CreativeWorkService } from './search/creativeWork';
|
|
3
3
|
import type { EventOfferService } from './search/eventOffer';
|
|
4
4
|
import type { PaymentProductService } from './search/paymentService';
|
|
5
|
+
import type { PlaceService } from './search/place';
|
|
5
6
|
import type { ProductService } from './search/product';
|
|
6
7
|
import type { ProductOfferService } from './search/productOffer';
|
|
7
8
|
/**
|
|
@@ -29,6 +30,13 @@ export declare namespace service {
|
|
|
29
30
|
namespace PaymentProduct {
|
|
30
31
|
let svc: typeof PaymentProductService | undefined;
|
|
31
32
|
}
|
|
33
|
+
/**
|
|
34
|
+
* 施設サービス
|
|
35
|
+
*/
|
|
36
|
+
type Place = PlaceService;
|
|
37
|
+
namespace Place {
|
|
38
|
+
let svc: typeof PlaceService | undefined;
|
|
39
|
+
}
|
|
32
40
|
/**
|
|
33
41
|
* プロダクトサービス
|
|
34
42
|
*/
|
|
@@ -54,10 +62,6 @@ export declare class CloudSearch {
|
|
|
54
62
|
* コンテンツサービスインスタンス生成
|
|
55
63
|
*/
|
|
56
64
|
createCreativeWorkInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<CreativeWorkService>;
|
|
57
|
-
/**
|
|
58
|
-
* イベントオファーサービスインスタンス生成
|
|
59
|
-
*/
|
|
60
|
-
createEventOfferInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<EventOfferService>;
|
|
61
65
|
/**
|
|
62
66
|
* 決済商品サービスインスタンス生成
|
|
63
67
|
*/
|
|
@@ -70,4 +74,14 @@ export declare class CloudSearch {
|
|
|
70
74
|
* プロダクトオファーサービスインスタンス生成
|
|
71
75
|
*/
|
|
72
76
|
createProductOfferInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<ProductOfferService>;
|
|
77
|
+
/**
|
|
78
|
+
* イベントオファーサービスインスタンス生成
|
|
79
|
+
* 販売者指定必須
|
|
80
|
+
*/
|
|
81
|
+
createEventOfferInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<EventOfferService>;
|
|
82
|
+
/**
|
|
83
|
+
* 施設サービスインスタンス生成
|
|
84
|
+
* 販売者指定必須
|
|
85
|
+
*/
|
|
86
|
+
createPlaceInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<PlaceService>;
|
|
73
87
|
}
|
|
@@ -64,6 +64,9 @@ var service;
|
|
|
64
64
|
var PaymentProduct;
|
|
65
65
|
(function (PaymentProduct) {
|
|
66
66
|
})(PaymentProduct = service.PaymentProduct || (service.PaymentProduct = {}));
|
|
67
|
+
var Place;
|
|
68
|
+
(function (Place) {
|
|
69
|
+
})(Place = service.Place || (service.Place = {}));
|
|
67
70
|
var Product;
|
|
68
71
|
(function (Product) {
|
|
69
72
|
})(Product = service.Product || (service.Product = {}));
|
|
@@ -99,26 +102,6 @@ var CloudSearch = /** @class */ (function () {
|
|
|
99
102
|
});
|
|
100
103
|
});
|
|
101
104
|
};
|
|
102
|
-
/**
|
|
103
|
-
* イベントオファーサービスインスタンス生成
|
|
104
|
-
*/
|
|
105
|
-
CloudSearch.prototype.createEventOfferInstance = function (params) {
|
|
106
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
107
|
-
var _a;
|
|
108
|
-
return __generator(this, function (_b) {
|
|
109
|
-
switch (_b.label) {
|
|
110
|
-
case 0:
|
|
111
|
-
if (!(service.EventOffer.svc === undefined)) return [3 /*break*/, 2];
|
|
112
|
-
_a = service.EventOffer;
|
|
113
|
-
return [4 /*yield*/, Promise.resolve().then(function () { return require('./search/eventOffer'); })];
|
|
114
|
-
case 1:
|
|
115
|
-
_a.svc = (_b.sent()).EventOfferService;
|
|
116
|
-
_b.label = 2;
|
|
117
|
-
case 2: return [2 /*return*/, new service.EventOffer.svc(__assign(__assign(__assign({}, this.options), params), { retryableStatusCodes: defaultRetryableStatusCodes }))];
|
|
118
|
-
}
|
|
119
|
-
});
|
|
120
|
-
});
|
|
121
|
-
};
|
|
122
105
|
/**
|
|
123
106
|
* 決済商品サービスインスタンス生成
|
|
124
107
|
*/
|
|
@@ -179,6 +162,48 @@ var CloudSearch = /** @class */ (function () {
|
|
|
179
162
|
});
|
|
180
163
|
});
|
|
181
164
|
};
|
|
165
|
+
/**
|
|
166
|
+
* イベントオファーサービスインスタンス生成
|
|
167
|
+
* 販売者指定必須
|
|
168
|
+
*/
|
|
169
|
+
CloudSearch.prototype.createEventOfferInstance = function (params) {
|
|
170
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
171
|
+
var _a;
|
|
172
|
+
return __generator(this, function (_b) {
|
|
173
|
+
switch (_b.label) {
|
|
174
|
+
case 0:
|
|
175
|
+
if (!(service.EventOffer.svc === undefined)) return [3 /*break*/, 2];
|
|
176
|
+
_a = service.EventOffer;
|
|
177
|
+
return [4 /*yield*/, Promise.resolve().then(function () { return require('./search/eventOffer'); })];
|
|
178
|
+
case 1:
|
|
179
|
+
_a.svc = (_b.sent()).EventOfferService;
|
|
180
|
+
_b.label = 2;
|
|
181
|
+
case 2: return [2 /*return*/, new service.EventOffer.svc(__assign(__assign(__assign({}, this.options), params), { retryableStatusCodes: defaultRetryableStatusCodes }))];
|
|
182
|
+
}
|
|
183
|
+
});
|
|
184
|
+
});
|
|
185
|
+
};
|
|
186
|
+
/**
|
|
187
|
+
* 施設サービスインスタンス生成
|
|
188
|
+
* 販売者指定必須
|
|
189
|
+
*/
|
|
190
|
+
CloudSearch.prototype.createPlaceInstance = function (params) {
|
|
191
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
192
|
+
var _a;
|
|
193
|
+
return __generator(this, function (_b) {
|
|
194
|
+
switch (_b.label) {
|
|
195
|
+
case 0:
|
|
196
|
+
if (!(service.Place.svc === undefined)) return [3 /*break*/, 2];
|
|
197
|
+
_a = service.Place;
|
|
198
|
+
return [4 /*yield*/, Promise.resolve().then(function () { return require('./search/place'); })];
|
|
199
|
+
case 1:
|
|
200
|
+
_a.svc = (_b.sent()).PlaceService;
|
|
201
|
+
_b.label = 2;
|
|
202
|
+
case 2: return [2 /*return*/, new service.Place.svc(__assign(__assign(__assign({}, this.options), params), { retryableStatusCodes: defaultRetryableStatusCodes }))];
|
|
203
|
+
}
|
|
204
|
+
});
|
|
205
|
+
});
|
|
206
|
+
};
|
|
182
207
|
return CloudSearch;
|
|
183
208
|
}());
|
|
184
209
|
exports.CloudSearch = CloudSearch;
|