@cinerino/sdk 10.22.0-alpha.1 → 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 +8119 -6774
- 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/{chevreAdmin → chevreConsole}/identity.d.ts +7 -4
- package/lib/abstract/chevreConsole/identity.js +149 -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/{chevreAdmin/identity.js → chevreConsole/offer.js} +27 -20
- 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 +8209 -6864
- 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/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}/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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ISearchWithReservationForIdResult } from '../
|
|
1
|
+
import type { ISearchWithReservationForIdResult } from '../chevreConsole/aggregateReservation';
|
|
2
2
|
import * as factory from '../factory';
|
|
3
3
|
import { ISearchOfferCatalogItemAvailabilityResult, ISearchOfferCatalogItemResult, ISeatAsEventOffer, ISellerMakesOffer } from './event/factory';
|
|
4
4
|
import { Service } from '../service';
|
|
@@ -62,18 +62,6 @@ var CancelReservationAssetTransactionService = /** @class */ (function (_super)
|
|
|
62
62
|
function CancelReservationAssetTransactionService() {
|
|
63
63
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
64
64
|
}
|
|
65
|
-
/**
|
|
66
|
-
* 取引を開始する
|
|
67
|
-
*/
|
|
68
|
-
// public async start(params: IStartParams): Promise<{ id: string }> {
|
|
69
|
-
// return this.fetch({
|
|
70
|
-
// uri: '/assetTransactions/cancelReservation/start',
|
|
71
|
-
// method: 'POST',
|
|
72
|
-
// body: params,
|
|
73
|
-
// expectedStatusCodes: [OK]
|
|
74
|
-
// })
|
|
75
|
-
// .then(async (response) => response.json());
|
|
76
|
-
// }
|
|
77
65
|
/**
|
|
78
66
|
* 取引開始&確定
|
|
79
67
|
*/
|
|
@@ -68,9 +68,5 @@ export declare class AuthorizationService extends Service {
|
|
|
68
68
|
* 承認発行
|
|
69
69
|
*/
|
|
70
70
|
create(params: ICreateParams[]): Promise<(ICreatedAuthorization & Pick<factory.authorization.IAuthorization, 'code'>)[]>;
|
|
71
|
-
/**
|
|
72
|
-
* 承認検索
|
|
73
|
-
*/
|
|
74
|
-
search(params: Omit<factory.authorization.ISearchConditions, 'project'>): Promise<factory.authorization.IAuthorization[]>;
|
|
75
71
|
}
|
|
76
72
|
export {};
|
|
@@ -81,25 +81,6 @@ var AuthorizationService = /** @class */ (function (_super) {
|
|
|
81
81
|
});
|
|
82
82
|
});
|
|
83
83
|
};
|
|
84
|
-
/**
|
|
85
|
-
* 承認検索
|
|
86
|
-
*/
|
|
87
|
-
AuthorizationService.prototype.search = function (params) {
|
|
88
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
89
|
-
var _this = this;
|
|
90
|
-
return __generator(this, function (_a) {
|
|
91
|
-
return [2 /*return*/, this.fetch({
|
|
92
|
-
uri: '/authorizations',
|
|
93
|
-
method: 'GET',
|
|
94
|
-
qs: params,
|
|
95
|
-
expectedStatusCodes: [http_status_1.OK]
|
|
96
|
-
})
|
|
97
|
-
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
98
|
-
return [2 /*return*/, response.json()];
|
|
99
|
-
}); }); })];
|
|
100
|
-
});
|
|
101
|
-
});
|
|
102
|
-
};
|
|
103
84
|
return AuthorizationService;
|
|
104
85
|
}(service_1.Service));
|
|
105
86
|
exports.AuthorizationService = AuthorizationService;
|
|
@@ -1,26 +1,11 @@
|
|
|
1
1
|
import * as factory from '../factory';
|
|
2
|
-
import {
|
|
2
|
+
import { Service } from '../service';
|
|
3
3
|
/**
|
|
4
4
|
* コンテンツサービス
|
|
5
5
|
*/
|
|
6
6
|
export declare class CreativeWorkService extends Service {
|
|
7
|
-
createMovie(params: factory.creativeWork.movie.ICreateParams): Promise<{
|
|
8
|
-
id: string;
|
|
9
|
-
}>;
|
|
10
7
|
/**
|
|
11
8
|
* コンテンツ冪等置換
|
|
12
9
|
*/
|
|
13
10
|
upsertMoviesByIdentifier(params: factory.creativeWork.movie.ICreateParams[]): Promise<void>;
|
|
14
|
-
searchMovies(params: Omit<factory.creativeWork.movie.ISearchConditions, 'project'>): Promise<{
|
|
15
|
-
data: factory.creativeWork.movie.ICreativeWork[];
|
|
16
|
-
}>;
|
|
17
|
-
findMovieById(params: {
|
|
18
|
-
id: string;
|
|
19
|
-
}): Promise<factory.creativeWork.movie.ICreativeWork>;
|
|
20
|
-
updateMovie(params: factory.creativeWork.movie.ICreateParams & {
|
|
21
|
-
id: string;
|
|
22
|
-
} & IUnset): Promise<void>;
|
|
23
|
-
deleteMovie(params: {
|
|
24
|
-
id: string;
|
|
25
|
-
}): Promise<void>;
|
|
26
11
|
}
|
|
@@ -62,22 +62,6 @@ var CreativeWorkService = /** @class */ (function (_super) {
|
|
|
62
62
|
function CreativeWorkService() {
|
|
63
63
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
64
64
|
}
|
|
65
|
-
CreativeWorkService.prototype.createMovie = function (params) {
|
|
66
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
67
|
-
var _this = this;
|
|
68
|
-
return __generator(this, function (_a) {
|
|
69
|
-
return [2 /*return*/, this.fetch({
|
|
70
|
-
uri: '/creativeWorks/movie',
|
|
71
|
-
method: 'POST',
|
|
72
|
-
body: params,
|
|
73
|
-
expectedStatusCodes: [http_status_1.CREATED]
|
|
74
|
-
})
|
|
75
|
-
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
76
|
-
return [2 /*return*/, response.json()];
|
|
77
|
-
}); }); })];
|
|
78
|
-
});
|
|
79
|
-
});
|
|
80
|
-
};
|
|
81
65
|
/**
|
|
82
66
|
* コンテンツ冪等置換
|
|
83
67
|
*/
|
|
@@ -98,79 +82,6 @@ var CreativeWorkService = /** @class */ (function (_super) {
|
|
|
98
82
|
});
|
|
99
83
|
});
|
|
100
84
|
};
|
|
101
|
-
CreativeWorkService.prototype.searchMovies = function (params) {
|
|
102
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
103
|
-
var _this = this;
|
|
104
|
-
return __generator(this, function (_a) {
|
|
105
|
-
return [2 /*return*/, this.fetch({
|
|
106
|
-
uri: '/creativeWorks/movie',
|
|
107
|
-
method: 'GET',
|
|
108
|
-
qs: params,
|
|
109
|
-
expectedStatusCodes: [http_status_1.OK]
|
|
110
|
-
})
|
|
111
|
-
.then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
112
|
-
var _a;
|
|
113
|
-
return __generator(this, function (_b) {
|
|
114
|
-
switch (_b.label) {
|
|
115
|
-
case 0:
|
|
116
|
-
_a = {};
|
|
117
|
-
return [4 /*yield*/, response.json()];
|
|
118
|
-
case 1: return [2 /*return*/, (_a.data = _b.sent(),
|
|
119
|
-
_a)];
|
|
120
|
-
}
|
|
121
|
-
});
|
|
122
|
-
}); })];
|
|
123
|
-
});
|
|
124
|
-
});
|
|
125
|
-
};
|
|
126
|
-
CreativeWorkService.prototype.findMovieById = function (params) {
|
|
127
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
128
|
-
var _this = this;
|
|
129
|
-
return __generator(this, function (_a) {
|
|
130
|
-
return [2 /*return*/, this.fetch({
|
|
131
|
-
uri: "/creativeWorks/movie/" + encodeURIComponent(String(params.id)),
|
|
132
|
-
method: 'GET',
|
|
133
|
-
expectedStatusCodes: [http_status_1.OK]
|
|
134
|
-
})
|
|
135
|
-
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
136
|
-
return [2 /*return*/, response.json()];
|
|
137
|
-
}); }); })];
|
|
138
|
-
});
|
|
139
|
-
});
|
|
140
|
-
};
|
|
141
|
-
CreativeWorkService.prototype.updateMovie = 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: "/creativeWorks/movie/" + encodeURIComponent(String(params.id)),
|
|
147
|
-
method: 'PUT',
|
|
148
|
-
body: params,
|
|
149
|
-
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
150
|
-
})];
|
|
151
|
-
case 1:
|
|
152
|
-
_a.sent();
|
|
153
|
-
return [2 /*return*/];
|
|
154
|
-
}
|
|
155
|
-
});
|
|
156
|
-
});
|
|
157
|
-
};
|
|
158
|
-
CreativeWorkService.prototype.deleteMovie = function (params) {
|
|
159
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
160
|
-
return __generator(this, function (_a) {
|
|
161
|
-
switch (_a.label) {
|
|
162
|
-
case 0: return [4 /*yield*/, this.fetch({
|
|
163
|
-
uri: "/creativeWorks/movie/" + encodeURIComponent(String(params.id)),
|
|
164
|
-
method: 'DELETE',
|
|
165
|
-
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
166
|
-
})];
|
|
167
|
-
case 1:
|
|
168
|
-
_a.sent();
|
|
169
|
-
return [2 /*return*/];
|
|
170
|
-
}
|
|
171
|
-
});
|
|
172
|
-
});
|
|
173
|
-
};
|
|
174
85
|
return CreativeWorkService;
|
|
175
86
|
}(service_1.Service));
|
|
176
87
|
exports.CreativeWorkService = CreativeWorkService;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as factory from '../factory';
|
|
2
|
-
import {
|
|
2
|
+
import { Service } from '../service';
|
|
3
3
|
export interface IProjection {
|
|
4
4
|
$projection?: {
|
|
5
5
|
[key: string]: 1;
|
|
@@ -9,27 +9,8 @@ export interface IProjection {
|
|
|
9
9
|
* 顧客サービス
|
|
10
10
|
*/
|
|
11
11
|
export declare class CustomerService extends Service {
|
|
12
|
-
/**
|
|
13
|
-
* 顧客作成
|
|
14
|
-
*/
|
|
15
|
-
create(params: factory.customer.ICustomer): Promise<{
|
|
16
|
-
id: string;
|
|
17
|
-
}>;
|
|
18
12
|
/**
|
|
19
13
|
* 顧客検索
|
|
20
14
|
*/
|
|
21
15
|
search(params: Omit<factory.customer.ISearchConditions, 'project'> & IProjection): Promise<factory.customer.ICustomer[]>;
|
|
22
|
-
/**
|
|
23
|
-
* 顧客編集
|
|
24
|
-
*/
|
|
25
|
-
update(params: {
|
|
26
|
-
id: string;
|
|
27
|
-
attributes: factory.customer.ICustomer & IUnset;
|
|
28
|
-
}): Promise<void>;
|
|
29
|
-
/**
|
|
30
|
-
* 顧客削除
|
|
31
|
-
*/
|
|
32
|
-
deleteById(params: {
|
|
33
|
-
id: string;
|
|
34
|
-
}): Promise<void>;
|
|
35
16
|
}
|
|
@@ -62,25 +62,6 @@ var CustomerService = /** @class */ (function (_super) {
|
|
|
62
62
|
function CustomerService() {
|
|
63
63
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
64
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
65
|
/**
|
|
85
66
|
* 顧客検索
|
|
86
67
|
*/
|
|
@@ -100,45 +81,6 @@ var CustomerService = /** @class */ (function (_super) {
|
|
|
100
81
|
});
|
|
101
82
|
});
|
|
102
83
|
};
|
|
103
|
-
/**
|
|
104
|
-
* 顧客編集
|
|
105
|
-
*/
|
|
106
|
-
CustomerService.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: "/customers/" + params.id,
|
|
112
|
-
method: 'PUT',
|
|
113
|
-
body: params.attributes,
|
|
114
|
-
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
115
|
-
})];
|
|
116
|
-
case 1:
|
|
117
|
-
_a.sent();
|
|
118
|
-
return [2 /*return*/];
|
|
119
|
-
}
|
|
120
|
-
});
|
|
121
|
-
});
|
|
122
|
-
};
|
|
123
|
-
/**
|
|
124
|
-
* 顧客削除
|
|
125
|
-
*/
|
|
126
|
-
CustomerService.prototype.deleteById = function (params) {
|
|
127
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
128
|
-
return __generator(this, function (_a) {
|
|
129
|
-
switch (_a.label) {
|
|
130
|
-
case 0: return [4 /*yield*/, this.fetch({
|
|
131
|
-
uri: "/customers/" + params.id,
|
|
132
|
-
method: 'DELETE',
|
|
133
|
-
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
134
|
-
})];
|
|
135
|
-
case 1:
|
|
136
|
-
_a.sent();
|
|
137
|
-
return [2 /*return*/];
|
|
138
|
-
}
|
|
139
|
-
});
|
|
140
|
-
});
|
|
141
|
-
};
|
|
142
84
|
return CustomerService;
|
|
143
85
|
}(service_1.Service));
|
|
144
86
|
exports.CustomerService = CustomerService;
|
|
@@ -1,24 +1,12 @@
|
|
|
1
1
|
import * as factory from '../factory';
|
|
2
|
-
import { IAdminSearchedEvent } from './event/factory';
|
|
3
2
|
import { Service } from '../service';
|
|
4
3
|
declare type ISendEmailMessageOnEventUpdated = Pick<factory.action.transfer.send.message.email.IAttributes, 'purpose' | 'recipient'> & {
|
|
5
4
|
object: factory.action.transfer.send.message.email.IObjectAsEmailMessage;
|
|
6
5
|
};
|
|
7
|
-
declare type IKeyOfProjection<T extends factory.eventType> = keyof factory.event.IEvent<T> | '_id';
|
|
8
|
-
declare type IProjection<T extends factory.eventType> = {
|
|
9
|
-
[key in IKeyOfProjection<T>]?: 0;
|
|
10
|
-
};
|
|
11
|
-
declare type IUnset<T extends factory.eventType> = {
|
|
12
|
-
[key in keyof factory.event.IEvent<T>]?: 1;
|
|
13
|
-
};
|
|
14
6
|
/**
|
|
15
7
|
* イベントサービス
|
|
16
8
|
*/
|
|
17
9
|
export declare class EventService extends Service {
|
|
18
|
-
/**
|
|
19
|
-
* イベント作成(NO_CONTENT)
|
|
20
|
-
*/
|
|
21
|
-
createWithNoResponse<T extends factory.eventType.Event | factory.eventType.ScreeningEvent>(params: factory.event.ICreateParams<T>[]): Promise<void>;
|
|
22
10
|
/**
|
|
23
11
|
* イベント冪等複数作成
|
|
24
12
|
* 特定の追加特性をキーにして、存在しなければ作成する
|
|
@@ -33,29 +21,6 @@ export declare class EventService extends Service {
|
|
|
33
21
|
};
|
|
34
22
|
update: boolean;
|
|
35
23
|
}): Promise<void>;
|
|
36
|
-
/**
|
|
37
|
-
* イベント検索
|
|
38
|
-
*/
|
|
39
|
-
projectFields<T extends factory.eventType.Event | factory.eventType.ScreeningEvent>(params: Omit<factory.event.ISearchConditions<T>, 'project' | 'organizer'> & {
|
|
40
|
-
typeOf: T;
|
|
41
|
-
$projection?: IProjection<T>;
|
|
42
|
-
}): Promise<IAdminSearchedEvent<T>[]>;
|
|
43
|
-
/**
|
|
44
|
-
* イベント取得
|
|
45
|
-
*/
|
|
46
|
-
findEventById<T extends factory.eventType.Event | factory.eventType.ScreeningEvent>(params: {
|
|
47
|
-
id: string;
|
|
48
|
-
typeOf: T;
|
|
49
|
-
}): Promise<factory.event.IEvent<T>>;
|
|
50
|
-
/**
|
|
51
|
-
* イベント更新
|
|
52
|
-
*/
|
|
53
|
-
updateById<T extends factory.eventType.Event | factory.eventType.ScreeningEvent>(params: {
|
|
54
|
-
id: string;
|
|
55
|
-
attributes: factory.event.IUpdateParams<T> & {
|
|
56
|
-
$unset?: IUnset<T>;
|
|
57
|
-
};
|
|
58
|
-
}): Promise<void>;
|
|
59
24
|
/**
|
|
60
25
|
* イベント部分更新
|
|
61
26
|
*/
|
|
@@ -62,27 +62,6 @@ var EventService = /** @class */ (function (_super) {
|
|
|
62
62
|
function EventService() {
|
|
63
63
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
64
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
65
|
/**
|
|
87
66
|
* イベント冪等複数作成
|
|
88
67
|
* 特定の追加特性をキーにして、存在しなければ作成する
|
|
@@ -109,67 +88,6 @@ var EventService = /** @class */ (function (_super) {
|
|
|
109
88
|
});
|
|
110
89
|
});
|
|
111
90
|
};
|
|
112
|
-
/**
|
|
113
|
-
* イベント検索
|
|
114
|
-
*/
|
|
115
|
-
EventService.prototype.projectFields = function (params) {
|
|
116
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
117
|
-
var _this = this;
|
|
118
|
-
return __generator(this, function (_a) {
|
|
119
|
-
return [2 /*return*/, this.fetch({
|
|
120
|
-
uri: '/events',
|
|
121
|
-
method: 'GET',
|
|
122
|
-
qs: params,
|
|
123
|
-
expectedStatusCodes: [http_status_1.OK]
|
|
124
|
-
})
|
|
125
|
-
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
126
|
-
return [2 /*return*/, response.json()];
|
|
127
|
-
}); }); })];
|
|
128
|
-
});
|
|
129
|
-
});
|
|
130
|
-
};
|
|
131
|
-
/**
|
|
132
|
-
* イベント取得
|
|
133
|
-
*/
|
|
134
|
-
EventService.prototype.findEventById = function (params) {
|
|
135
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
136
|
-
var id, typeOf;
|
|
137
|
-
var _this = this;
|
|
138
|
-
return __generator(this, function (_a) {
|
|
139
|
-
id = params.id, typeOf = params.typeOf;
|
|
140
|
-
return [2 /*return*/, this.fetch({
|
|
141
|
-
uri: "/events/" + encodeURIComponent(String(id)),
|
|
142
|
-
method: 'GET',
|
|
143
|
-
expectedStatusCodes: [http_status_1.OK],
|
|
144
|
-
qs: { typeOf: typeOf }
|
|
145
|
-
})
|
|
146
|
-
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
147
|
-
return [2 /*return*/, response.json()];
|
|
148
|
-
}); }); })];
|
|
149
|
-
});
|
|
150
|
-
});
|
|
151
|
-
};
|
|
152
|
-
/**
|
|
153
|
-
* イベント更新
|
|
154
|
-
*/
|
|
155
|
-
EventService.prototype.updateById = 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: "/events/" + encodeURIComponent(String(params.id)),
|
|
161
|
-
method: 'PUT',
|
|
162
|
-
body: params.attributes,
|
|
163
|
-
// qs: params.qs,
|
|
164
|
-
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
165
|
-
})];
|
|
166
|
-
case 1:
|
|
167
|
-
_a.sent();
|
|
168
|
-
return [2 /*return*/];
|
|
169
|
-
}
|
|
170
|
-
});
|
|
171
|
-
});
|
|
172
|
-
};
|
|
173
91
|
/**
|
|
174
92
|
* イベント部分更新
|
|
175
93
|
*/
|
|
@@ -1,72 +1,12 @@
|
|
|
1
1
|
import * as factory from '../factory';
|
|
2
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
3
|
/**
|
|
8
4
|
* 施設コンテンツサービス
|
|
9
5
|
*/
|
|
10
6
|
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
7
|
/**
|
|
34
8
|
* 施設コンテンツ冪等置換(施設+コンテンツ+バージョンに対してユニーク)
|
|
35
9
|
* 存在しなければ作成し、存在すれば置換
|
|
36
10
|
*/
|
|
37
11
|
upsertByVersion(params: factory.event.ICreateParams<factory.eventType.ScreeningEventSeries>[]): Promise<void>;
|
|
38
|
-
aggregateMaxVersion(params: {
|
|
39
|
-
workPerformed: {
|
|
40
|
-
identifier: {
|
|
41
|
-
$eq: string;
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
location: {
|
|
45
|
-
branchCode: {
|
|
46
|
-
$in: string[];
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
}): Promise<{
|
|
50
|
-
maxVersion: string;
|
|
51
|
-
}>;
|
|
52
|
-
/**
|
|
53
|
-
* 施設コンテンツ更新
|
|
54
|
-
*/
|
|
55
|
-
updateById(params: {
|
|
56
|
-
id: string;
|
|
57
|
-
attributes: factory.event.IUpdateParams<factory.eventType.ScreeningEventSeries> & {};
|
|
58
|
-
qs: {
|
|
59
|
-
/**
|
|
60
|
-
* 関連リソースへの同期有無(2023-07-28~)
|
|
61
|
-
*/
|
|
62
|
-
useSync?: boolean;
|
|
63
|
-
};
|
|
64
|
-
}): Promise<void>;
|
|
65
|
-
/**
|
|
66
|
-
* 施設コンテンツ削除
|
|
67
|
-
*/
|
|
68
|
-
deleteById(params: {
|
|
69
|
-
id: string;
|
|
70
|
-
}): Promise<void>;
|
|
71
12
|
}
|
|
72
|
-
export {};
|
|
@@ -63,62 +63,6 @@ var EventSeriesService = /** @class */ (function (_super) {
|
|
|
63
63
|
function EventSeriesService() {
|
|
64
64
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
65
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
66
|
/**
|
|
123
67
|
* 施設コンテンツ冪等置換(施設+コンテンツ+バージョンに対してユニーク)
|
|
124
68
|
* 存在しなければ作成し、存在すれば置換
|
|
@@ -141,62 +85,6 @@ var EventSeriesService = /** @class */ (function (_super) {
|
|
|
141
85
|
});
|
|
142
86
|
});
|
|
143
87
|
};
|
|
144
|
-
EventSeriesService.prototype.aggregateMaxVersion = function (params) {
|
|
145
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
146
|
-
var _this = this;
|
|
147
|
-
return __generator(this, function (_a) {
|
|
148
|
-
return [2 /*return*/, this.fetch({
|
|
149
|
-
uri: "/events/" + factory.eventType.ScreeningEventSeries + "/aggregateScreeningEventMaxVersion",
|
|
150
|
-
method: 'GET',
|
|
151
|
-
qs: params,
|
|
152
|
-
expectedStatusCodes: [http_status_1.OK]
|
|
153
|
-
})
|
|
154
|
-
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
155
|
-
return [2 /*return*/, response.json()];
|
|
156
|
-
}); }); })];
|
|
157
|
-
});
|
|
158
|
-
});
|
|
159
|
-
};
|
|
160
|
-
/**
|
|
161
|
-
* 施設コンテンツ更新
|
|
162
|
-
*/
|
|
163
|
-
EventSeriesService.prototype.updateById = 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: "/events/" + factory.eventType.ScreeningEventSeries + "/" + encodeURIComponent(String(params.id)),
|
|
169
|
-
method: 'PUT',
|
|
170
|
-
body: params.attributes,
|
|
171
|
-
qs: params.qs,
|
|
172
|
-
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
173
|
-
})];
|
|
174
|
-
case 1:
|
|
175
|
-
_a.sent();
|
|
176
|
-
return [2 /*return*/];
|
|
177
|
-
}
|
|
178
|
-
});
|
|
179
|
-
});
|
|
180
|
-
};
|
|
181
|
-
/**
|
|
182
|
-
* 施設コンテンツ削除
|
|
183
|
-
*/
|
|
184
|
-
EventSeriesService.prototype.deleteById = function (params) {
|
|
185
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
186
|
-
return __generator(this, function (_a) {
|
|
187
|
-
switch (_a.label) {
|
|
188
|
-
case 0: return [4 /*yield*/, this.fetch({
|
|
189
|
-
uri: "/events/" + factory.eventType.ScreeningEventSeries + "/" + encodeURIComponent(String(params.id)),
|
|
190
|
-
method: 'DELETE',
|
|
191
|
-
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
192
|
-
})];
|
|
193
|
-
case 1:
|
|
194
|
-
_a.sent();
|
|
195
|
-
return [2 /*return*/];
|
|
196
|
-
}
|
|
197
|
-
});
|
|
198
|
-
});
|
|
199
|
-
};
|
|
200
88
|
return EventSeriesService;
|
|
201
89
|
}(service_1.Service));
|
|
202
90
|
exports.EventSeriesService = EventSeriesService;
|
|
@@ -17,12 +17,4 @@ export declare class MeService extends Service<IOptions> {
|
|
|
17
17
|
* マイプロジェクト検索
|
|
18
18
|
*/
|
|
19
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
20
|
}
|