@cinerino/sdk 3.121.0-alpha.0 → 3.121.0-alpha.3
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 +65 -15
- package/lib/bundle.js +65 -15
- 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;
|
|
@@ -8126,10 +8142,7 @@ var OfferService = /** @class */ (function (_super) {
|
|
|
8126
8142
|
uri: "/offers/" + factory.product.ProductType.EventService + "ByCOA/authorize",
|
|
8127
8143
|
method: 'POST',
|
|
8128
8144
|
expectedStatusCodes: [http_status_1.CREATED],
|
|
8129
|
-
body: params
|
|
8130
|
-
qs: {
|
|
8131
|
-
// ...(params.expectsMinimalResponse === true) ? { expectsMinimalResponse: '1' } : undefined
|
|
8132
|
-
}
|
|
8145
|
+
body: params
|
|
8133
8146
|
})
|
|
8134
8147
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
8135
8148
|
return [2 /*return*/, response.json()];
|
|
@@ -8142,18 +8155,55 @@ var OfferService = /** @class */ (function (_super) {
|
|
|
8142
8155
|
*/
|
|
8143
8156
|
OfferService.prototype.voidAuthorizationByCOA = function (params) {
|
|
8144
8157
|
return __awaiter(this, void 0, void 0, function () {
|
|
8158
|
+
var _this = this;
|
|
8145
8159
|
return __generator(this, function (_a) {
|
|
8146
|
-
|
|
8147
|
-
|
|
8148
|
-
|
|
8149
|
-
|
|
8150
|
-
|
|
8151
|
-
|
|
8152
|
-
|
|
8153
|
-
|
|
8154
|
-
|
|
8155
|
-
|
|
8156
|
-
|
|
8160
|
+
return [2 /*return*/, this.fetch({
|
|
8161
|
+
uri: "/offers/" + factory.product.ProductType.EventService + "ByCOA/authorize/" + params.id + "/void",
|
|
8162
|
+
method: 'PUT',
|
|
8163
|
+
expectedStatusCodes: [http_status_1.OK],
|
|
8164
|
+
body: params
|
|
8165
|
+
})
|
|
8166
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
8167
|
+
return [2 /*return*/, response.json()];
|
|
8168
|
+
}); }); })];
|
|
8169
|
+
});
|
|
8170
|
+
});
|
|
8171
|
+
};
|
|
8172
|
+
/**
|
|
8173
|
+
* 興行オファー承認のacceptedOffer参照
|
|
8174
|
+
*/
|
|
8175
|
+
OfferService.prototype.findEventServiceByCOAObject = function (params) {
|
|
8176
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8177
|
+
var _this = this;
|
|
8178
|
+
return __generator(this, function (_a) {
|
|
8179
|
+
return [2 /*return*/, this.fetch({
|
|
8180
|
+
uri: "/offers/" + factory.product.ProductType.EventService + "ByCOA/authorize/" + params.id + "/object",
|
|
8181
|
+
method: 'GET',
|
|
8182
|
+
expectedStatusCodes: [http_status_1.CREATED],
|
|
8183
|
+
body: params
|
|
8184
|
+
})
|
|
8185
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
8186
|
+
return [2 /*return*/, response.json()];
|
|
8187
|
+
}); }); })];
|
|
8188
|
+
});
|
|
8189
|
+
});
|
|
8190
|
+
};
|
|
8191
|
+
/**
|
|
8192
|
+
* 興行オファー承認変更
|
|
8193
|
+
*/
|
|
8194
|
+
OfferService.prototype.updateEventServiceByCOA = function (params) {
|
|
8195
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8196
|
+
var _this = this;
|
|
8197
|
+
return __generator(this, function (_a) {
|
|
8198
|
+
return [2 /*return*/, this.fetch({
|
|
8199
|
+
uri: "/offers/" + factory.product.ProductType.EventService + "ByCOA/authorize/" + params.id,
|
|
8200
|
+
method: 'PATCH',
|
|
8201
|
+
expectedStatusCodes: [http_status_1.CREATED],
|
|
8202
|
+
body: params
|
|
8203
|
+
})
|
|
8204
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
8205
|
+
return [2 /*return*/, response.json()];
|
|
8206
|
+
}); }); })];
|
|
8157
8207
|
});
|
|
8158
8208
|
});
|
|
8159
8209
|
};
|
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;
|
|
@@ -8126,10 +8142,7 @@ var OfferService = /** @class */ (function (_super) {
|
|
|
8126
8142
|
uri: "/offers/" + factory.product.ProductType.EventService + "ByCOA/authorize",
|
|
8127
8143
|
method: 'POST',
|
|
8128
8144
|
expectedStatusCodes: [http_status_1.CREATED],
|
|
8129
|
-
body: params
|
|
8130
|
-
qs: {
|
|
8131
|
-
// ...(params.expectsMinimalResponse === true) ? { expectsMinimalResponse: '1' } : undefined
|
|
8132
|
-
}
|
|
8145
|
+
body: params
|
|
8133
8146
|
})
|
|
8134
8147
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
8135
8148
|
return [2 /*return*/, response.json()];
|
|
@@ -8142,18 +8155,55 @@ var OfferService = /** @class */ (function (_super) {
|
|
|
8142
8155
|
*/
|
|
8143
8156
|
OfferService.prototype.voidAuthorizationByCOA = function (params) {
|
|
8144
8157
|
return __awaiter(this, void 0, void 0, function () {
|
|
8158
|
+
var _this = this;
|
|
8145
8159
|
return __generator(this, function (_a) {
|
|
8146
|
-
|
|
8147
|
-
|
|
8148
|
-
|
|
8149
|
-
|
|
8150
|
-
|
|
8151
|
-
|
|
8152
|
-
|
|
8153
|
-
|
|
8154
|
-
|
|
8155
|
-
|
|
8156
|
-
|
|
8160
|
+
return [2 /*return*/, this.fetch({
|
|
8161
|
+
uri: "/offers/" + factory.product.ProductType.EventService + "ByCOA/authorize/" + params.id + "/void",
|
|
8162
|
+
method: 'PUT',
|
|
8163
|
+
expectedStatusCodes: [http_status_1.OK],
|
|
8164
|
+
body: params
|
|
8165
|
+
})
|
|
8166
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
8167
|
+
return [2 /*return*/, response.json()];
|
|
8168
|
+
}); }); })];
|
|
8169
|
+
});
|
|
8170
|
+
});
|
|
8171
|
+
};
|
|
8172
|
+
/**
|
|
8173
|
+
* 興行オファー承認のacceptedOffer参照
|
|
8174
|
+
*/
|
|
8175
|
+
OfferService.prototype.findEventServiceByCOAObject = function (params) {
|
|
8176
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8177
|
+
var _this = this;
|
|
8178
|
+
return __generator(this, function (_a) {
|
|
8179
|
+
return [2 /*return*/, this.fetch({
|
|
8180
|
+
uri: "/offers/" + factory.product.ProductType.EventService + "ByCOA/authorize/" + params.id + "/object",
|
|
8181
|
+
method: 'GET',
|
|
8182
|
+
expectedStatusCodes: [http_status_1.CREATED],
|
|
8183
|
+
body: params
|
|
8184
|
+
})
|
|
8185
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
8186
|
+
return [2 /*return*/, response.json()];
|
|
8187
|
+
}); }); })];
|
|
8188
|
+
});
|
|
8189
|
+
});
|
|
8190
|
+
};
|
|
8191
|
+
/**
|
|
8192
|
+
* 興行オファー承認変更
|
|
8193
|
+
*/
|
|
8194
|
+
OfferService.prototype.updateEventServiceByCOA = function (params) {
|
|
8195
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8196
|
+
var _this = this;
|
|
8197
|
+
return __generator(this, function (_a) {
|
|
8198
|
+
return [2 /*return*/, this.fetch({
|
|
8199
|
+
uri: "/offers/" + factory.product.ProductType.EventService + "ByCOA/authorize/" + params.id,
|
|
8200
|
+
method: 'PATCH',
|
|
8201
|
+
expectedStatusCodes: [http_status_1.CREATED],
|
|
8202
|
+
body: params
|
|
8203
|
+
})
|
|
8204
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
8205
|
+
return [2 /*return*/, response.json()];
|
|
8206
|
+
}); }); })];
|
|
8157
8207
|
});
|
|
8158
8208
|
});
|
|
8159
8209
|
};
|
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.3",
|
|
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.3",
|
|
101
101
|
"debug": "^3.2.6",
|
|
102
102
|
"http-status": "^1.4.2",
|
|
103
103
|
"idtoken-verifier": "^2.0.3",
|