@cinerino/sdk 3.123.0 → 3.124.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.
@@ -7256,7 +7256,7 @@ var EventService = /** @class */ (function (_super) {
7256
7256
  });
7257
7257
  };
7258
7258
  /**
7259
- * イベントに対するチケットオファー検索
7259
+ * 興行オファー検索
7260
7260
  */
7261
7261
  EventService.prototype.searchTicketOffers = function (params) {
7262
7262
  return __awaiter(this, void 0, void 0, function () {
@@ -7265,6 +7265,7 @@ var EventService = /** @class */ (function (_super) {
7265
7265
  return [2 /*return*/, this.fetch({
7266
7266
  uri: "/events/" + encodeURIComponent(String(params.id)) + "/offers/ticket",
7267
7267
  method: 'GET',
7268
+ qs: params,
7268
7269
  expectedStatusCodes: [http_status_1.OK]
7269
7270
  })
7270
7271
  .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
@@ -14138,7 +14139,7 @@ var EventService = /** @class */ (function (_super) {
14138
14139
  });
14139
14140
  };
14140
14141
  /**
14141
- * イベントに対する券種オファー検索
14142
+ * 興行オファー検索
14142
14143
  */
14143
14144
  EventService.prototype.searchTicketOffers = function (params) {
14144
14145
  return __awaiter(this, void 0, void 0, function () {
@@ -263,7 +263,7 @@ var OAuth2client = /** @class */ (function () {
263
263
  */
264
264
  OAuth2client.prototype.fetch = function (url, options, expectedStatusCodes) {
265
265
  return __awaiter(this, void 0, void 0, function () {
266
- var retry, result, numberOfTry, _a, _b, error_1, statusCode;
266
+ var retry, result, numberOfTry, _a, _b, error_1, statusCode, retryableStatusCodes;
267
267
  return __generator(this, function (_c) {
268
268
  switch (_c.label) {
269
269
  case 0:
@@ -293,7 +293,8 @@ var OAuth2client = /** @class */ (function () {
293
293
  error_1 = _c.sent();
294
294
  if (!(error_1 instanceof Error)) return [3 /*break*/, 8];
295
295
  statusCode = error_1.code;
296
- if (!(retry && (statusCode === http_status_1.UNAUTHORIZED || statusCode === http_status_1.FORBIDDEN))) return [3 /*break*/, 8];
296
+ retryableStatusCodes = [http_status_1.BAD_GATEWAY, http_status_1.FORBIDDEN, http_status_1.UNAUTHORIZED];
297
+ if (!(retry && retryableStatusCodes.includes(statusCode))) return [3 /*break*/, 8];
297
298
  if (!(typeof this.credentials.refresh_token === 'string' && this.credentials.refresh_token.length > 0)) return [3 /*break*/, 7];
298
299
  return [4 /*yield*/, this.refreshAccessToken()];
299
300
  case 6:
package/lib/bundle.js CHANGED
@@ -1206,7 +1206,7 @@ var OAuth2client = /** @class */ (function () {
1206
1206
  */
1207
1207
  OAuth2client.prototype.fetch = function (url, options, expectedStatusCodes) {
1208
1208
  return __awaiter(this, void 0, void 0, function () {
1209
- var retry, result, numberOfTry, _a, _b, error_1, statusCode;
1209
+ var retry, result, numberOfTry, _a, _b, error_1, statusCode, retryableStatusCodes;
1210
1210
  return __generator(this, function (_c) {
1211
1211
  switch (_c.label) {
1212
1212
  case 0:
@@ -1236,7 +1236,8 @@ var OAuth2client = /** @class */ (function () {
1236
1236
  error_1 = _c.sent();
1237
1237
  if (!(error_1 instanceof Error)) return [3 /*break*/, 8];
1238
1238
  statusCode = error_1.code;
1239
- if (!(retry && (statusCode === http_status_1.UNAUTHORIZED || statusCode === http_status_1.FORBIDDEN))) return [3 /*break*/, 8];
1239
+ retryableStatusCodes = [http_status_1.BAD_GATEWAY, http_status_1.FORBIDDEN, http_status_1.UNAUTHORIZED];
1240
+ if (!(retry && retryableStatusCodes.includes(statusCode))) return [3 /*break*/, 8];
1240
1241
  if (!(typeof this.credentials.refresh_token === 'string' && this.credentials.refresh_token.length > 0)) return [3 /*break*/, 7];
1241
1242
  return [4 /*yield*/, this.refreshAccessToken()];
1242
1243
  case 6:
@@ -7256,7 +7257,7 @@ var EventService = /** @class */ (function (_super) {
7256
7257
  });
7257
7258
  };
7258
7259
  /**
7259
- * イベントに対するチケットオファー検索
7260
+ * 興行オファー検索
7260
7261
  */
7261
7262
  EventService.prototype.searchTicketOffers = function (params) {
7262
7263
  return __awaiter(this, void 0, void 0, function () {
@@ -7265,6 +7266,7 @@ var EventService = /** @class */ (function (_super) {
7265
7266
  return [2 /*return*/, this.fetch({
7266
7267
  uri: "/events/" + encodeURIComponent(String(params.id)) + "/offers/ticket",
7267
7268
  method: 'GET',
7269
+ qs: params,
7268
7270
  expectedStatusCodes: [http_status_1.OK]
7269
7271
  })
7270
7272
  .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
@@ -14138,7 +14140,7 @@ var EventService = /** @class */ (function (_super) {
14138
14140
  });
14139
14141
  };
14140
14142
  /**
14141
- * イベントに対する券種オファー検索
14143
+ * 興行オファー検索
14142
14144
  */
14143
14145
  EventService.prototype.searchTicketOffers = function (params) {
14144
14146
  return __awaiter(this, void 0, void 0, function () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cinerino/sdk",
3
- "version": "3.123.0",
3
+ "version": "3.124.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.123.0",
100
+ "@cinerino/api-abstract-client": "3.124.0",
101
101
  "debug": "^3.2.6",
102
102
  "http-status": "^1.4.2",
103
103
  "idtoken-verifier": "^2.0.3",