@cinerino/sdk 3.121.0-alpha.0 → 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 +33 -15
- package/lib/bundle.js +33 -15
- package/package.json +2 -2
|
@@ -8126,10 +8126,10 @@ var OfferService = /** @class */ (function (_super) {
|
|
|
8126
8126
|
uri: "/offers/" + factory.product.ProductType.EventService + "ByCOA/authorize",
|
|
8127
8127
|
method: 'POST',
|
|
8128
8128
|
expectedStatusCodes: [http_status_1.CREATED],
|
|
8129
|
-
body: params
|
|
8130
|
-
qs: {
|
|
8131
|
-
//
|
|
8132
|
-
}
|
|
8129
|
+
body: params
|
|
8130
|
+
// qs: {
|
|
8131
|
+
// ...(params.expectsMinimalResponse === true) ? { expectsMinimalResponse: '1' } : undefined
|
|
8132
|
+
// }
|
|
8133
8133
|
})
|
|
8134
8134
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
8135
8135
|
return [2 /*return*/, response.json()];
|
|
@@ -8142,18 +8142,36 @@ var OfferService = /** @class */ (function (_super) {
|
|
|
8142
8142
|
*/
|
|
8143
8143
|
OfferService.prototype.voidAuthorizationByCOA = function (params) {
|
|
8144
8144
|
return __awaiter(this, void 0, void 0, function () {
|
|
8145
|
+
var _this = this;
|
|
8145
8146
|
return __generator(this, function (_a) {
|
|
8146
|
-
|
|
8147
|
-
|
|
8148
|
-
|
|
8149
|
-
|
|
8150
|
-
|
|
8151
|
-
|
|
8152
|
-
|
|
8153
|
-
|
|
8154
|
-
|
|
8155
|
-
|
|
8156
|
-
|
|
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
|
+
}); }); })];
|
|
8157
8175
|
});
|
|
8158
8176
|
});
|
|
8159
8177
|
};
|
package/lib/bundle.js
CHANGED
|
@@ -8126,10 +8126,10 @@ var OfferService = /** @class */ (function (_super) {
|
|
|
8126
8126
|
uri: "/offers/" + factory.product.ProductType.EventService + "ByCOA/authorize",
|
|
8127
8127
|
method: 'POST',
|
|
8128
8128
|
expectedStatusCodes: [http_status_1.CREATED],
|
|
8129
|
-
body: params
|
|
8130
|
-
qs: {
|
|
8131
|
-
//
|
|
8132
|
-
}
|
|
8129
|
+
body: params
|
|
8130
|
+
// qs: {
|
|
8131
|
+
// ...(params.expectsMinimalResponse === true) ? { expectsMinimalResponse: '1' } : undefined
|
|
8132
|
+
// }
|
|
8133
8133
|
})
|
|
8134
8134
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
8135
8135
|
return [2 /*return*/, response.json()];
|
|
@@ -8142,18 +8142,36 @@ var OfferService = /** @class */ (function (_super) {
|
|
|
8142
8142
|
*/
|
|
8143
8143
|
OfferService.prototype.voidAuthorizationByCOA = function (params) {
|
|
8144
8144
|
return __awaiter(this, void 0, void 0, function () {
|
|
8145
|
+
var _this = this;
|
|
8145
8146
|
return __generator(this, function (_a) {
|
|
8146
|
-
|
|
8147
|
-
|
|
8148
|
-
|
|
8149
|
-
|
|
8150
|
-
|
|
8151
|
-
|
|
8152
|
-
|
|
8153
|
-
|
|
8154
|
-
|
|
8155
|
-
|
|
8156
|
-
|
|
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
|
+
}); }); })];
|
|
8157
8175
|
});
|
|
8158
8176
|
});
|
|
8159
8177
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cinerino/sdk",
|
|
3
|
-
"version": "3.121.0-alpha.
|
|
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.121.0-alpha.
|
|
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",
|