@cinerino/sdk 10.10.0 → 10.11.0-alpha.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.
|
@@ -193,17 +193,18 @@ var IAMService = /** @class */ (function (_super) {
|
|
|
193
193
|
*/
|
|
194
194
|
IAMService.prototype.createMember = function (params) {
|
|
195
195
|
return __awaiter(this, void 0, void 0, function () {
|
|
196
|
-
var _this = this;
|
|
197
196
|
return __generator(this, function (_a) {
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
197
|
+
switch (_a.label) {
|
|
198
|
+
case 0: return [4 /*yield*/, this.fetch({
|
|
199
|
+
uri: '/iam/members',
|
|
200
|
+
method: 'POST',
|
|
201
|
+
body: params,
|
|
202
|
+
expectedStatusCodes: [http_status_1.CREATED, http_status_1.NO_CONTENT]
|
|
203
|
+
})];
|
|
204
|
+
case 1:
|
|
205
|
+
_a.sent();
|
|
206
|
+
return [2 /*return*/];
|
|
207
|
+
}
|
|
207
208
|
});
|
|
208
209
|
});
|
|
209
210
|
};
|
|
@@ -152,7 +152,7 @@ export declare class SellerService extends Service<IOptions> {
|
|
|
152
152
|
/**
|
|
153
153
|
* IAMメンバー作成
|
|
154
154
|
*/
|
|
155
|
-
createMember(params: factory.iam.IMember[]): Promise<
|
|
155
|
+
createMember(params: factory.iam.IMember[]): Promise<void>;
|
|
156
156
|
/**
|
|
157
157
|
* IAMメンバー検索
|
|
158
158
|
*/
|
|
@@ -401,18 +401,20 @@ var SellerService = /** @class */ (function (_super) {
|
|
|
401
401
|
var _a;
|
|
402
402
|
return __awaiter(this, void 0, void 0, function () {
|
|
403
403
|
var sellerId;
|
|
404
|
-
var _this = this;
|
|
405
404
|
return __generator(this, function (_b) {
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
405
|
+
switch (_b.label) {
|
|
406
|
+
case 0:
|
|
407
|
+
sellerId = (_a = params[0]) === null || _a === void 0 ? void 0 : _a.member.memberOf.id;
|
|
408
|
+
return [4 /*yield*/, this.fetch({
|
|
409
|
+
uri: "/sellers/" + String(sellerId) + "/members",
|
|
410
|
+
method: 'POST',
|
|
411
|
+
body: params,
|
|
412
|
+
expectedStatusCodes: [http_status_1.CREATED, http_status_1.NO_CONTENT]
|
|
413
|
+
})];
|
|
414
|
+
case 1:
|
|
415
|
+
_b.sent();
|
|
416
|
+
return [2 /*return*/];
|
|
417
|
+
}
|
|
416
418
|
});
|
|
417
419
|
});
|
|
418
420
|
};
|
package/lib/bundle.js
CHANGED
|
@@ -6702,17 +6702,18 @@ var IAMService = /** @class */ (function (_super) {
|
|
|
6702
6702
|
*/
|
|
6703
6703
|
IAMService.prototype.createMember = function (params) {
|
|
6704
6704
|
return __awaiter(this, void 0, void 0, function () {
|
|
6705
|
-
var _this = this;
|
|
6706
6705
|
return __generator(this, function (_a) {
|
|
6707
|
-
|
|
6708
|
-
|
|
6709
|
-
|
|
6710
|
-
|
|
6711
|
-
|
|
6712
|
-
|
|
6713
|
-
|
|
6714
|
-
|
|
6715
|
-
|
|
6706
|
+
switch (_a.label) {
|
|
6707
|
+
case 0: return [4 /*yield*/, this.fetch({
|
|
6708
|
+
uri: '/iam/members',
|
|
6709
|
+
method: 'POST',
|
|
6710
|
+
body: params,
|
|
6711
|
+
expectedStatusCodes: [http_status_1.CREATED, http_status_1.NO_CONTENT]
|
|
6712
|
+
})];
|
|
6713
|
+
case 1:
|
|
6714
|
+
_a.sent();
|
|
6715
|
+
return [2 /*return*/];
|
|
6716
|
+
}
|
|
6716
6717
|
});
|
|
6717
6718
|
});
|
|
6718
6719
|
};
|
|
@@ -11477,18 +11478,20 @@ var SellerService = /** @class */ (function (_super) {
|
|
|
11477
11478
|
var _a;
|
|
11478
11479
|
return __awaiter(this, void 0, void 0, function () {
|
|
11479
11480
|
var sellerId;
|
|
11480
|
-
var _this = this;
|
|
11481
11481
|
return __generator(this, function (_b) {
|
|
11482
|
-
|
|
11483
|
-
|
|
11484
|
-
|
|
11485
|
-
|
|
11486
|
-
|
|
11487
|
-
|
|
11488
|
-
|
|
11489
|
-
|
|
11490
|
-
|
|
11491
|
-
|
|
11482
|
+
switch (_b.label) {
|
|
11483
|
+
case 0:
|
|
11484
|
+
sellerId = (_a = params[0]) === null || _a === void 0 ? void 0 : _a.member.memberOf.id;
|
|
11485
|
+
return [4 /*yield*/, this.fetch({
|
|
11486
|
+
uri: "/sellers/" + String(sellerId) + "/members",
|
|
11487
|
+
method: 'POST',
|
|
11488
|
+
body: params,
|
|
11489
|
+
expectedStatusCodes: [http_status_1.CREATED, http_status_1.NO_CONTENT]
|
|
11490
|
+
})];
|
|
11491
|
+
case 1:
|
|
11492
|
+
_b.sent();
|
|
11493
|
+
return [2 /*return*/];
|
|
11494
|
+
}
|
|
11492
11495
|
});
|
|
11493
11496
|
});
|
|
11494
11497
|
};
|