@cinerino/sdk 3.120.0-alpha.2 → 3.121.0-alpha.1
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/playground/public/lib/bundle.js +60 -0
- package/lib/bundle.js +60 -0
- package/package.json +2 -2
|
@@ -8115,6 +8115,66 @@ var OfferService = /** @class */ (function (_super) {
|
|
|
8115
8115
|
});
|
|
8116
8116
|
});
|
|
8117
8117
|
};
|
|
8118
|
+
/**
|
|
8119
|
+
* 興行オファー承認
|
|
8120
|
+
*/
|
|
8121
|
+
OfferService.prototype.authorizeEventServiceByCOA = function (params) {
|
|
8122
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8123
|
+
var _this = this;
|
|
8124
|
+
return __generator(this, function (_a) {
|
|
8125
|
+
return [2 /*return*/, this.fetch({
|
|
8126
|
+
uri: "/offers/" + factory.product.ProductType.EventService + "ByCOA/authorize",
|
|
8127
|
+
method: 'POST',
|
|
8128
|
+
expectedStatusCodes: [http_status_1.CREATED],
|
|
8129
|
+
body: params
|
|
8130
|
+
// qs: {
|
|
8131
|
+
// ...(params.expectsMinimalResponse === true) ? { expectsMinimalResponse: '1' } : undefined
|
|
8132
|
+
// }
|
|
8133
|
+
})
|
|
8134
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
8135
|
+
return [2 /*return*/, response.json()];
|
|
8136
|
+
}); }); })];
|
|
8137
|
+
});
|
|
8138
|
+
});
|
|
8139
|
+
};
|
|
8140
|
+
/**
|
|
8141
|
+
* 興行オファー承認取消
|
|
8142
|
+
*/
|
|
8143
|
+
OfferService.prototype.voidAuthorizationByCOA = function (params) {
|
|
8144
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8145
|
+
var _this = this;
|
|
8146
|
+
return __generator(this, function (_a) {
|
|
8147
|
+
return [2 /*return*/, this.fetch({
|
|
8148
|
+
uri: "/offers/" + factory.product.ProductType.EventService + "ByCOA/authorize/" + params.id + "/void",
|
|
8149
|
+
method: 'PUT',
|
|
8150
|
+
expectedStatusCodes: [http_status_1.OK],
|
|
8151
|
+
body: params
|
|
8152
|
+
})
|
|
8153
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
8154
|
+
return [2 /*return*/, response.json()];
|
|
8155
|
+
}); }); })];
|
|
8156
|
+
});
|
|
8157
|
+
});
|
|
8158
|
+
};
|
|
8159
|
+
/**
|
|
8160
|
+
* 興行オファー承認変更
|
|
8161
|
+
*/
|
|
8162
|
+
OfferService.prototype.updateEventServiceByCOA = function (params) {
|
|
8163
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8164
|
+
var _this = this;
|
|
8165
|
+
return __generator(this, function (_a) {
|
|
8166
|
+
return [2 /*return*/, this.fetch({
|
|
8167
|
+
uri: "/offers/" + factory.product.ProductType.EventService + "ByCOA/authorize/" + params.id,
|
|
8168
|
+
method: 'PATCH',
|
|
8169
|
+
expectedStatusCodes: [http_status_1.CREATED],
|
|
8170
|
+
body: params
|
|
8171
|
+
})
|
|
8172
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
8173
|
+
return [2 /*return*/, response.json()];
|
|
8174
|
+
}); }); })];
|
|
8175
|
+
});
|
|
8176
|
+
});
|
|
8177
|
+
};
|
|
8118
8178
|
/**
|
|
8119
8179
|
* COAポイントオファー検索
|
|
8120
8180
|
*/
|
package/lib/bundle.js
CHANGED
|
@@ -8115,6 +8115,66 @@ var OfferService = /** @class */ (function (_super) {
|
|
|
8115
8115
|
});
|
|
8116
8116
|
});
|
|
8117
8117
|
};
|
|
8118
|
+
/**
|
|
8119
|
+
* 興行オファー承認
|
|
8120
|
+
*/
|
|
8121
|
+
OfferService.prototype.authorizeEventServiceByCOA = function (params) {
|
|
8122
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8123
|
+
var _this = this;
|
|
8124
|
+
return __generator(this, function (_a) {
|
|
8125
|
+
return [2 /*return*/, this.fetch({
|
|
8126
|
+
uri: "/offers/" + factory.product.ProductType.EventService + "ByCOA/authorize",
|
|
8127
|
+
method: 'POST',
|
|
8128
|
+
expectedStatusCodes: [http_status_1.CREATED],
|
|
8129
|
+
body: params
|
|
8130
|
+
// qs: {
|
|
8131
|
+
// ...(params.expectsMinimalResponse === true) ? { expectsMinimalResponse: '1' } : undefined
|
|
8132
|
+
// }
|
|
8133
|
+
})
|
|
8134
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
8135
|
+
return [2 /*return*/, response.json()];
|
|
8136
|
+
}); }); })];
|
|
8137
|
+
});
|
|
8138
|
+
});
|
|
8139
|
+
};
|
|
8140
|
+
/**
|
|
8141
|
+
* 興行オファー承認取消
|
|
8142
|
+
*/
|
|
8143
|
+
OfferService.prototype.voidAuthorizationByCOA = function (params) {
|
|
8144
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8145
|
+
var _this = this;
|
|
8146
|
+
return __generator(this, function (_a) {
|
|
8147
|
+
return [2 /*return*/, this.fetch({
|
|
8148
|
+
uri: "/offers/" + factory.product.ProductType.EventService + "ByCOA/authorize/" + params.id + "/void",
|
|
8149
|
+
method: 'PUT',
|
|
8150
|
+
expectedStatusCodes: [http_status_1.OK],
|
|
8151
|
+
body: params
|
|
8152
|
+
})
|
|
8153
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
8154
|
+
return [2 /*return*/, response.json()];
|
|
8155
|
+
}); }); })];
|
|
8156
|
+
});
|
|
8157
|
+
});
|
|
8158
|
+
};
|
|
8159
|
+
/**
|
|
8160
|
+
* 興行オファー承認変更
|
|
8161
|
+
*/
|
|
8162
|
+
OfferService.prototype.updateEventServiceByCOA = function (params) {
|
|
8163
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8164
|
+
var _this = this;
|
|
8165
|
+
return __generator(this, function (_a) {
|
|
8166
|
+
return [2 /*return*/, this.fetch({
|
|
8167
|
+
uri: "/offers/" + factory.product.ProductType.EventService + "ByCOA/authorize/" + params.id,
|
|
8168
|
+
method: 'PATCH',
|
|
8169
|
+
expectedStatusCodes: [http_status_1.CREATED],
|
|
8170
|
+
body: params
|
|
8171
|
+
})
|
|
8172
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
8173
|
+
return [2 /*return*/, response.json()];
|
|
8174
|
+
}); }); })];
|
|
8175
|
+
});
|
|
8176
|
+
});
|
|
8177
|
+
};
|
|
8118
8178
|
/**
|
|
8119
8179
|
* COAポイントオファー検索
|
|
8120
8180
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cinerino/sdk",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.121.0-alpha.1",
|
|
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.
|
|
100
|
+
"@cinerino/api-abstract-client": "3.121.0-alpha.1",
|
|
101
101
|
"debug": "^3.2.6",
|
|
102
102
|
"http-status": "^1.4.2",
|
|
103
103
|
"idtoken-verifier": "^2.0.3",
|