@cinerino/sdk 3.33.0-alpha.3 → 3.33.0-alpha.4
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/transaction/processPlaceOrderByAnonymousCreditCard.ts +0 -47
- package/example/src/transaction/processPlaceOrderByAnonymousCreditCardAndMembership.ts +0 -11
- package/example/src/transaction/processPlaceOrderByAnonymousCreditCardAndMyMembership.ts +0 -11
- package/lib/bundle.js +46 -85
- package/package.json +2 -2
|
@@ -221,53 +221,6 @@ async function main() {
|
|
|
221
221
|
potentialActions: {
|
|
222
222
|
sendOrder: {
|
|
223
223
|
potentialActions: {
|
|
224
|
-
confirmReservation: authorizeSeatReservationResults.map((result) => {
|
|
225
|
-
return {
|
|
226
|
-
object: {
|
|
227
|
-
typeOf: result.responseBody.typeOf,
|
|
228
|
-
id: result.responseBody.id,
|
|
229
|
-
object: {
|
|
230
|
-
reservations: (Array.isArray(result.responseBody.object.subReservation))
|
|
231
|
-
? result.responseBody.object.subReservation.map((r) => {
|
|
232
|
-
return {
|
|
233
|
-
additionalTicketText: 'Custom Additional Ticket Text',
|
|
234
|
-
id: r.id,
|
|
235
|
-
reservedTicket: {
|
|
236
|
-
issuedBy: {
|
|
237
|
-
typeOf: seller.typeOf,
|
|
238
|
-
name: String((<client.factory.multilingualString>seller.name).ja)
|
|
239
|
-
},
|
|
240
|
-
ticketToken: 'Custom Ticket Token'
|
|
241
|
-
},
|
|
242
|
-
underName: {
|
|
243
|
-
typeOf: transaction.agent.typeOf,
|
|
244
|
-
id: transaction.agent.id,
|
|
245
|
-
name: 'Custom Name',
|
|
246
|
-
familyName: 'Custom Family Name',
|
|
247
|
-
givenName: 'Custom Given Name',
|
|
248
|
-
email: 'custom@example.com',
|
|
249
|
-
telephone: '+819012345678',
|
|
250
|
-
identifier: [
|
|
251
|
-
{ name: 'transaction', value: transaction.id },
|
|
252
|
-
{ name: 'customName', value: 'Custom NameValue' }
|
|
253
|
-
]
|
|
254
|
-
}
|
|
255
|
-
};
|
|
256
|
-
})
|
|
257
|
-
: []
|
|
258
|
-
},
|
|
259
|
-
potentialActions: {
|
|
260
|
-
reserve: {
|
|
261
|
-
potentialActions: {
|
|
262
|
-
informReservation: [
|
|
263
|
-
// { recipient: { url: informUrl } }
|
|
264
|
-
]
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
};
|
|
270
|
-
}),
|
|
271
224
|
sendEmailMessage: [
|
|
272
225
|
{
|
|
273
226
|
object: email
|
|
@@ -212,17 +212,6 @@ async function main() {
|
|
|
212
212
|
potentialActions: {
|
|
213
213
|
sendOrder: {
|
|
214
214
|
potentialActions: {
|
|
215
|
-
confirmReservation: authorizeSeatReservationResults.map((result) => {
|
|
216
|
-
return {
|
|
217
|
-
object: {
|
|
218
|
-
typeOf: result.responseBody.typeOf,
|
|
219
|
-
id: result.responseBody.id,
|
|
220
|
-
object: {
|
|
221
|
-
reservations: []
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
};
|
|
225
|
-
}),
|
|
226
215
|
sendEmailMessage: [
|
|
227
216
|
{
|
|
228
217
|
object: email
|
|
@@ -228,17 +228,6 @@ async function main() {
|
|
|
228
228
|
potentialActions: {
|
|
229
229
|
sendOrder: {
|
|
230
230
|
potentialActions: {
|
|
231
|
-
confirmReservation: authorizeSeatReservationResults.map((result) => {
|
|
232
|
-
return {
|
|
233
|
-
object: {
|
|
234
|
-
typeOf: result.responseBody.typeOf,
|
|
235
|
-
id: result.responseBody.id,
|
|
236
|
-
object: {
|
|
237
|
-
reservations: []
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
};
|
|
241
|
-
}),
|
|
242
231
|
sendEmailMessage: [
|
|
243
232
|
{
|
|
244
233
|
object: email
|
package/lib/bundle.js
CHANGED
|
@@ -3794,7 +3794,7 @@ var service;
|
|
|
3794
3794
|
}(authorization_1.AuthorizationService));
|
|
3795
3795
|
service.Authorization = Authorization;
|
|
3796
3796
|
/**
|
|
3797
|
-
*
|
|
3797
|
+
* 区分サービス
|
|
3798
3798
|
*/
|
|
3799
3799
|
var CategoryCode = /** @class */ (function (_super) {
|
|
3800
3800
|
__extends(CategoryCode, _super);
|
|
@@ -6176,7 +6176,7 @@ exports.CategoryCodeService = void 0;
|
|
|
6176
6176
|
var http_status_1 = require("http-status");
|
|
6177
6177
|
var service_1 = require("../service");
|
|
6178
6178
|
/**
|
|
6179
|
-
*
|
|
6179
|
+
* 区分サービス
|
|
6180
6180
|
*/
|
|
6181
6181
|
var CategoryCodeService = /** @class */ (function (_super) {
|
|
6182
6182
|
__extends(CategoryCodeService, _super);
|
|
@@ -10601,7 +10601,7 @@ var service;
|
|
|
10601
10601
|
}(action_1.ActionService));
|
|
10602
10602
|
service.Action = Action;
|
|
10603
10603
|
/**
|
|
10604
|
-
*
|
|
10604
|
+
* 区分サービス
|
|
10605
10605
|
*/
|
|
10606
10606
|
var CategoryCode = /** @class */ (function (_super) {
|
|
10607
10607
|
__extends(CategoryCode, _super);
|
|
@@ -11745,7 +11745,7 @@ exports.CategoryCodeService = void 0;
|
|
|
11745
11745
|
var http_status_1 = require("http-status");
|
|
11746
11746
|
var service_1 = require("../service");
|
|
11747
11747
|
/**
|
|
11748
|
-
*
|
|
11748
|
+
* 区分サービス
|
|
11749
11749
|
*/
|
|
11750
11750
|
var CategoryCodeService = /** @class */ (function (_super) {
|
|
11751
11751
|
__extends(CategoryCodeService, _super);
|
|
@@ -11850,7 +11850,7 @@ var CreativeWorkService = /** @class */ (function (_super) {
|
|
|
11850
11850
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
11851
11851
|
}
|
|
11852
11852
|
/**
|
|
11853
|
-
*
|
|
11853
|
+
* コンテンツ検索
|
|
11854
11854
|
*/
|
|
11855
11855
|
CreativeWorkService.prototype.searchMovies = function (params) {
|
|
11856
11856
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -12889,25 +12889,6 @@ var OrderService = /** @class */ (function (_super) {
|
|
|
12889
12889
|
});
|
|
12890
12890
|
});
|
|
12891
12891
|
};
|
|
12892
|
-
/**
|
|
12893
|
-
* ストリーミングダウンロード
|
|
12894
|
-
*/
|
|
12895
|
-
OrderService.prototype.download = function (params) {
|
|
12896
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
12897
|
-
var _this = this;
|
|
12898
|
-
return __generator(this, function (_a) {
|
|
12899
|
-
return [2 /*return*/, this.fetch({
|
|
12900
|
-
uri: "/orders/download",
|
|
12901
|
-
method: 'GET',
|
|
12902
|
-
qs: params,
|
|
12903
|
-
expectedStatusCodes: [http_status_1.OK]
|
|
12904
|
-
})
|
|
12905
|
-
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
12906
|
-
return [2 /*return*/, response.body];
|
|
12907
|
-
}); }); })];
|
|
12908
|
-
});
|
|
12909
|
-
});
|
|
12910
|
-
};
|
|
12911
12892
|
return OrderService;
|
|
12912
12893
|
}(service_1.Service));
|
|
12913
12894
|
exports.OrderService = OrderService;
|
|
@@ -13009,30 +12990,20 @@ var OwnershipInfoService = /** @class */ (function (_super) {
|
|
|
13009
12990
|
* 所有権検証アクションを検索する
|
|
13010
12991
|
* 所有権に対して発行されたトークンを認証しようとしたアクションを検索します
|
|
13011
12992
|
*/
|
|
13012
|
-
|
|
13013
|
-
|
|
13014
|
-
|
|
13015
|
-
|
|
13016
|
-
|
|
13017
|
-
|
|
13018
|
-
|
|
13019
|
-
|
|
13020
|
-
|
|
13021
|
-
|
|
13022
|
-
|
|
13023
|
-
|
|
13024
|
-
|
|
13025
|
-
|
|
13026
|
-
_a = {};
|
|
13027
|
-
return [4 /*yield*/, response.json()];
|
|
13028
|
-
case 1: return [2 /*return*/, (_a.data = _b.sent(),
|
|
13029
|
-
_a)];
|
|
13030
|
-
}
|
|
13031
|
-
});
|
|
13032
|
-
}); })];
|
|
13033
|
-
});
|
|
13034
|
-
});
|
|
13035
|
-
};
|
|
12993
|
+
// public async searchCheckTokenActions(params: {
|
|
12994
|
+
// id: string;
|
|
12995
|
+
// }): Promise<ISearchResult<factory.action.IAction<factory.action.IAttributes<factory.actionType, any, any>>[]>> {
|
|
12996
|
+
// return this.fetch({
|
|
12997
|
+
// uri: `/ownershipInfos/${params.id}/actions/checkToken`,
|
|
12998
|
+
// method: 'GET',
|
|
12999
|
+
// expectedStatusCodes: [OK]
|
|
13000
|
+
// })
|
|
13001
|
+
// .then(async (response) => {
|
|
13002
|
+
// return {
|
|
13003
|
+
// data: await response.json()
|
|
13004
|
+
// };
|
|
13005
|
+
// });
|
|
13006
|
+
// }
|
|
13036
13007
|
/**
|
|
13037
13008
|
* 登録日と劇場で会員数をカウント(sskts専用)
|
|
13038
13009
|
*/
|
|
@@ -13965,7 +13936,7 @@ var PlaceService = /** @class */ (function (_super) {
|
|
|
13965
13936
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
13966
13937
|
}
|
|
13967
13938
|
/**
|
|
13968
|
-
*
|
|
13939
|
+
* 施設検索
|
|
13969
13940
|
*/
|
|
13970
13941
|
PlaceService.prototype.searchMovieTheaters = function (params) {
|
|
13971
13942
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -13993,7 +13964,7 @@ var PlaceService = /** @class */ (function (_super) {
|
|
|
13993
13964
|
});
|
|
13994
13965
|
};
|
|
13995
13966
|
/**
|
|
13996
|
-
*
|
|
13967
|
+
* ルーム検索
|
|
13997
13968
|
*/
|
|
13998
13969
|
PlaceService.prototype.searchScreeningRooms = function (params) {
|
|
13999
13970
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -14439,22 +14410,17 @@ var ReservationService = /** @class */ (function (_super) {
|
|
|
14439
14410
|
/**
|
|
14440
14411
|
* ストリーミングダウンロード
|
|
14441
14412
|
*/
|
|
14442
|
-
|
|
14443
|
-
|
|
14444
|
-
|
|
14445
|
-
|
|
14446
|
-
|
|
14447
|
-
|
|
14448
|
-
|
|
14449
|
-
|
|
14450
|
-
|
|
14451
|
-
|
|
14452
|
-
|
|
14453
|
-
return [2 /*return*/, response.body];
|
|
14454
|
-
}); }); })];
|
|
14455
|
-
});
|
|
14456
|
-
});
|
|
14457
|
-
};
|
|
14413
|
+
// public async download<T extends factory.reservationType>(params: factory.reservation.ISearchConditions<T> & {
|
|
14414
|
+
// format: any;
|
|
14415
|
+
// }): Promise<NodeJS.ReadableStream | ReadableStream> {
|
|
14416
|
+
// return this.fetch({
|
|
14417
|
+
// uri: '/reservations/download',
|
|
14418
|
+
// method: 'GET',
|
|
14419
|
+
// qs: params,
|
|
14420
|
+
// expectedStatusCodes: [OK]
|
|
14421
|
+
// })
|
|
14422
|
+
// .then(async (response) => <NodeJS.ReadableStream | ReadableStream>response.body);
|
|
14423
|
+
// }
|
|
14458
14424
|
/**
|
|
14459
14425
|
* 予約を使用する
|
|
14460
14426
|
* 注文コードから取得したトークンを利用して、予約に入場記録を追加します
|
|
@@ -15150,6 +15116,20 @@ var PlaceOrderTransactionService = /** @class */ (function (_super) {
|
|
|
15150
15116
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
15151
15117
|
_this.typeOf = factory.transactionType.PlaceOrder;
|
|
15152
15118
|
return _this;
|
|
15119
|
+
/**
|
|
15120
|
+
* ストリーミングダウンロード
|
|
15121
|
+
*/
|
|
15122
|
+
// public async stream(params: factory.transaction.ISearchConditions<factory.transactionType.PlaceOrder> & {
|
|
15123
|
+
// format: factory.encodingFormat.Application | factory.encodingFormat.Text;
|
|
15124
|
+
// }): Promise<NodeJS.ReadableStream | ReadableStream> {
|
|
15125
|
+
// return this.fetch({
|
|
15126
|
+
// uri: `/transactions/${this.typeOf}/report`,
|
|
15127
|
+
// method: 'GET',
|
|
15128
|
+
// qs: params,
|
|
15129
|
+
// expectedStatusCodes: [OK]
|
|
15130
|
+
// })
|
|
15131
|
+
// .then(async (response) => <NodeJS.ReadableStream | ReadableStream>response.body);
|
|
15132
|
+
// }
|
|
15153
15133
|
}
|
|
15154
15134
|
/**
|
|
15155
15135
|
* 取引を開始する
|
|
@@ -15373,25 +15353,6 @@ var PlaceOrderTransactionService = /** @class */ (function (_super) {
|
|
|
15373
15353
|
});
|
|
15374
15354
|
});
|
|
15375
15355
|
};
|
|
15376
|
-
/**
|
|
15377
|
-
* ストリーミングダウンロード
|
|
15378
|
-
*/
|
|
15379
|
-
PlaceOrderTransactionService.prototype.stream = function (params) {
|
|
15380
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
15381
|
-
var _this = this;
|
|
15382
|
-
return __generator(this, function (_a) {
|
|
15383
|
-
return [2 /*return*/, this.fetch({
|
|
15384
|
-
uri: "/transactions/" + this.typeOf + "/report",
|
|
15385
|
-
method: 'GET',
|
|
15386
|
-
qs: params,
|
|
15387
|
-
expectedStatusCodes: [http_status_1.OK]
|
|
15388
|
-
})
|
|
15389
|
-
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
15390
|
-
return [2 /*return*/, response.body];
|
|
15391
|
-
}); }); })];
|
|
15392
|
-
});
|
|
15393
|
-
});
|
|
15394
|
-
};
|
|
15395
15356
|
return PlaceOrderTransactionService;
|
|
15396
15357
|
}(service_1.Service));
|
|
15397
15358
|
exports.PlaceOrderTransactionService = PlaceOrderTransactionService;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cinerino/sdk",
|
|
3
|
-
"version": "3.33.0-alpha.
|
|
3
|
+
"version": "3.33.0-alpha.4",
|
|
4
4
|
"description": "Cinerino SDK",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"browser": {
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
"watchify": "^3.11.1"
|
|
98
98
|
},
|
|
99
99
|
"dependencies": {
|
|
100
|
-
"@cinerino/api-abstract-client": "3.33.0-alpha.
|
|
100
|
+
"@cinerino/api-abstract-client": "3.33.0-alpha.4",
|
|
101
101
|
"debug": "^3.2.6",
|
|
102
102
|
"http-status": "^1.4.2",
|
|
103
103
|
"idtoken-verifier": "^2.0.3",
|