@cinerino/sdk 3.120.0 → 3.121.0-alpha.2
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 +76 -0
- package/lib/bundle.js +76 -0
- package/package.json +2 -2
|
@@ -5124,6 +5124,22 @@ var ActionService = /** @class */ (function (_super) {
|
|
|
5124
5124
|
});
|
|
5125
5125
|
});
|
|
5126
5126
|
};
|
|
5127
|
+
ActionService.prototype.findById = function (params) {
|
|
5128
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
5129
|
+
var _this = this;
|
|
5130
|
+
return __generator(this, function (_a) {
|
|
5131
|
+
return [2 /*return*/, this.fetch({
|
|
5132
|
+
uri: "/actions/" + encodeURIComponent(String(params.id)),
|
|
5133
|
+
method: 'GET',
|
|
5134
|
+
expectedStatusCodes: [http_status_1.OK],
|
|
5135
|
+
qs: { typeOf: params.typeOf }
|
|
5136
|
+
})
|
|
5137
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
5138
|
+
return [2 /*return*/, response.json()];
|
|
5139
|
+
}); }); })];
|
|
5140
|
+
});
|
|
5141
|
+
});
|
|
5142
|
+
};
|
|
5127
5143
|
return ActionService;
|
|
5128
5144
|
}(service_1.Service));
|
|
5129
5145
|
exports.ActionService = ActionService;
|
|
@@ -8115,6 +8131,66 @@ var OfferService = /** @class */ (function (_super) {
|
|
|
8115
8131
|
});
|
|
8116
8132
|
});
|
|
8117
8133
|
};
|
|
8134
|
+
/**
|
|
8135
|
+
* 興行オファー承認
|
|
8136
|
+
*/
|
|
8137
|
+
OfferService.prototype.authorizeEventServiceByCOA = function (params) {
|
|
8138
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8139
|
+
var _this = this;
|
|
8140
|
+
return __generator(this, function (_a) {
|
|
8141
|
+
return [2 /*return*/, this.fetch({
|
|
8142
|
+
uri: "/offers/" + factory.product.ProductType.EventService + "ByCOA/authorize",
|
|
8143
|
+
method: 'POST',
|
|
8144
|
+
expectedStatusCodes: [http_status_1.CREATED],
|
|
8145
|
+
body: params
|
|
8146
|
+
// qs: {
|
|
8147
|
+
// ...(params.expectsMinimalResponse === true) ? { expectsMinimalResponse: '1' } : undefined
|
|
8148
|
+
// }
|
|
8149
|
+
})
|
|
8150
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
8151
|
+
return [2 /*return*/, response.json()];
|
|
8152
|
+
}); }); })];
|
|
8153
|
+
});
|
|
8154
|
+
});
|
|
8155
|
+
};
|
|
8156
|
+
/**
|
|
8157
|
+
* 興行オファー承認取消
|
|
8158
|
+
*/
|
|
8159
|
+
OfferService.prototype.voidAuthorizationByCOA = function (params) {
|
|
8160
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8161
|
+
var _this = this;
|
|
8162
|
+
return __generator(this, function (_a) {
|
|
8163
|
+
return [2 /*return*/, this.fetch({
|
|
8164
|
+
uri: "/offers/" + factory.product.ProductType.EventService + "ByCOA/authorize/" + params.id + "/void",
|
|
8165
|
+
method: 'PUT',
|
|
8166
|
+
expectedStatusCodes: [http_status_1.OK],
|
|
8167
|
+
body: params
|
|
8168
|
+
})
|
|
8169
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
8170
|
+
return [2 /*return*/, response.json()];
|
|
8171
|
+
}); }); })];
|
|
8172
|
+
});
|
|
8173
|
+
});
|
|
8174
|
+
};
|
|
8175
|
+
/**
|
|
8176
|
+
* 興行オファー承認変更
|
|
8177
|
+
*/
|
|
8178
|
+
OfferService.prototype.updateEventServiceByCOA = function (params) {
|
|
8179
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8180
|
+
var _this = this;
|
|
8181
|
+
return __generator(this, function (_a) {
|
|
8182
|
+
return [2 /*return*/, this.fetch({
|
|
8183
|
+
uri: "/offers/" + factory.product.ProductType.EventService + "ByCOA/authorize/" + params.id,
|
|
8184
|
+
method: 'PATCH',
|
|
8185
|
+
expectedStatusCodes: [http_status_1.CREATED],
|
|
8186
|
+
body: params
|
|
8187
|
+
})
|
|
8188
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
8189
|
+
return [2 /*return*/, response.json()];
|
|
8190
|
+
}); }); })];
|
|
8191
|
+
});
|
|
8192
|
+
});
|
|
8193
|
+
};
|
|
8118
8194
|
/**
|
|
8119
8195
|
* COAポイントオファー検索
|
|
8120
8196
|
*/
|
package/lib/bundle.js
CHANGED
|
@@ -5124,6 +5124,22 @@ var ActionService = /** @class */ (function (_super) {
|
|
|
5124
5124
|
});
|
|
5125
5125
|
});
|
|
5126
5126
|
};
|
|
5127
|
+
ActionService.prototype.findById = function (params) {
|
|
5128
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
5129
|
+
var _this = this;
|
|
5130
|
+
return __generator(this, function (_a) {
|
|
5131
|
+
return [2 /*return*/, this.fetch({
|
|
5132
|
+
uri: "/actions/" + encodeURIComponent(String(params.id)),
|
|
5133
|
+
method: 'GET',
|
|
5134
|
+
expectedStatusCodes: [http_status_1.OK],
|
|
5135
|
+
qs: { typeOf: params.typeOf }
|
|
5136
|
+
})
|
|
5137
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
5138
|
+
return [2 /*return*/, response.json()];
|
|
5139
|
+
}); }); })];
|
|
5140
|
+
});
|
|
5141
|
+
});
|
|
5142
|
+
};
|
|
5127
5143
|
return ActionService;
|
|
5128
5144
|
}(service_1.Service));
|
|
5129
5145
|
exports.ActionService = ActionService;
|
|
@@ -8115,6 +8131,66 @@ var OfferService = /** @class */ (function (_super) {
|
|
|
8115
8131
|
});
|
|
8116
8132
|
});
|
|
8117
8133
|
};
|
|
8134
|
+
/**
|
|
8135
|
+
* 興行オファー承認
|
|
8136
|
+
*/
|
|
8137
|
+
OfferService.prototype.authorizeEventServiceByCOA = function (params) {
|
|
8138
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8139
|
+
var _this = this;
|
|
8140
|
+
return __generator(this, function (_a) {
|
|
8141
|
+
return [2 /*return*/, this.fetch({
|
|
8142
|
+
uri: "/offers/" + factory.product.ProductType.EventService + "ByCOA/authorize",
|
|
8143
|
+
method: 'POST',
|
|
8144
|
+
expectedStatusCodes: [http_status_1.CREATED],
|
|
8145
|
+
body: params
|
|
8146
|
+
// qs: {
|
|
8147
|
+
// ...(params.expectsMinimalResponse === true) ? { expectsMinimalResponse: '1' } : undefined
|
|
8148
|
+
// }
|
|
8149
|
+
})
|
|
8150
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
8151
|
+
return [2 /*return*/, response.json()];
|
|
8152
|
+
}); }); })];
|
|
8153
|
+
});
|
|
8154
|
+
});
|
|
8155
|
+
};
|
|
8156
|
+
/**
|
|
8157
|
+
* 興行オファー承認取消
|
|
8158
|
+
*/
|
|
8159
|
+
OfferService.prototype.voidAuthorizationByCOA = function (params) {
|
|
8160
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8161
|
+
var _this = this;
|
|
8162
|
+
return __generator(this, function (_a) {
|
|
8163
|
+
return [2 /*return*/, this.fetch({
|
|
8164
|
+
uri: "/offers/" + factory.product.ProductType.EventService + "ByCOA/authorize/" + params.id + "/void",
|
|
8165
|
+
method: 'PUT',
|
|
8166
|
+
expectedStatusCodes: [http_status_1.OK],
|
|
8167
|
+
body: params
|
|
8168
|
+
})
|
|
8169
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
8170
|
+
return [2 /*return*/, response.json()];
|
|
8171
|
+
}); }); })];
|
|
8172
|
+
});
|
|
8173
|
+
});
|
|
8174
|
+
};
|
|
8175
|
+
/**
|
|
8176
|
+
* 興行オファー承認変更
|
|
8177
|
+
*/
|
|
8178
|
+
OfferService.prototype.updateEventServiceByCOA = function (params) {
|
|
8179
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8180
|
+
var _this = this;
|
|
8181
|
+
return __generator(this, function (_a) {
|
|
8182
|
+
return [2 /*return*/, this.fetch({
|
|
8183
|
+
uri: "/offers/" + factory.product.ProductType.EventService + "ByCOA/authorize/" + params.id,
|
|
8184
|
+
method: 'PATCH',
|
|
8185
|
+
expectedStatusCodes: [http_status_1.CREATED],
|
|
8186
|
+
body: params
|
|
8187
|
+
})
|
|
8188
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
8189
|
+
return [2 /*return*/, response.json()];
|
|
8190
|
+
}); }); })];
|
|
8191
|
+
});
|
|
8192
|
+
});
|
|
8193
|
+
};
|
|
8118
8194
|
/**
|
|
8119
8195
|
* COAポイントオファー検索
|
|
8120
8196
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cinerino/sdk",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.121.0-alpha.2",
|
|
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.2",
|
|
101
101
|
"debug": "^3.2.6",
|
|
102
102
|
"http-status": "^1.4.2",
|
|
103
103
|
"idtoken-verifier": "^2.0.3",
|