@cinerino/sdk 7.0.0 → 7.1.0

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.
@@ -150,7 +150,7 @@ async function main() {
150
150
  });
151
151
  // tslint:disable-next-line:no-null-keyword
152
152
  console.dir(checkMovieTicketAction, { depth: null });
153
- console.log('movieTickets checked. 有効券枚数合計:', checkMovieTicketAction.purchaseNumberAuthResult.ykknmiNumSum);
153
+ console.log('movieTickets checked. 有効券枚数:', checkMovieTicketAction.purchaseNumberAuthResult.ykknmiNumSum);
154
154
 
155
155
  // 決済承認
156
156
  await wait(3000);
@@ -13,4 +13,9 @@ export declare class ActionService extends Service {
13
13
  id: string;
14
14
  typeOf: T;
15
15
  }): Promise<IAction<T>>;
16
+ searchRecipes(params: {
17
+ recipeFor: {
18
+ id: string;
19
+ };
20
+ }): Promise<Pick<factory.recipe.IRecipe, 'recipeCategory' | 'step'>[]>;
16
21
  }
@@ -106,6 +106,21 @@ var ActionService = /** @class */ (function (_super) {
106
106
  });
107
107
  });
108
108
  };
109
+ ActionService.prototype.searchRecipes = function (params) {
110
+ return __awaiter(this, void 0, void 0, function () {
111
+ var _this = this;
112
+ return __generator(this, function (_a) {
113
+ return [2 /*return*/, this.fetch({
114
+ uri: "/actions/" + encodeURIComponent(String(params.recipeFor.id)) + "/recipe",
115
+ method: 'GET',
116
+ expectedStatusCodes: [http_status_1.OK]
117
+ })
118
+ .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
119
+ return [2 /*return*/, response.json()];
120
+ }); }); })];
121
+ });
122
+ });
123
+ };
109
124
  return ActionService;
110
125
  }(service_1.Service));
111
126
  exports.ActionService = ActionService;
@@ -83,7 +83,7 @@ var http_status_1 = require("http-status");
83
83
  var factory = require("../../factory");
84
84
  var index_1 = require("../../index");
85
85
  var service_1 = require("../../service");
86
- var USE_CHECK_MOVIE_TICKET_PAGING_INTERVAL_MS = 300;
86
+ var USE_CHECK_MOVIE_TICKET_PAGING_INTERVAL_MS = 500;
87
87
  var USE_CHECK_MOVIE_TICKET_PAGING_LIMIT = 20;
88
88
  var USE_CHECK_MOVIE_TICKET_PAGING_LIMIT_SSKTS = 100;
89
89
  var USE_FORCE_AUTHORIZE_PAYMENT_ASYNC_GIVE_UP_MS = 10000;