@cinerino/sdk 10.22.0-alpha.2 → 11.0.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.
- package/example/playground/public/lib/bundle.js +8153 -6839
- package/example/src/chevre/{adminSearchTickets.ts → adminSearchOrderActions.ts} +7 -6
- package/example/src/findEventById.ts +2 -1
- package/example/src/st/processPlaceOrderByPOS.ts +1 -1
- package/example/src/st/v2/searchEventsByTokenGrant.ts +54 -0
- 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/chevreAuth/identity.d.ts +25 -0
- package/lib/abstract/chevreAuth/identity.js +152 -0
- package/lib/abstract/chevreAuth.d.ts +9 -0
- package/lib/abstract/chevreAuth.js +20 -0
- 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 +8365 -6877
- package/lib/index.d.ts +2 -2
- package/lib/index.js +2 -1
- package/package.json +2 -2
- 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/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
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
18
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
19
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
20
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
21
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
22
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
23
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
27
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
28
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
29
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
30
|
+
function step(op) {
|
|
31
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
32
|
+
while (_) try {
|
|
33
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
34
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
35
|
+
switch (op[0]) {
|
|
36
|
+
case 0: case 1: t = op; break;
|
|
37
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
38
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
39
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
40
|
+
default:
|
|
41
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
42
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
43
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
44
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
45
|
+
if (t[2]) _.ops.pop();
|
|
46
|
+
_.trys.pop(); continue;
|
|
47
|
+
}
|
|
48
|
+
op = body.call(thisArg, _);
|
|
49
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
50
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
|
+
exports.CustomerService = void 0;
|
|
55
|
+
var http_status_1 = require("http-status");
|
|
56
|
+
var service_1 = require("../service");
|
|
57
|
+
/**
|
|
58
|
+
* 顧客サービス
|
|
59
|
+
*/
|
|
60
|
+
var CustomerService = /** @class */ (function (_super) {
|
|
61
|
+
__extends(CustomerService, _super);
|
|
62
|
+
function CustomerService() {
|
|
63
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* 顧客作成
|
|
67
|
+
*/
|
|
68
|
+
CustomerService.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: '/customers',
|
|
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
|
+
/**
|
|
85
|
+
* 顧客編集
|
|
86
|
+
*/
|
|
87
|
+
CustomerService.prototype.update = function (params) {
|
|
88
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
89
|
+
return __generator(this, function (_a) {
|
|
90
|
+
switch (_a.label) {
|
|
91
|
+
case 0: return [4 /*yield*/, this.fetch({
|
|
92
|
+
uri: "/customers/" + params.id,
|
|
93
|
+
method: 'PUT',
|
|
94
|
+
body: params.attributes,
|
|
95
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
96
|
+
})];
|
|
97
|
+
case 1:
|
|
98
|
+
_a.sent();
|
|
99
|
+
return [2 /*return*/];
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
});
|
|
103
|
+
};
|
|
104
|
+
/**
|
|
105
|
+
* 顧客削除
|
|
106
|
+
*/
|
|
107
|
+
CustomerService.prototype.deleteById = function (params) {
|
|
108
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
109
|
+
return __generator(this, function (_a) {
|
|
110
|
+
switch (_a.label) {
|
|
111
|
+
case 0: return [4 /*yield*/, this.fetch({
|
|
112
|
+
uri: "/customers/" + params.id,
|
|
113
|
+
method: 'DELETE',
|
|
114
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
115
|
+
})];
|
|
116
|
+
case 1:
|
|
117
|
+
_a.sent();
|
|
118
|
+
return [2 /*return*/];
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
});
|
|
122
|
+
};
|
|
123
|
+
return CustomerService;
|
|
124
|
+
}(service_1.Service));
|
|
125
|
+
exports.CustomerService = CustomerService;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as factory from '../factory';
|
|
2
|
+
import { IAdminSearchedEvent } from './event/factory';
|
|
3
|
+
import { Service } from '../service';
|
|
4
|
+
declare type IKeyOfProjection<T extends factory.eventType> = keyof factory.event.IEvent<T> | '_id';
|
|
5
|
+
declare type IProjection<T extends factory.eventType> = {
|
|
6
|
+
[key in IKeyOfProjection<T>]?: 0;
|
|
7
|
+
};
|
|
8
|
+
declare type IUnset<T extends factory.eventType> = {
|
|
9
|
+
[key in keyof factory.event.IEvent<T>]?: 1;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* イベントサービス
|
|
13
|
+
*/
|
|
14
|
+
export declare class EventService extends Service {
|
|
15
|
+
/**
|
|
16
|
+
* イベント作成(NO_CONTENT)
|
|
17
|
+
*/
|
|
18
|
+
createWithNoResponse<T extends factory.eventType.Event | factory.eventType.ScreeningEvent>(params: factory.event.ICreateParams<T>[]): Promise<void>;
|
|
19
|
+
/**
|
|
20
|
+
* イベント検索
|
|
21
|
+
*/
|
|
22
|
+
projectFields<T extends factory.eventType.Event | factory.eventType.ScreeningEvent>(params: Omit<factory.event.ISearchConditions<T>, 'project' | 'organizer'> & {
|
|
23
|
+
typeOf: T;
|
|
24
|
+
$projection?: IProjection<T>;
|
|
25
|
+
}): Promise<IAdminSearchedEvent<T>[]>;
|
|
26
|
+
/**
|
|
27
|
+
* イベント取得
|
|
28
|
+
*/
|
|
29
|
+
findEventById<T extends factory.eventType.Event | factory.eventType.ScreeningEvent>(params: {
|
|
30
|
+
id: string;
|
|
31
|
+
typeOf: T;
|
|
32
|
+
}): Promise<factory.event.IEvent<T>>;
|
|
33
|
+
/**
|
|
34
|
+
* イベント更新
|
|
35
|
+
*/
|
|
36
|
+
updateById<T extends factory.eventType.Event | factory.eventType.ScreeningEvent>(params: {
|
|
37
|
+
id: string;
|
|
38
|
+
attributes: factory.event.IUpdateParams<T> & {
|
|
39
|
+
$unset?: IUnset<T>;
|
|
40
|
+
};
|
|
41
|
+
}): Promise<void>;
|
|
42
|
+
}
|
|
43
|
+
export {};
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
18
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
19
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
20
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
21
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
22
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
23
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
27
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
28
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
29
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
30
|
+
function step(op) {
|
|
31
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
32
|
+
while (_) try {
|
|
33
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
34
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
35
|
+
switch (op[0]) {
|
|
36
|
+
case 0: case 1: t = op; break;
|
|
37
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
38
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
39
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
40
|
+
default:
|
|
41
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
42
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
43
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
44
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
45
|
+
if (t[2]) _.ops.pop();
|
|
46
|
+
_.trys.pop(); continue;
|
|
47
|
+
}
|
|
48
|
+
op = body.call(thisArg, _);
|
|
49
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
50
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
|
+
exports.EventService = void 0;
|
|
55
|
+
var http_status_1 = require("http-status");
|
|
56
|
+
var service_1 = require("../service");
|
|
57
|
+
/**
|
|
58
|
+
* イベントサービス
|
|
59
|
+
*/
|
|
60
|
+
var EventService = /** @class */ (function (_super) {
|
|
61
|
+
__extends(EventService, _super);
|
|
62
|
+
function EventService() {
|
|
63
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* イベント作成(NO_CONTENT)
|
|
67
|
+
*/
|
|
68
|
+
EventService.prototype.createWithNoResponse = function (params) {
|
|
69
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
70
|
+
return __generator(this, function (_a) {
|
|
71
|
+
switch (_a.label) {
|
|
72
|
+
case 0: return [4 /*yield*/, this.fetch({
|
|
73
|
+
uri: '/events',
|
|
74
|
+
method: 'POST',
|
|
75
|
+
body: params,
|
|
76
|
+
qs: { expectsNoContent: '1' },
|
|
77
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
78
|
+
})];
|
|
79
|
+
case 1:
|
|
80
|
+
_a.sent();
|
|
81
|
+
return [2 /*return*/];
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
});
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* イベント検索
|
|
88
|
+
*/
|
|
89
|
+
EventService.prototype.projectFields = function (params) {
|
|
90
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
91
|
+
var _this = this;
|
|
92
|
+
return __generator(this, function (_a) {
|
|
93
|
+
return [2 /*return*/, this.fetch({
|
|
94
|
+
uri: '/events',
|
|
95
|
+
method: 'GET',
|
|
96
|
+
qs: params,
|
|
97
|
+
expectedStatusCodes: [http_status_1.OK]
|
|
98
|
+
})
|
|
99
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
100
|
+
return [2 /*return*/, response.json()];
|
|
101
|
+
}); }); })];
|
|
102
|
+
});
|
|
103
|
+
});
|
|
104
|
+
};
|
|
105
|
+
/**
|
|
106
|
+
* イベント取得
|
|
107
|
+
*/
|
|
108
|
+
EventService.prototype.findEventById = function (params) {
|
|
109
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
110
|
+
var id, typeOf;
|
|
111
|
+
var _this = this;
|
|
112
|
+
return __generator(this, function (_a) {
|
|
113
|
+
id = params.id, typeOf = params.typeOf;
|
|
114
|
+
return [2 /*return*/, this.fetch({
|
|
115
|
+
uri: "/events/" + encodeURIComponent(String(id)),
|
|
116
|
+
method: 'GET',
|
|
117
|
+
expectedStatusCodes: [http_status_1.OK],
|
|
118
|
+
qs: { typeOf: typeOf }
|
|
119
|
+
})
|
|
120
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
121
|
+
return [2 /*return*/, response.json()];
|
|
122
|
+
}); }); })];
|
|
123
|
+
});
|
|
124
|
+
});
|
|
125
|
+
};
|
|
126
|
+
/**
|
|
127
|
+
* イベント更新
|
|
128
|
+
*/
|
|
129
|
+
EventService.prototype.updateById = function (params) {
|
|
130
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
131
|
+
return __generator(this, function (_a) {
|
|
132
|
+
switch (_a.label) {
|
|
133
|
+
case 0: return [4 /*yield*/, this.fetch({
|
|
134
|
+
uri: "/events/" + encodeURIComponent(String(params.id)),
|
|
135
|
+
method: 'PUT',
|
|
136
|
+
body: params.attributes,
|
|
137
|
+
// qs: params.qs,
|
|
138
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
139
|
+
})];
|
|
140
|
+
case 1:
|
|
141
|
+
_a.sent();
|
|
142
|
+
return [2 /*return*/];
|
|
143
|
+
}
|
|
144
|
+
});
|
|
145
|
+
});
|
|
146
|
+
};
|
|
147
|
+
return EventService;
|
|
148
|
+
}(service_1.Service));
|
|
149
|
+
exports.EventService = EventService;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import * as factory from '../factory';
|
|
2
|
+
import { Service } from '../service';
|
|
3
|
+
declare type IKeyOfProjection = keyof factory.event.IEvent<factory.eventType.ScreeningEventSeries>;
|
|
4
|
+
declare type IProjection = {
|
|
5
|
+
[key in IKeyOfProjection]?: 0;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* 施設コンテンツサービス
|
|
9
|
+
*/
|
|
10
|
+
export declare class EventSeriesService extends Service {
|
|
11
|
+
/**
|
|
12
|
+
* 施設コンテンツ検索
|
|
13
|
+
*/
|
|
14
|
+
projectFields(params: Omit<factory.event.ISearchConditions<factory.eventType.ScreeningEventSeries>, 'project' | 'organizer'> & {
|
|
15
|
+
typeOf: factory.eventType.ScreeningEventSeries;
|
|
16
|
+
$projection?: IProjection;
|
|
17
|
+
}): Promise<factory.event.IEvent<factory.eventType.ScreeningEventSeries>[]>;
|
|
18
|
+
createIfNotExistByWorkPerformed(params: {
|
|
19
|
+
attributes: factory.event.ICreateParams<factory.eventType.ScreeningEventSeries>[];
|
|
20
|
+
qs: {
|
|
21
|
+
/**
|
|
22
|
+
* 全施設に作成するかどうか
|
|
23
|
+
*/
|
|
24
|
+
createScreeningEventSeriesOnAllLocation?: boolean;
|
|
25
|
+
};
|
|
26
|
+
}): Promise<void>;
|
|
27
|
+
/**
|
|
28
|
+
* 施設コンテンツ作成
|
|
29
|
+
*/
|
|
30
|
+
create(params: factory.event.ICreateParams<factory.eventType.ScreeningEventSeries>[]): Promise<{
|
|
31
|
+
id: string;
|
|
32
|
+
}>;
|
|
33
|
+
aggregateMaxVersion(params: {
|
|
34
|
+
workPerformed: {
|
|
35
|
+
identifier: {
|
|
36
|
+
$eq: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
location: {
|
|
40
|
+
branchCode: {
|
|
41
|
+
$in: string[];
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
}): Promise<{
|
|
45
|
+
maxVersion: string;
|
|
46
|
+
}>;
|
|
47
|
+
/**
|
|
48
|
+
* 施設コンテンツ更新
|
|
49
|
+
*/
|
|
50
|
+
updateById(params: {
|
|
51
|
+
id: string;
|
|
52
|
+
attributes: factory.event.IUpdateParams<factory.eventType.ScreeningEventSeries> & {};
|
|
53
|
+
qs: {
|
|
54
|
+
/**
|
|
55
|
+
* 関連リソースへの同期有無(2023-07-28~)
|
|
56
|
+
*/
|
|
57
|
+
useSync?: boolean;
|
|
58
|
+
};
|
|
59
|
+
}): Promise<void>;
|
|
60
|
+
/**
|
|
61
|
+
* 施設コンテンツ削除
|
|
62
|
+
*/
|
|
63
|
+
deleteById(params: {
|
|
64
|
+
id: string;
|
|
65
|
+
}): Promise<void>;
|
|
66
|
+
}
|
|
67
|
+
export {};
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
18
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
19
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
20
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
21
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
22
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
23
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
27
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
28
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
29
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
30
|
+
function step(op) {
|
|
31
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
32
|
+
while (_) try {
|
|
33
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
34
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
35
|
+
switch (op[0]) {
|
|
36
|
+
case 0: case 1: t = op; break;
|
|
37
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
38
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
39
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
40
|
+
default:
|
|
41
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
42
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
43
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
44
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
45
|
+
if (t[2]) _.ops.pop();
|
|
46
|
+
_.trys.pop(); continue;
|
|
47
|
+
}
|
|
48
|
+
op = body.call(thisArg, _);
|
|
49
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
50
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
|
+
exports.EventSeriesService = void 0;
|
|
55
|
+
var http_status_1 = require("http-status");
|
|
56
|
+
var factory = require("../factory");
|
|
57
|
+
var service_1 = require("../service");
|
|
58
|
+
/**
|
|
59
|
+
* 施設コンテンツサービス
|
|
60
|
+
*/
|
|
61
|
+
var EventSeriesService = /** @class */ (function (_super) {
|
|
62
|
+
__extends(EventSeriesService, _super);
|
|
63
|
+
function EventSeriesService() {
|
|
64
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* 施設コンテンツ検索
|
|
68
|
+
*/
|
|
69
|
+
EventSeriesService.prototype.projectFields = function (params) {
|
|
70
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
71
|
+
var _this = this;
|
|
72
|
+
return __generator(this, function (_a) {
|
|
73
|
+
return [2 /*return*/, this.fetch({
|
|
74
|
+
uri: "/events/" + factory.eventType.ScreeningEventSeries,
|
|
75
|
+
method: 'GET',
|
|
76
|
+
qs: params,
|
|
77
|
+
expectedStatusCodes: [http_status_1.OK]
|
|
78
|
+
})
|
|
79
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
80
|
+
return [2 /*return*/, response.json()];
|
|
81
|
+
}); }); })];
|
|
82
|
+
});
|
|
83
|
+
});
|
|
84
|
+
};
|
|
85
|
+
EventSeriesService.prototype.createIfNotExistByWorkPerformed = 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: "/events/" + factory.eventType.ScreeningEventSeries + "/createScreeningEventSeriesIfNotExistByWorkPerformed",
|
|
91
|
+
method: 'POST',
|
|
92
|
+
body: params.attributes,
|
|
93
|
+
qs: params.qs,
|
|
94
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
95
|
+
})];
|
|
96
|
+
case 1:
|
|
97
|
+
_a.sent();
|
|
98
|
+
return [2 /*return*/];
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
});
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* 施設コンテンツ作成
|
|
105
|
+
*/
|
|
106
|
+
EventSeriesService.prototype.create = function (params) {
|
|
107
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
108
|
+
var _this = this;
|
|
109
|
+
return __generator(this, function (_a) {
|
|
110
|
+
return [2 /*return*/, this.fetch({
|
|
111
|
+
uri: "/events/" + factory.eventType.ScreeningEventSeries,
|
|
112
|
+
method: 'POST',
|
|
113
|
+
body: params,
|
|
114
|
+
expectedStatusCodes: [http_status_1.CREATED]
|
|
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
|
+
EventSeriesService.prototype.aggregateMaxVersion = function (params) {
|
|
123
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
124
|
+
var _this = this;
|
|
125
|
+
return __generator(this, function (_a) {
|
|
126
|
+
return [2 /*return*/, this.fetch({
|
|
127
|
+
uri: "/events/" + factory.eventType.ScreeningEventSeries + "/aggregateScreeningEventMaxVersion",
|
|
128
|
+
method: 'GET',
|
|
129
|
+
qs: params,
|
|
130
|
+
expectedStatusCodes: [http_status_1.OK]
|
|
131
|
+
})
|
|
132
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
133
|
+
return [2 /*return*/, response.json()];
|
|
134
|
+
}); }); })];
|
|
135
|
+
});
|
|
136
|
+
});
|
|
137
|
+
};
|
|
138
|
+
/**
|
|
139
|
+
* 施設コンテンツ更新
|
|
140
|
+
*/
|
|
141
|
+
EventSeriesService.prototype.updateById = function (params) {
|
|
142
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
143
|
+
return __generator(this, function (_a) {
|
|
144
|
+
switch (_a.label) {
|
|
145
|
+
case 0: return [4 /*yield*/, this.fetch({
|
|
146
|
+
uri: "/events/" + factory.eventType.ScreeningEventSeries + "/" + encodeURIComponent(String(params.id)),
|
|
147
|
+
method: 'PUT',
|
|
148
|
+
body: params.attributes,
|
|
149
|
+
qs: params.qs,
|
|
150
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
151
|
+
})];
|
|
152
|
+
case 1:
|
|
153
|
+
_a.sent();
|
|
154
|
+
return [2 /*return*/];
|
|
155
|
+
}
|
|
156
|
+
});
|
|
157
|
+
});
|
|
158
|
+
};
|
|
159
|
+
/**
|
|
160
|
+
* 施設コンテンツ削除
|
|
161
|
+
*/
|
|
162
|
+
EventSeriesService.prototype.deleteById = function (params) {
|
|
163
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
164
|
+
return __generator(this, function (_a) {
|
|
165
|
+
switch (_a.label) {
|
|
166
|
+
case 0: return [4 /*yield*/, this.fetch({
|
|
167
|
+
uri: "/events/" + factory.eventType.ScreeningEventSeries + "/" + encodeURIComponent(String(params.id)),
|
|
168
|
+
method: 'DELETE',
|
|
169
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
170
|
+
})];
|
|
171
|
+
case 1:
|
|
172
|
+
_a.sent();
|
|
173
|
+
return [2 /*return*/];
|
|
174
|
+
}
|
|
175
|
+
});
|
|
176
|
+
});
|
|
177
|
+
};
|
|
178
|
+
return EventSeriesService;
|
|
179
|
+
}(service_1.Service));
|
|
180
|
+
exports.EventSeriesService = EventSeriesService;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as factory from '../factory';
|
|
2
|
+
import { IOptions, IProjectionSearchConditions, ISearchResult, Service } from '../service';
|
|
3
|
+
export interface ISearchProjectConditions {
|
|
4
|
+
limit?: number;
|
|
5
|
+
page?: number;
|
|
6
|
+
id?: {
|
|
7
|
+
$eq?: string;
|
|
8
|
+
$regex?: string;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* 管理者サービス
|
|
13
|
+
*/
|
|
14
|
+
export declare class MeService extends Service<IOptions> {
|
|
15
|
+
constructor(options: Pick<IOptions, 'auth' | 'endpoint' | 'transporter'>);
|
|
16
|
+
/**
|
|
17
|
+
* マイプロジェクト検索
|
|
18
|
+
*/
|
|
19
|
+
searchProjects(params: ISearchProjectConditions & IProjectionSearchConditions): Promise<ISearchResult<Omit<factory.project.IProject, 'settings'>[]>>;
|
|
20
|
+
/**
|
|
21
|
+
* リクエストユーザーのPMとしてのロールを検索する
|
|
22
|
+
*/
|
|
23
|
+
searchMemberHasRoleOnProject(params: {
|
|
24
|
+
project: {
|
|
25
|
+
id: string;
|
|
26
|
+
};
|
|
27
|
+
}): Promise<factory.iam.IMemberRole[]>;
|
|
28
|
+
}
|