@cinerino/sdk 3.140.0 → 3.142.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.
Files changed (2) hide show
  1. package/lib/bundle.js +29 -1
  2. package/package.json +2 -2
package/lib/bundle.js CHANGED
@@ -8729,8 +8729,11 @@ var OfferCatalogService = /** @class */ (function (_super) {
8729
8729
  };
8730
8730
  /**
8731
8731
  * オファーカタログ検索
8732
+ * レスポンス最適化(2023-02-28~)
8732
8733
  */
8733
- OfferCatalogService.prototype.search = function (params) {
8734
+ OfferCatalogService.prototype.search = function (params
8735
+ // ): Promise<ISearchResult<factory.offerCatalog.IOfferCatalog[]>> {
8736
+ ) {
8734
8737
  return __awaiter(this, void 0, void 0, function () {
8735
8738
  var _this = this;
8736
8739
  return __generator(this, function (_a) {
@@ -8829,6 +8832,31 @@ var OfferCatalogService = /** @class */ (function (_super) {
8829
8832
  });
8830
8833
  });
8831
8834
  };
8835
+ OfferCatalogService.prototype.searchItemListElement = function (params) {
8836
+ return __awaiter(this, void 0, void 0, function () {
8837
+ var _this = this;
8838
+ return __generator(this, function (_a) {
8839
+ return [2 /*return*/, this.fetch({
8840
+ uri: "/offerCatalogs/" + encodeURIComponent(String(params.id)) + "/itemListElement",
8841
+ method: 'GET',
8842
+ qs: params,
8843
+ expectedStatusCodes: [http_status_1.OK]
8844
+ })
8845
+ .then(function (response) { return __awaiter(_this, void 0, void 0, function () {
8846
+ var _a;
8847
+ return __generator(this, function (_b) {
8848
+ switch (_b.label) {
8849
+ case 0:
8850
+ _a = {};
8851
+ return [4 /*yield*/, response.json()];
8852
+ case 1: return [2 /*return*/, (_a.data = _b.sent(),
8853
+ _a)];
8854
+ }
8855
+ });
8856
+ }); })];
8857
+ });
8858
+ });
8859
+ };
8832
8860
  return OfferCatalogService;
8833
8861
  }(service_1.Service));
8834
8862
  exports.OfferCatalogService = OfferCatalogService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cinerino/sdk",
3
- "version": "3.140.0",
3
+ "version": "3.142.0",
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.140.0",
100
+ "@cinerino/api-abstract-client": "3.142.0",
101
101
  "debug": "^3.2.6",
102
102
  "http-status": "^1.4.2",
103
103
  "idtoken-verifier": "^2.0.3",