@cinerino/sdk 3.121.0-alpha.1 → 3.121.0-alpha.4

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.
@@ -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;
@@ -8127,9 +8143,6 @@ var OfferService = /** @class */ (function (_super) {
8127
8143
  method: 'POST',
8128
8144
  expectedStatusCodes: [http_status_1.CREATED],
8129
8145
  body: params
8130
- // qs: {
8131
- // ...(params.expectsMinimalResponse === true) ? { expectsMinimalResponse: '1' } : undefined
8132
- // }
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()];
@@ -8156,6 +8169,24 @@ var OfferService = /** @class */ (function (_super) {
8156
8169
  });
8157
8170
  });
8158
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.OK]
8183
+ })
8184
+ .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
8185
+ return [2 /*return*/, response.json()];
8186
+ }); }); })];
8187
+ });
8188
+ });
8189
+ };
8159
8190
  /**
8160
8191
  * 興行オファー承認変更
8161
8192
  */
@@ -8166,7 +8197,7 @@ var OfferService = /** @class */ (function (_super) {
8166
8197
  return [2 /*return*/, this.fetch({
8167
8198
  uri: "/offers/" + factory.product.ProductType.EventService + "ByCOA/authorize/" + params.id,
8168
8199
  method: 'PATCH',
8169
- expectedStatusCodes: [http_status_1.CREATED],
8200
+ expectedStatusCodes: [http_status_1.OK],
8170
8201
  body: params
8171
8202
  })
8172
8203
  .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
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;
@@ -8127,9 +8143,6 @@ var OfferService = /** @class */ (function (_super) {
8127
8143
  method: 'POST',
8128
8144
  expectedStatusCodes: [http_status_1.CREATED],
8129
8145
  body: params
8130
- // qs: {
8131
- // ...(params.expectsMinimalResponse === true) ? { expectsMinimalResponse: '1' } : undefined
8132
- // }
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()];
@@ -8156,6 +8169,24 @@ var OfferService = /** @class */ (function (_super) {
8156
8169
  });
8157
8170
  });
8158
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.OK]
8183
+ })
8184
+ .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
8185
+ return [2 /*return*/, response.json()];
8186
+ }); }); })];
8187
+ });
8188
+ });
8189
+ };
8159
8190
  /**
8160
8191
  * 興行オファー承認変更
8161
8192
  */
@@ -8166,7 +8197,7 @@ var OfferService = /** @class */ (function (_super) {
8166
8197
  return [2 /*return*/, this.fetch({
8167
8198
  uri: "/offers/" + factory.product.ProductType.EventService + "ByCOA/authorize/" + params.id,
8168
8199
  method: 'PATCH',
8169
- expectedStatusCodes: [http_status_1.CREATED],
8200
+ expectedStatusCodes: [http_status_1.OK],
8170
8201
  body: params
8171
8202
  })
8172
8203
  .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cinerino/sdk",
3
- "version": "3.121.0-alpha.1",
3
+ "version": "3.121.0-alpha.4",
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.1",
100
+ "@cinerino/api-abstract-client": "3.121.0-alpha.4",
101
101
  "debug": "^3.2.6",
102
102
  "http-status": "^1.4.2",
103
103
  "idtoken-verifier": "^2.0.3",