@cinerino/sdk 5.1.0 → 5.2.0-alpha.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.
@@ -64,4 +64,7 @@ export declare class OfferCatalogService extends Service {
64
64
  page?: number;
65
65
  }): Promise<ISearchResult<IItemListElement[]>>;
66
66
  sync2aggregateOffers(): Promise<void>;
67
+ convert2offerCatalogItems(params: {
68
+ id: string;
69
+ }): Promise<Pick<ICreateResult, 'id'>>;
67
70
  }
@@ -222,6 +222,21 @@ var OfferCatalogService = /** @class */ (function (_super) {
222
222
  });
223
223
  });
224
224
  };
225
+ OfferCatalogService.prototype.convert2offerCatalogItems = function (params) {
226
+ return __awaiter(this, void 0, void 0, function () {
227
+ var _this = this;
228
+ return __generator(this, function (_a) {
229
+ return [2 /*return*/, this.fetch({
230
+ uri: "/offerCatalogs/" + encodeURIComponent(String(params.id)) + "/convert2offerCatalogItems",
231
+ method: 'PUT',
232
+ expectedStatusCodes: [http_status_1.CREATED, http_status_1.OK]
233
+ })
234
+ .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
235
+ return [2 /*return*/, response.json()];
236
+ }); }); })];
237
+ });
238
+ });
239
+ };
225
240
  return OfferCatalogService;
226
241
  }(service_1.Service));
227
242
  exports.OfferCatalogService = OfferCatalogService;
package/lib/bundle.js CHANGED
@@ -8015,6 +8015,21 @@ var OfferCatalogService = /** @class */ (function (_super) {
8015
8015
  });
8016
8016
  });
8017
8017
  };
8018
+ OfferCatalogService.prototype.convert2offerCatalogItems = function (params) {
8019
+ return __awaiter(this, void 0, void 0, function () {
8020
+ var _this = this;
8021
+ return __generator(this, function (_a) {
8022
+ return [2 /*return*/, this.fetch({
8023
+ uri: "/offerCatalogs/" + encodeURIComponent(String(params.id)) + "/convert2offerCatalogItems",
8024
+ method: 'PUT',
8025
+ expectedStatusCodes: [http_status_1.CREATED, http_status_1.OK]
8026
+ })
8027
+ .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
8028
+ return [2 /*return*/, response.json()];
8029
+ }); }); })];
8030
+ });
8031
+ });
8032
+ };
8018
8033
  return OfferCatalogService;
8019
8034
  }(service_1.Service));
8020
8035
  exports.OfferCatalogService = OfferCatalogService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cinerino/sdk",
3
- "version": "5.1.0",
3
+ "version": "5.2.0-alpha.0",
4
4
  "description": "Cinerino SDK",
5
5
  "main": "./lib/index.js",
6
6
  "browser": {