@cinerino/sdk 10.22.0-alpha.2 → 11.0.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.
- package/example/playground/public/lib/bundle.js +8153 -6839
- package/lib/abstract/chevre/event.d.ts +1 -1
- package/lib/abstract/chevreAdmin/assetTransaction/cancelReservation.d.ts +0 -3
- package/lib/abstract/chevreAdmin/assetTransaction/cancelReservation.js +0 -12
- package/lib/abstract/chevreAdmin/authorization.d.ts +0 -4
- package/lib/abstract/chevreAdmin/authorization.js +0 -19
- package/lib/abstract/chevreAdmin/creativeWork.d.ts +1 -16
- package/lib/abstract/chevreAdmin/creativeWork.js +0 -89
- package/lib/abstract/chevreAdmin/customer.d.ts +1 -20
- package/lib/abstract/chevreAdmin/customer.js +0 -58
- package/lib/abstract/chevreAdmin/event.d.ts +0 -35
- package/lib/abstract/chevreAdmin/event.js +0 -82
- package/lib/abstract/chevreAdmin/eventSeries.d.ts +0 -60
- package/lib/abstract/chevreAdmin/eventSeries.js +0 -112
- package/lib/abstract/chevreAdmin/me.d.ts +0 -8
- package/lib/abstract/chevreAdmin/me.js +0 -18
- package/lib/abstract/chevreAdmin/member.d.ts +0 -14
- package/lib/abstract/chevreAdmin/member.js +0 -66
- package/lib/abstract/chevreAdmin/offer.d.ts +0 -12
- package/lib/abstract/chevreAdmin/offer.js +0 -39
- package/lib/abstract/chevreAdmin/offerCatalog.d.ts +0 -70
- package/lib/abstract/chevreAdmin/offerCatalog.js +0 -160
- package/lib/abstract/chevreAdmin/offerCatalogItem.d.ts +0 -40
- package/lib/abstract/chevreAdmin/offerCatalogItem.js +0 -98
- package/lib/abstract/chevreAdmin/order.d.ts +1 -79
- package/lib/abstract/chevreAdmin/order.js +0 -125
- package/lib/abstract/chevreAdmin/product.d.ts +0 -36
- package/lib/abstract/chevreAdmin/product.js +0 -129
- package/lib/abstract/chevreAdmin/reservation.d.ts +1 -10
- package/lib/abstract/chevreAdmin/reservation.js +0 -20
- package/lib/abstract/chevreAdmin.d.ts +0 -504
- package/lib/abstract/chevreAdmin.js +60 -1177
- package/lib/abstract/chevreConsole/authorization.d.ts +72 -0
- package/lib/abstract/chevreConsole/authorization.js +86 -0
- package/lib/abstract/chevreConsole/creativeWork.d.ts +22 -0
- package/lib/abstract/chevreConsole/creativeWork.js +156 -0
- package/lib/abstract/chevreConsole/customer.d.ts +31 -0
- package/lib/abstract/chevreConsole/customer.js +125 -0
- package/lib/abstract/chevreConsole/event.d.ts +43 -0
- package/lib/abstract/chevreConsole/event.js +149 -0
- package/lib/abstract/chevreConsole/eventSeries.d.ts +67 -0
- package/lib/abstract/chevreConsole/eventSeries.js +180 -0
- package/lib/abstract/chevreConsole/me.d.ts +28 -0
- package/lib/abstract/chevreConsole/me.js +124 -0
- package/lib/abstract/chevreConsole/member.d.ts +22 -0
- package/lib/abstract/chevreConsole/member.js +134 -0
- package/lib/abstract/chevreConsole/offer.d.ts +34 -0
- package/lib/abstract/chevreConsole/offer.js +125 -0
- package/lib/abstract/chevreConsole/offerCatalog.d.ts +77 -0
- package/lib/abstract/chevreConsole/offerCatalog.js +227 -0
- package/lib/abstract/chevreConsole/offerCatalogItem.d.ts +63 -0
- package/lib/abstract/chevreConsole/offerCatalogItem.js +181 -0
- package/lib/abstract/chevreConsole/order.d.ts +86 -0
- package/lib/abstract/chevreConsole/order.js +192 -0
- package/lib/abstract/chevreConsole/product.d.ts +45 -0
- package/lib/abstract/chevreConsole/product.js +196 -0
- package/lib/abstract/chevreConsole/reservation.d.ts +15 -0
- package/lib/abstract/chevreConsole/reservation.js +87 -0
- package/lib/abstract/chevreConsole.d.ts +634 -0
- package/lib/abstract/chevreConsole.js +1445 -0
- package/lib/abstract/cinerino/service/event.d.ts +1 -1
- package/lib/abstract/cloud/admin/order.d.ts +1 -1
- package/lib/abstract/cloud/admin/reservation.d.ts +1 -1
- package/lib/abstract/index.d.ts +3 -1
- package/lib/abstract/index.js +24 -1
- package/lib/bundle.js +8191 -6877
- package/lib/index.d.ts +2 -2
- package/lib/index.js +2 -1
- package/package.json +1 -1
- package/example/src/chevre/adminMovies.ts +0 -45
- package/example/src/chevre/adminProjectHasMerchantReturnPolicy.ts +0 -30
- package/example/src/chevre/adminSearchIssuers.ts +0 -32
- package/example/src/chevre/adminSearchSellers.ts +0 -32
- package/example/src/chevre/adminSearchTickets.ts +0 -32
- package/example/src/chevre/assetTransaction/processMoneyTransfer.ts +0 -74
- package/example/src/chevre/assetTransaction/processRegisterService.ts +0 -70
- package/example/src/chevre/assetTransaction/processReserve.ts +0 -193
- package/example/src/chevre/findPerson.ts +0 -33
- package/example/src/chevre/searchMessages.ts +0 -34
- package/example/src/chevre/searchTransactions.ts +0 -36
- /package/lib/abstract/{chevreAdmin → chevreConsole}/account.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/account.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/accountTitle.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/accountTitle.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/accountTransaction.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/accountTransaction.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/accountingReport.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/accountingReport.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/action.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/action.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/additionalProperty.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/additionalProperty.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/advanceBookingRequirement.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/advanceBookingRequirement.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/aggregateOffer.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/aggregateOffer.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/aggregateReservation.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/aggregateReservation.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/aggregation.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/aggregation.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/assetTransaction/moneyTransfer.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/assetTransaction/moneyTransfer.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/assetTransaction/pay.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/assetTransaction/pay.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/assetTransaction/registerService.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/assetTransaction/registerService.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/assetTransaction/reserve.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/assetTransaction/reserve.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/assetTransaction.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/assetTransaction.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/categoryCode.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/categoryCode.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/comment.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/comment.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/customerType.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/customerType.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/emailMessage.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/emailMessage.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/event/factory.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/event/factory.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/eventOffer.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/eventOffer.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/hasMerchantReturnPolicy.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/hasMerchantReturnPolicy.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/iam.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/iam.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/identity.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/identity.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/identityProvider.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/identityProvider.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/issuer.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/issuer.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/memberProgram.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/memberProgram.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/merchantReturnPolicy.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/merchantReturnPolicy.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/message.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/message.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/offerItemCondition.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/offerItemCondition.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/order/factory.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/order/factory.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/ownershipInfo.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/ownershipInfo.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/paymentService.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/paymentService.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/paymentServiceChannel.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/paymentServiceChannel.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/pendingReservation.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/pendingReservation.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/permission.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/permission.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/permit.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/permit.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/person/ownershipInfo.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/person/ownershipInfo.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/person.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/person.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/place/hasPOS.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/place/hasPOS.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/place.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/place.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/priceSpecification.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/priceSpecification.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/productModel.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/productModel.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/project.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/project.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/projectMakesOffer.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/projectMakesOffer.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/reservation/factory.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/reservation/factory.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/seller/factory.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/seller/factory.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/seller.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/seller.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/sellerReturnPolicy.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/sellerReturnPolicy.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/task.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/task.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/ticket.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/ticket.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/token.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/token.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/transaction/moneyTransfer.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/transaction/moneyTransfer.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/transaction/placeOrder.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/transaction/placeOrder.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/transaction/returnOrder.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/transaction/returnOrder.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/transaction.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/transaction.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/transactionNumber.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/transactionNumber.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/trip.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/trip.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/userPool.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/userPool.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/webSite.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/webSite.js +0 -0
|
@@ -101,24 +101,6 @@ var MeService = /** @class */ (function (_super) {
|
|
|
101
101
|
});
|
|
102
102
|
});
|
|
103
103
|
};
|
|
104
|
-
/**
|
|
105
|
-
* リクエストユーザーのPMとしてのロールを検索する
|
|
106
|
-
*/
|
|
107
|
-
MeService.prototype.searchMemberHasRoleOnProject = function (params) {
|
|
108
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
109
|
-
var _this = this;
|
|
110
|
-
return __generator(this, function (_a) {
|
|
111
|
-
return [2 /*return*/, this.fetch({
|
|
112
|
-
uri: "/members/me/projects/" + params.project.id + "/hasRole",
|
|
113
|
-
method: 'GET',
|
|
114
|
-
expectedStatusCodes: [http_status_1.OK]
|
|
115
|
-
})
|
|
116
|
-
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
117
|
-
return [2 /*return*/, response.json()];
|
|
118
|
-
}); }); })];
|
|
119
|
-
});
|
|
120
|
-
});
|
|
121
|
-
};
|
|
122
104
|
return MeService;
|
|
123
105
|
}(service_1.Service));
|
|
124
106
|
exports.MeService = MeService;
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import * as factory from '../factory';
|
|
2
2
|
import { Service } from '../service';
|
|
3
|
-
interface IBody {
|
|
4
|
-
member: Pick<factory.iam.IMemberOfRole, 'id' | 'name'> & {
|
|
5
|
-
hasRole: Pick<factory.iam.IMemberRole, 'roleName'>[];
|
|
6
|
-
};
|
|
7
|
-
}
|
|
8
3
|
export declare type IMember = Pick<factory.iam.IMemberOfRole, 'id' | 'name'>;
|
|
9
4
|
/**
|
|
10
5
|
* メンバーサービス
|
|
@@ -20,13 +15,4 @@ export declare class MemberService extends Service {
|
|
|
20
15
|
limit?: number;
|
|
21
16
|
page?: number;
|
|
22
17
|
}): Promise<IMember[]>;
|
|
23
|
-
createWebApplication(params: IBody): Promise<void>;
|
|
24
|
-
searchWebApplications(params: factory.iam.ISearchConditions): Promise<factory.iam.IMember[]>;
|
|
25
|
-
updateWebApplication(params: IBody): Promise<void>;
|
|
26
|
-
deleteWebApplication(params: {
|
|
27
|
-
member: {
|
|
28
|
-
id: string;
|
|
29
|
-
};
|
|
30
|
-
}): Promise<void>;
|
|
31
18
|
}
|
|
32
|
-
export {};
|
|
@@ -82,72 +82,6 @@ var MemberService = /** @class */ (function (_super) {
|
|
|
82
82
|
});
|
|
83
83
|
});
|
|
84
84
|
};
|
|
85
|
-
MemberService.prototype.createWebApplication = function (params) {
|
|
86
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
87
|
-
return __generator(this, function (_a) {
|
|
88
|
-
switch (_a.label) {
|
|
89
|
-
case 0: return [4 /*yield*/, this.fetch({
|
|
90
|
-
uri: "/members/" + factory.creativeWorkType.WebApplication,
|
|
91
|
-
method: 'POST',
|
|
92
|
-
body: params,
|
|
93
|
-
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
94
|
-
})];
|
|
95
|
-
case 1:
|
|
96
|
-
_a.sent();
|
|
97
|
-
return [2 /*return*/];
|
|
98
|
-
}
|
|
99
|
-
});
|
|
100
|
-
});
|
|
101
|
-
};
|
|
102
|
-
MemberService.prototype.searchWebApplications = function (params) {
|
|
103
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
104
|
-
var _this = this;
|
|
105
|
-
return __generator(this, function (_a) {
|
|
106
|
-
return [2 /*return*/, this.fetch({
|
|
107
|
-
uri: "/members/" + factory.creativeWorkType.WebApplication,
|
|
108
|
-
method: 'GET',
|
|
109
|
-
qs: params,
|
|
110
|
-
expectedStatusCodes: [http_status_1.OK]
|
|
111
|
-
})
|
|
112
|
-
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
113
|
-
return [2 /*return*/, response.json()];
|
|
114
|
-
}); }); })];
|
|
115
|
-
});
|
|
116
|
-
});
|
|
117
|
-
};
|
|
118
|
-
MemberService.prototype.updateWebApplication = function (params) {
|
|
119
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
120
|
-
return __generator(this, function (_a) {
|
|
121
|
-
switch (_a.label) {
|
|
122
|
-
case 0: return [4 /*yield*/, this.fetch({
|
|
123
|
-
uri: "/members/" + factory.creativeWorkType.WebApplication + "/" + params.member.id,
|
|
124
|
-
method: 'PUT',
|
|
125
|
-
body: params,
|
|
126
|
-
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
127
|
-
})];
|
|
128
|
-
case 1:
|
|
129
|
-
_a.sent();
|
|
130
|
-
return [2 /*return*/];
|
|
131
|
-
}
|
|
132
|
-
});
|
|
133
|
-
});
|
|
134
|
-
};
|
|
135
|
-
MemberService.prototype.deleteWebApplication = function (params) {
|
|
136
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
137
|
-
return __generator(this, function (_a) {
|
|
138
|
-
switch (_a.label) {
|
|
139
|
-
case 0: return [4 /*yield*/, this.fetch({
|
|
140
|
-
uri: "/members/" + factory.creativeWorkType.WebApplication + "/" + params.member.id,
|
|
141
|
-
method: 'DELETE',
|
|
142
|
-
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
143
|
-
})];
|
|
144
|
-
case 1:
|
|
145
|
-
_a.sent();
|
|
146
|
-
return [2 /*return*/];
|
|
147
|
-
}
|
|
148
|
-
});
|
|
149
|
-
});
|
|
150
|
-
};
|
|
151
85
|
return MemberService;
|
|
152
86
|
}(service_1.Service));
|
|
153
87
|
exports.MemberService = MemberService;
|
|
@@ -15,21 +15,9 @@ export declare type IUnitPriceOfferAsSearchResult = factory.unitPriceOffer.IUnit
|
|
|
15
15
|
* 単価オファーサービス
|
|
16
16
|
*/
|
|
17
17
|
export declare class OfferService extends Service {
|
|
18
|
-
/**
|
|
19
|
-
* オファー作成
|
|
20
|
-
*/
|
|
21
|
-
create(params: factory.unitPriceOffer.ICreateParams): Promise<{
|
|
22
|
-
id: string;
|
|
23
|
-
}>;
|
|
24
18
|
/**
|
|
25
19
|
* オファー検索
|
|
26
20
|
*/
|
|
27
21
|
search(params: Omit<factory.unitPriceOffer.ISearchConditions, 'project'> & IProjectionSearchConditions): Promise<IUnitPriceOfferAsSearchResult[]>;
|
|
28
|
-
/**
|
|
29
|
-
* オファー更新
|
|
30
|
-
*/
|
|
31
|
-
update(params: factory.unitPriceOffer.ICreateParams & {
|
|
32
|
-
id: string;
|
|
33
|
-
}): Promise<void>;
|
|
34
22
|
upsertByIdentifier(params: factory.unitPriceOffer.ICreateParams[]): Promise<void>;
|
|
35
23
|
}
|
|
@@ -62,25 +62,6 @@ var OfferService = /** @class */ (function (_super) {
|
|
|
62
62
|
function OfferService() {
|
|
63
63
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
64
64
|
}
|
|
65
|
-
/**
|
|
66
|
-
* オファー作成
|
|
67
|
-
*/
|
|
68
|
-
OfferService.prototype.create = function (params) {
|
|
69
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
70
|
-
var _this = this;
|
|
71
|
-
return __generator(this, function (_a) {
|
|
72
|
-
return [2 /*return*/, this.fetch({
|
|
73
|
-
uri: '/offers',
|
|
74
|
-
method: 'POST',
|
|
75
|
-
body: params,
|
|
76
|
-
expectedStatusCodes: [http_status_1.CREATED]
|
|
77
|
-
})
|
|
78
|
-
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
79
|
-
return [2 /*return*/, response.json()];
|
|
80
|
-
}); }); })];
|
|
81
|
-
});
|
|
82
|
-
});
|
|
83
|
-
};
|
|
84
65
|
/**
|
|
85
66
|
* オファー検索
|
|
86
67
|
*/
|
|
@@ -100,26 +81,6 @@ var OfferService = /** @class */ (function (_super) {
|
|
|
100
81
|
});
|
|
101
82
|
});
|
|
102
83
|
};
|
|
103
|
-
/**
|
|
104
|
-
* オファー更新
|
|
105
|
-
*/
|
|
106
|
-
OfferService.prototype.update = function (params) {
|
|
107
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
108
|
-
return __generator(this, function (_a) {
|
|
109
|
-
switch (_a.label) {
|
|
110
|
-
case 0: return [4 /*yield*/, this.fetch({
|
|
111
|
-
uri: "/offers/" + encodeURIComponent(String(params.id)),
|
|
112
|
-
method: 'PUT',
|
|
113
|
-
body: params,
|
|
114
|
-
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
115
|
-
})];
|
|
116
|
-
case 1:
|
|
117
|
-
_a.sent();
|
|
118
|
-
return [2 /*return*/];
|
|
119
|
-
}
|
|
120
|
-
});
|
|
121
|
-
});
|
|
122
|
-
};
|
|
123
84
|
OfferService.prototype.upsertByIdentifier = function (params) {
|
|
124
85
|
return __awaiter(this, void 0, void 0, function () {
|
|
125
86
|
return __generator(this, function (_a) {
|
|
@@ -1,78 +1,8 @@
|
|
|
1
1
|
import * as factory from '../factory';
|
|
2
2
|
import { Service } from '../service';
|
|
3
|
-
declare type IOfferCatalogAsSearchResult = Pick<factory.offerCatalog.IOfferCatalog, 'id' | 'name' | 'description' | 'project' | 'typeOf' | 'identifier' | 'itemOffered' | 'additionalProperty'> & {
|
|
4
|
-
/**
|
|
5
|
-
* アイテム数
|
|
6
|
-
*/
|
|
7
|
-
numberOfItems?: number;
|
|
8
|
-
/**
|
|
9
|
-
* アイテムタイプ
|
|
10
|
-
*/
|
|
11
|
-
itemListElementTypeOf: factory.offerType.Offer | 'OfferCatalog';
|
|
12
|
-
};
|
|
13
|
-
declare type IItemAsOffer = Pick<factory.unitPriceOffer.IUnitPriceOffer, 'id' | 'identifier' | 'name' | 'alternateName' | 'priceSpecification' | 'typeOf'> & {
|
|
14
|
-
sortIndex?: number;
|
|
15
|
-
};
|
|
16
|
-
declare type IItemAsOfferCatalog = Pick<factory.offerCatalog.IOfferCatalog, 'id' | 'name' | 'description' | 'typeOf' | 'identifier' | 'itemOffered' | 'additionalProperty' | 'relatedOffer'> & {
|
|
17
|
-
sortIndex?: number;
|
|
18
|
-
};
|
|
19
|
-
declare type IItemListElement = IItemAsOffer | IItemAsOfferCatalog;
|
|
20
|
-
interface ICreateResult {
|
|
21
|
-
id: string;
|
|
22
|
-
}
|
|
23
3
|
/**
|
|
24
4
|
* カタログサービス
|
|
25
5
|
*/
|
|
26
6
|
export declare class OfferCatalogService extends Service {
|
|
27
|
-
/**
|
|
28
|
-
* カタログ作成
|
|
29
|
-
*/
|
|
30
|
-
create(params: Omit<factory.offerCatalog.IOfferCatalog, 'id' | 'project' | 'typeOf' | 'relatedOffer'>): Promise<ICreateResult>;
|
|
31
|
-
/**
|
|
32
|
-
* カタログ検索
|
|
33
|
-
*/
|
|
34
|
-
search(params: Omit<factory.offerCatalog.ISearchConditions, 'project' | 'relatedOffer'>): Promise<IOfferCatalogAsSearchResult[]>;
|
|
35
|
-
/**
|
|
36
|
-
* カタログ更新
|
|
37
|
-
*/
|
|
38
|
-
update(params: Omit<factory.offerCatalog.IOfferCatalog, 'project' | 'typeOf' | 'relatedOffer'> & {
|
|
39
|
-
id: string;
|
|
40
|
-
}): Promise<void>;
|
|
41
7
|
upsertByIdentifier(params: Pick<factory.offerCatalog.IOfferCatalog, 'additionalProperty' | 'description' | 'identifier' | 'itemListElement' | 'itemOffered' | 'name'>[]): Promise<void>;
|
|
42
|
-
/**
|
|
43
|
-
* カタログ複数編集
|
|
44
|
-
*/
|
|
45
|
-
updateMany(params: {
|
|
46
|
-
id: {
|
|
47
|
-
$in: string[];
|
|
48
|
-
};
|
|
49
|
-
$push: {
|
|
50
|
-
itemListElement: {
|
|
51
|
-
$each: factory.offerCatalog.IItemListElement[];
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
$pull: {
|
|
55
|
-
itemListElement: {
|
|
56
|
-
$elemMatch: {
|
|
57
|
-
id: {
|
|
58
|
-
$in: string[];
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
}): Promise<void>;
|
|
64
|
-
/**
|
|
65
|
-
* カタログ削除
|
|
66
|
-
*/
|
|
67
|
-
deleteById(params: {
|
|
68
|
-
id: string;
|
|
69
|
-
}): Promise<void>;
|
|
70
|
-
searchItemListElement(params: {
|
|
71
|
-
id: string;
|
|
72
|
-
limit?: number;
|
|
73
|
-
page?: number;
|
|
74
|
-
}): Promise<IItemListElement[]>;
|
|
75
|
-
sync2aggregateOffers(): Promise<void>;
|
|
76
|
-
convert2offerCatalogItems(params: Pick<factory.offerCatalog.IOfferCatalog, 'id' | 'identifier' | 'name'>): Promise<Pick<ICreateResult, 'id'>>;
|
|
77
8
|
}
|
|
78
|
-
export {};
|
|
@@ -50,17 +50,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
50
50
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
51
51
|
}
|
|
52
52
|
};
|
|
53
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
54
|
-
var t = {};
|
|
55
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
56
|
-
t[p] = s[p];
|
|
57
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
58
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
59
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
60
|
-
t[p[i]] = s[p[i]];
|
|
61
|
-
}
|
|
62
|
-
return t;
|
|
63
|
-
};
|
|
64
53
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
65
54
|
exports.OfferCatalogService = void 0;
|
|
66
55
|
var http_status_1 = require("http-status");
|
|
@@ -73,64 +62,6 @@ var OfferCatalogService = /** @class */ (function (_super) {
|
|
|
73
62
|
function OfferCatalogService() {
|
|
74
63
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
75
64
|
}
|
|
76
|
-
/**
|
|
77
|
-
* カタログ作成
|
|
78
|
-
*/
|
|
79
|
-
OfferCatalogService.prototype.create = function (params) {
|
|
80
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
81
|
-
var _this = this;
|
|
82
|
-
return __generator(this, function (_a) {
|
|
83
|
-
return [2 /*return*/, this.fetch({
|
|
84
|
-
uri: '/offerCatalogs',
|
|
85
|
-
method: 'POST',
|
|
86
|
-
body: params,
|
|
87
|
-
expectedStatusCodes: [http_status_1.CREATED]
|
|
88
|
-
})
|
|
89
|
-
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
90
|
-
return [2 /*return*/, response.json()];
|
|
91
|
-
}); }); })];
|
|
92
|
-
});
|
|
93
|
-
});
|
|
94
|
-
};
|
|
95
|
-
/**
|
|
96
|
-
* カタログ検索
|
|
97
|
-
*/
|
|
98
|
-
OfferCatalogService.prototype.search = function (params) {
|
|
99
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
100
|
-
var _this = this;
|
|
101
|
-
return __generator(this, function (_a) {
|
|
102
|
-
return [2 /*return*/, this.fetch({
|
|
103
|
-
uri: '/offerCatalogs',
|
|
104
|
-
method: 'GET',
|
|
105
|
-
qs: params,
|
|
106
|
-
expectedStatusCodes: [http_status_1.OK]
|
|
107
|
-
})
|
|
108
|
-
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
109
|
-
return [2 /*return*/, response.json()];
|
|
110
|
-
}); }); })];
|
|
111
|
-
});
|
|
112
|
-
});
|
|
113
|
-
};
|
|
114
|
-
/**
|
|
115
|
-
* カタログ更新
|
|
116
|
-
*/
|
|
117
|
-
OfferCatalogService.prototype.update = function (params) {
|
|
118
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
119
|
-
return __generator(this, function (_a) {
|
|
120
|
-
switch (_a.label) {
|
|
121
|
-
case 0: return [4 /*yield*/, this.fetch({
|
|
122
|
-
uri: "/offerCatalogs/" + encodeURIComponent(String(params.id)),
|
|
123
|
-
method: 'PUT',
|
|
124
|
-
body: params,
|
|
125
|
-
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
126
|
-
})];
|
|
127
|
-
case 1:
|
|
128
|
-
_a.sent();
|
|
129
|
-
return [2 /*return*/];
|
|
130
|
-
}
|
|
131
|
-
});
|
|
132
|
-
});
|
|
133
|
-
};
|
|
134
65
|
OfferCatalogService.prototype.upsertByIdentifier = function (params) {
|
|
135
66
|
return __awaiter(this, void 0, void 0, function () {
|
|
136
67
|
return __generator(this, function (_a) {
|
|
@@ -149,97 +80,6 @@ var OfferCatalogService = /** @class */ (function (_super) {
|
|
|
149
80
|
});
|
|
150
81
|
});
|
|
151
82
|
};
|
|
152
|
-
/**
|
|
153
|
-
* カタログ複数編集
|
|
154
|
-
*/
|
|
155
|
-
OfferCatalogService.prototype.updateMany = function (params) {
|
|
156
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
157
|
-
return __generator(this, function (_a) {
|
|
158
|
-
switch (_a.label) {
|
|
159
|
-
case 0: return [4 /*yield*/, this.fetch({
|
|
160
|
-
uri: "/offerCatalogs",
|
|
161
|
-
method: 'PATCH',
|
|
162
|
-
body: params,
|
|
163
|
-
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
164
|
-
})];
|
|
165
|
-
case 1:
|
|
166
|
-
_a.sent();
|
|
167
|
-
return [2 /*return*/];
|
|
168
|
-
}
|
|
169
|
-
});
|
|
170
|
-
});
|
|
171
|
-
};
|
|
172
|
-
/**
|
|
173
|
-
* カタログ削除
|
|
174
|
-
*/
|
|
175
|
-
OfferCatalogService.prototype.deleteById = function (params) {
|
|
176
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
177
|
-
return __generator(this, function (_a) {
|
|
178
|
-
switch (_a.label) {
|
|
179
|
-
case 0: return [4 /*yield*/, this.fetch({
|
|
180
|
-
uri: "/offerCatalogs/" + encodeURIComponent(String(params.id)),
|
|
181
|
-
method: 'DELETE',
|
|
182
|
-
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
183
|
-
})];
|
|
184
|
-
case 1:
|
|
185
|
-
_a.sent();
|
|
186
|
-
return [2 /*return*/];
|
|
187
|
-
}
|
|
188
|
-
});
|
|
189
|
-
});
|
|
190
|
-
};
|
|
191
|
-
OfferCatalogService.prototype.searchItemListElement = function (params) {
|
|
192
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
193
|
-
var id, query;
|
|
194
|
-
var _this = this;
|
|
195
|
-
return __generator(this, function (_a) {
|
|
196
|
-
id = params.id, query = __rest(params, ["id"]);
|
|
197
|
-
return [2 /*return*/, this.fetch({
|
|
198
|
-
uri: "/offerCatalogs/" + encodeURIComponent(String(id)) + "/itemListElement",
|
|
199
|
-
method: 'GET',
|
|
200
|
-
qs: query,
|
|
201
|
-
expectedStatusCodes: [http_status_1.OK]
|
|
202
|
-
})
|
|
203
|
-
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
204
|
-
return [2 /*return*/, response.json()];
|
|
205
|
-
}); }); })];
|
|
206
|
-
});
|
|
207
|
-
});
|
|
208
|
-
};
|
|
209
|
-
OfferCatalogService.prototype.sync2aggregateOffers = function () {
|
|
210
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
211
|
-
return __generator(this, function (_a) {
|
|
212
|
-
switch (_a.label) {
|
|
213
|
-
case 0: return [4 /*yield*/, this.fetch({
|
|
214
|
-
uri: '/offerCatalogs/sync2aggregateOffers',
|
|
215
|
-
method: 'POST',
|
|
216
|
-
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
217
|
-
})];
|
|
218
|
-
case 1:
|
|
219
|
-
_a.sent();
|
|
220
|
-
return [2 /*return*/];
|
|
221
|
-
}
|
|
222
|
-
});
|
|
223
|
-
});
|
|
224
|
-
};
|
|
225
|
-
OfferCatalogService.prototype.convert2offerCatalogItems = function (params) {
|
|
226
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
227
|
-
var id, body;
|
|
228
|
-
var _this = this;
|
|
229
|
-
return __generator(this, function (_a) {
|
|
230
|
-
id = params.id, body = __rest(params, ["id"]);
|
|
231
|
-
return [2 /*return*/, this.fetch({
|
|
232
|
-
uri: "/offerCatalogs/" + encodeURIComponent(String(params.id)) + "/convert2offerCatalogItems",
|
|
233
|
-
method: 'PUT',
|
|
234
|
-
body: body,
|
|
235
|
-
expectedStatusCodes: [http_status_1.CREATED, http_status_1.OK]
|
|
236
|
-
})
|
|
237
|
-
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
238
|
-
return [2 /*return*/, response.json()];
|
|
239
|
-
}); }); })];
|
|
240
|
-
});
|
|
241
|
-
});
|
|
242
|
-
};
|
|
243
83
|
return OfferCatalogService;
|
|
244
84
|
}(service_1.Service));
|
|
245
85
|
exports.OfferCatalogService = OfferCatalogService;
|
|
@@ -10,55 +10,15 @@ declare type IOfferCatalogAsSearchResult = Pick<factory.offerCatalog.IOfferCatal
|
|
|
10
10
|
*/
|
|
11
11
|
itemListElementTypeOf: factory.offerType.Offer;
|
|
12
12
|
};
|
|
13
|
-
declare type IItemListElement = Pick<factory.unitPriceOffer.IUnitPriceOffer, 'id' | 'identifier' | 'name' | 'alternateName' | 'priceSpecification' | 'typeOf'> & {
|
|
14
|
-
sortIndex?: number;
|
|
15
|
-
};
|
|
16
|
-
interface ICreateResult {
|
|
17
|
-
id: string;
|
|
18
|
-
}
|
|
19
13
|
/**
|
|
20
14
|
* サブカタログサービス
|
|
21
15
|
*/
|
|
22
16
|
export declare class OfferCatalogItemService extends Service {
|
|
23
|
-
create(params: Omit<factory.offerCatalog.IOfferCatalog, 'id' | 'project' | 'typeOf'>): Promise<ICreateResult>;
|
|
24
17
|
search(params: Omit<factory.offerCatalog.ISearchConditions, 'project'> & {
|
|
25
18
|
$projection?: {
|
|
26
19
|
[key in keyof factory.offerCatalog.IOfferCatalog]?: 0 | 1;
|
|
27
20
|
};
|
|
28
21
|
}): Promise<IOfferCatalogAsSearchResult[]>;
|
|
29
|
-
update(params: Omit<factory.offerCatalog.IOfferCatalog, 'project' | 'typeOf'> & {
|
|
30
|
-
id: string;
|
|
31
|
-
}): Promise<void>;
|
|
32
22
|
upsertByIdentifier(params: Pick<factory.offerCatalog.IOfferCatalog, 'additionalProperty' | 'description' | 'identifier' | 'itemListElement' | 'itemOffered' | 'name' | 'relatedOffer'>[]): Promise<void>;
|
|
33
|
-
/**
|
|
34
|
-
* サブカタログ複数編集
|
|
35
|
-
*/
|
|
36
|
-
updateMany(params: {
|
|
37
|
-
id: {
|
|
38
|
-
$in: string[];
|
|
39
|
-
};
|
|
40
|
-
$push: {
|
|
41
|
-
itemListElement: {
|
|
42
|
-
$each: factory.offerCatalog.IItemListElement[];
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
$pull: {
|
|
46
|
-
itemListElement: {
|
|
47
|
-
$elemMatch: {
|
|
48
|
-
id: {
|
|
49
|
-
$in: string[];
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
}): Promise<void>;
|
|
55
|
-
deleteById(params: {
|
|
56
|
-
id: string;
|
|
57
|
-
}): Promise<void>;
|
|
58
|
-
searchItemListElement(params: {
|
|
59
|
-
id: string;
|
|
60
|
-
limit?: number;
|
|
61
|
-
page?: number;
|
|
62
|
-
}): Promise<IItemListElement[]>;
|
|
63
23
|
}
|
|
64
24
|
export {};
|
|
@@ -50,17 +50,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
50
50
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
51
51
|
}
|
|
52
52
|
};
|
|
53
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
54
|
-
var t = {};
|
|
55
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
56
|
-
t[p] = s[p];
|
|
57
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
58
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
59
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
60
|
-
t[p[i]] = s[p[i]];
|
|
61
|
-
}
|
|
62
|
-
return t;
|
|
63
|
-
};
|
|
64
53
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
65
54
|
exports.OfferCatalogItemService = void 0;
|
|
66
55
|
var http_status_1 = require("http-status");
|
|
@@ -73,22 +62,6 @@ var OfferCatalogItemService = /** @class */ (function (_super) {
|
|
|
73
62
|
function OfferCatalogItemService() {
|
|
74
63
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
75
64
|
}
|
|
76
|
-
OfferCatalogItemService.prototype.create = function (params) {
|
|
77
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
78
|
-
var _this = this;
|
|
79
|
-
return __generator(this, function (_a) {
|
|
80
|
-
return [2 /*return*/, this.fetch({
|
|
81
|
-
uri: '/offerCatalogItems',
|
|
82
|
-
method: 'POST',
|
|
83
|
-
body: params,
|
|
84
|
-
expectedStatusCodes: [http_status_1.CREATED]
|
|
85
|
-
})
|
|
86
|
-
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
87
|
-
return [2 /*return*/, response.json()];
|
|
88
|
-
}); }); })];
|
|
89
|
-
});
|
|
90
|
-
});
|
|
91
|
-
};
|
|
92
65
|
OfferCatalogItemService.prototype.search = function (params) {
|
|
93
66
|
return __awaiter(this, void 0, void 0, function () {
|
|
94
67
|
var _this = this;
|
|
@@ -105,23 +78,6 @@ var OfferCatalogItemService = /** @class */ (function (_super) {
|
|
|
105
78
|
});
|
|
106
79
|
});
|
|
107
80
|
};
|
|
108
|
-
OfferCatalogItemService.prototype.update = function (params) {
|
|
109
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
110
|
-
return __generator(this, function (_a) {
|
|
111
|
-
switch (_a.label) {
|
|
112
|
-
case 0: return [4 /*yield*/, this.fetch({
|
|
113
|
-
uri: "/offerCatalogItems/" + encodeURIComponent(String(params.id)),
|
|
114
|
-
method: 'PUT',
|
|
115
|
-
body: params,
|
|
116
|
-
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
117
|
-
})];
|
|
118
|
-
case 1:
|
|
119
|
-
_a.sent();
|
|
120
|
-
return [2 /*return*/];
|
|
121
|
-
}
|
|
122
|
-
});
|
|
123
|
-
});
|
|
124
|
-
};
|
|
125
81
|
OfferCatalogItemService.prototype.upsertByIdentifier = function (params) {
|
|
126
82
|
return __awaiter(this, void 0, void 0, function () {
|
|
127
83
|
return __generator(this, function (_a) {
|
|
@@ -140,60 +96,6 @@ var OfferCatalogItemService = /** @class */ (function (_super) {
|
|
|
140
96
|
});
|
|
141
97
|
});
|
|
142
98
|
};
|
|
143
|
-
/**
|
|
144
|
-
* サブカタログ複数編集
|
|
145
|
-
*/
|
|
146
|
-
OfferCatalogItemService.prototype.updateMany = function (params) {
|
|
147
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
148
|
-
return __generator(this, function (_a) {
|
|
149
|
-
switch (_a.label) {
|
|
150
|
-
case 0: return [4 /*yield*/, this.fetch({
|
|
151
|
-
uri: "/offerCatalogItems",
|
|
152
|
-
method: 'PATCH',
|
|
153
|
-
body: params,
|
|
154
|
-
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
155
|
-
})];
|
|
156
|
-
case 1:
|
|
157
|
-
_a.sent();
|
|
158
|
-
return [2 /*return*/];
|
|
159
|
-
}
|
|
160
|
-
});
|
|
161
|
-
});
|
|
162
|
-
};
|
|
163
|
-
OfferCatalogItemService.prototype.deleteById = function (params) {
|
|
164
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
165
|
-
return __generator(this, function (_a) {
|
|
166
|
-
switch (_a.label) {
|
|
167
|
-
case 0: return [4 /*yield*/, this.fetch({
|
|
168
|
-
uri: "/offerCatalogItems/" + encodeURIComponent(String(params.id)),
|
|
169
|
-
method: 'DELETE',
|
|
170
|
-
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
171
|
-
})];
|
|
172
|
-
case 1:
|
|
173
|
-
_a.sent();
|
|
174
|
-
return [2 /*return*/];
|
|
175
|
-
}
|
|
176
|
-
});
|
|
177
|
-
});
|
|
178
|
-
};
|
|
179
|
-
OfferCatalogItemService.prototype.searchItemListElement = function (params) {
|
|
180
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
181
|
-
var id, query;
|
|
182
|
-
var _this = this;
|
|
183
|
-
return __generator(this, function (_a) {
|
|
184
|
-
id = params.id, query = __rest(params, ["id"]);
|
|
185
|
-
return [2 /*return*/, this.fetch({
|
|
186
|
-
uri: "/offerCatalogItems/" + encodeURIComponent(String(id)) + "/itemListElement",
|
|
187
|
-
method: 'GET',
|
|
188
|
-
qs: query,
|
|
189
|
-
expectedStatusCodes: [http_status_1.OK]
|
|
190
|
-
})
|
|
191
|
-
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
192
|
-
return [2 /*return*/, response.json()];
|
|
193
|
-
}); }); })];
|
|
194
|
-
});
|
|
195
|
-
});
|
|
196
|
-
};
|
|
197
99
|
return OfferCatalogItemService;
|
|
198
100
|
}(service_1.Service));
|
|
199
101
|
exports.OfferCatalogItemService = OfferCatalogItemService;
|