@cinerino/sdk 3.151.0-alpha.2 → 3.151.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.
|
@@ -4972,21 +4972,19 @@ var OfferService = /** @class */ (function (_super) {
|
|
|
4972
4972
|
/**
|
|
4973
4973
|
* 興行オファー承認のacceptedOffer参照
|
|
4974
4974
|
*/
|
|
4975
|
-
|
|
4976
|
-
|
|
4977
|
-
|
|
4978
|
-
|
|
4979
|
-
|
|
4980
|
-
|
|
4981
|
-
|
|
4982
|
-
|
|
4983
|
-
|
|
4984
|
-
|
|
4985
|
-
|
|
4986
|
-
|
|
4987
|
-
|
|
4988
|
-
});
|
|
4989
|
-
};
|
|
4975
|
+
// public async findEventServiceByCOAObject(params: {
|
|
4976
|
+
// /**
|
|
4977
|
+
// * 承認アクションID
|
|
4978
|
+
// */
|
|
4979
|
+
// id: string;
|
|
4980
|
+
// }): Promise<Pick<factory.action.authorize.offer.seatReservation.IObject<factory.service.webAPI.Identifier.COA>, 'acceptedOffer'>> {
|
|
4981
|
+
// return this.fetch({
|
|
4982
|
+
// uri: `/offers/${factory.product.ProductType.EventService}ByCOA/authorize/${params.id}/object`,
|
|
4983
|
+
// method: 'GET',
|
|
4984
|
+
// expectedStatusCodes: [OK]
|
|
4985
|
+
// })
|
|
4986
|
+
// .then(async (response) => response.json());
|
|
4987
|
+
// }
|
|
4990
4988
|
/**
|
|
4991
4989
|
* 興行オファー承認変更
|
|
4992
4990
|
*/
|
|
@@ -5006,34 +5004,6 @@ var OfferService = /** @class */ (function (_super) {
|
|
|
5006
5004
|
});
|
|
5007
5005
|
});
|
|
5008
5006
|
};
|
|
5009
|
-
/**
|
|
5010
|
-
* COAポイントオファー検索
|
|
5011
|
-
*/
|
|
5012
|
-
OfferService.prototype.searchCOAPointOffers = function (params) {
|
|
5013
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
5014
|
-
var _this = this;
|
|
5015
|
-
return __generator(this, function (_a) {
|
|
5016
|
-
return [2 /*return*/, this.fetch({
|
|
5017
|
-
uri: '/offers/COA/pointOffers',
|
|
5018
|
-
method: 'GET',
|
|
5019
|
-
qs: params,
|
|
5020
|
-
expectedStatusCodes: [http_status_1.OK]
|
|
5021
|
-
})
|
|
5022
|
-
.then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
5023
|
-
var _a;
|
|
5024
|
-
return __generator(this, function (_b) {
|
|
5025
|
-
switch (_b.label) {
|
|
5026
|
-
case 0:
|
|
5027
|
-
_a = {};
|
|
5028
|
-
return [4 /*yield*/, response.json()];
|
|
5029
|
-
case 1: return [2 /*return*/, (_a.data = _b.sent(),
|
|
5030
|
-
_a)];
|
|
5031
|
-
}
|
|
5032
|
-
});
|
|
5033
|
-
}); })];
|
|
5034
|
-
});
|
|
5035
|
-
});
|
|
5036
|
-
};
|
|
5037
5007
|
return OfferService;
|
|
5038
5008
|
}(service_1.Service));
|
|
5039
5009
|
exports.OfferService = OfferService;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cinerino/sdk",
|
|
3
|
-
"version": "3.151.0
|
|
3
|
+
"version": "3.151.0",
|
|
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
|
-
"@chevre/factory": "4.
|
|
100
|
+
"@chevre/factory": "4.307.0",
|
|
101
101
|
"debug": "^3.2.6",
|
|
102
102
|
"http-status": "^1.4.2",
|
|
103
103
|
"idtoken-verifier": "^2.0.3",
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
// tslint:disable:no-console no-implicit-dependencies no-magic-numbers
|
|
2
|
-
import * as client from '../../../../lib/index';
|
|
3
|
-
|
|
4
|
-
const project = { id: process.env.PROJECT_ID };
|
|
5
|
-
|
|
6
|
-
async function main() {
|
|
7
|
-
const authClient = new client.auth.ClientCredentials({
|
|
8
|
-
domain: <string>process.env.CHEVRE_AUTHORIZE_SERVER_DOMAIN,
|
|
9
|
-
clientId: <string>process.env.CHEVRE_CLIENT_ID,
|
|
10
|
-
clientSecret: <string>process.env.CHEVRE_CLIENT_SECRET,
|
|
11
|
-
scopes: [],
|
|
12
|
-
state: ''
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
const offerService = new client.chevre.service.Offer({
|
|
16
|
-
endpoint: <string>process.env.CHEVRE_ENDPOINT,
|
|
17
|
-
auth: authClient,
|
|
18
|
-
project
|
|
19
|
-
});
|
|
20
|
-
const { data } = await offerService.searchCOAPointOffers({
|
|
21
|
-
theaterCode: '120',
|
|
22
|
-
ticketCode: ['3800001', '3800002', '3900001']
|
|
23
|
-
});
|
|
24
|
-
console.log(data);
|
|
25
|
-
console.log(data.length, 'offers found');
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
main()
|
|
29
|
-
.then(() => {
|
|
30
|
-
console.log('success!');
|
|
31
|
-
})
|
|
32
|
-
.catch(console.error);
|