@cinerino/sdk 12.5.0-alpha.11 → 12.5.0-alpha.12
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.
|
@@ -39,15 +39,16 @@ export declare class OfferCatalogService extends Service {
|
|
|
39
39
|
id: string;
|
|
40
40
|
}): Promise<void>;
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
42
|
+
* IDリストでカタログ複数編集
|
|
43
|
+
* 要素のpush,pullを同時指定した場合400
|
|
43
44
|
*/
|
|
44
|
-
|
|
45
|
+
updateManyOfferCatalogsByIds(params: {
|
|
45
46
|
id: {
|
|
46
47
|
$in: string[];
|
|
47
48
|
};
|
|
48
49
|
$push: {
|
|
49
50
|
itemListElement: {
|
|
50
|
-
$each: factory.offerCatalog.
|
|
51
|
+
$each: factory.offerCatalog.IItemListElementAsAggregateOffer[];
|
|
51
52
|
};
|
|
52
53
|
};
|
|
53
54
|
$pull: {
|
|
@@ -59,6 +60,8 @@ export declare class OfferCatalogService extends Service {
|
|
|
59
60
|
};
|
|
60
61
|
};
|
|
61
62
|
};
|
|
63
|
+
}, options: {
|
|
64
|
+
itemOfferedTypeOf: factory.product.ProductType;
|
|
62
65
|
}): Promise<void>;
|
|
63
66
|
/**
|
|
64
67
|
* カタログ削除
|
|
@@ -132,18 +132,23 @@ var OfferCatalogService = /** @class */ (function (_super) {
|
|
|
132
132
|
});
|
|
133
133
|
};
|
|
134
134
|
/**
|
|
135
|
-
*
|
|
135
|
+
* IDリストでカタログ複数編集
|
|
136
|
+
* 要素のpush,pullを同時指定した場合400
|
|
136
137
|
*/
|
|
137
|
-
OfferCatalogService.prototype.
|
|
138
|
+
OfferCatalogService.prototype.updateManyOfferCatalogsByIds = function (params, options) {
|
|
138
139
|
return __awaiter(this, void 0, void 0, function () {
|
|
140
|
+
var itemOfferedTypeOf;
|
|
139
141
|
return __generator(this, function (_a) {
|
|
140
142
|
switch (_a.label) {
|
|
141
|
-
case 0:
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
143
|
+
case 0:
|
|
144
|
+
itemOfferedTypeOf = options.itemOfferedTypeOf;
|
|
145
|
+
return [4 /*yield*/, this.fetch({
|
|
146
|
+
uri: "/offerCatalogs",
|
|
147
|
+
method: 'PATCH',
|
|
148
|
+
body: params,
|
|
149
|
+
qs: { itemOfferedTypeOf: itemOfferedTypeOf },
|
|
150
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
151
|
+
})];
|
|
147
152
|
case 1:
|
|
148
153
|
_a.sent();
|
|
149
154
|
return [2 /*return*/];
|
package/lib/bundle.js
CHANGED
|
@@ -12338,18 +12338,23 @@ var OfferCatalogService = /** @class */ (function (_super) {
|
|
|
12338
12338
|
});
|
|
12339
12339
|
};
|
|
12340
12340
|
/**
|
|
12341
|
-
*
|
|
12341
|
+
* IDリストでカタログ複数編集
|
|
12342
|
+
* 要素のpush,pullを同時指定した場合400
|
|
12342
12343
|
*/
|
|
12343
|
-
OfferCatalogService.prototype.
|
|
12344
|
+
OfferCatalogService.prototype.updateManyOfferCatalogsByIds = function (params, options) {
|
|
12344
12345
|
return __awaiter(this, void 0, void 0, function () {
|
|
12346
|
+
var itemOfferedTypeOf;
|
|
12345
12347
|
return __generator(this, function (_a) {
|
|
12346
12348
|
switch (_a.label) {
|
|
12347
|
-
case 0:
|
|
12348
|
-
|
|
12349
|
-
|
|
12350
|
-
|
|
12351
|
-
|
|
12352
|
-
|
|
12349
|
+
case 0:
|
|
12350
|
+
itemOfferedTypeOf = options.itemOfferedTypeOf;
|
|
12351
|
+
return [4 /*yield*/, this.fetch({
|
|
12352
|
+
uri: "/offerCatalogs",
|
|
12353
|
+
method: 'PATCH',
|
|
12354
|
+
body: params,
|
|
12355
|
+
qs: { itemOfferedTypeOf: itemOfferedTypeOf },
|
|
12356
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
12357
|
+
})];
|
|
12353
12358
|
case 1:
|
|
12354
12359
|
_a.sent();
|
|
12355
12360
|
return [2 /*return*/];
|