@chevre/domain 23.1.0-alpha.11 → 23.1.0-alpha.13
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/lib/chevre/repo/event.js
CHANGED
|
@@ -22,13 +22,11 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
22
22
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
23
|
exports.EventRepo = void 0;
|
|
24
24
|
const mongoose_1 = require("mongoose");
|
|
25
|
-
const uniqid = require("uniqid");
|
|
26
25
|
const errorHandler_1 = require("../errorHandler");
|
|
27
26
|
const factory = require("../factory");
|
|
28
27
|
const EventFactory = require("../factory/event");
|
|
29
28
|
const settings_1 = require("../settings");
|
|
30
29
|
const event_1 = require("./mongoose/schemas/event");
|
|
31
|
-
const USE_OBJECT_ID_AS_EVENT_ID = process.env.USE_OBJECT_ID_AS_EVENT_ID === '1';
|
|
32
30
|
const AVAILABLE_PUBLIC_PROJECT_FIELDS = [
|
|
33
31
|
'additionalProperty', 'aggregateReservation', 'attendeeCount', 'checkInCount', 'coaInfo',
|
|
34
32
|
// 'description',
|
|
@@ -49,7 +47,8 @@ class EventRepo {
|
|
|
49
47
|
*/
|
|
50
48
|
static CREATE_ID() {
|
|
51
49
|
// implement using ObjectId(2025-10-17~)
|
|
52
|
-
return (USE_OBJECT_ID_AS_EVENT_ID) ? new
|
|
50
|
+
// return (USE_OBJECT_ID_AS_EVENT_ID) ? new Types.ObjectId().toHexString() : uniqid();
|
|
51
|
+
return new mongoose_1.Types.ObjectId().toHexString(); // 設定を廃止(2025-11-20~)
|
|
53
52
|
}
|
|
54
53
|
// tslint:disable-next-line:cyclomatic-complexity max-func-body-length
|
|
55
54
|
static CREATE_MONGO_CONDITIONS(conditions) {
|
|
@@ -47,26 +47,9 @@ function verifyTicketTokenAsNeeded(params) {
|
|
|
47
47
|
}
|
|
48
48
|
if (authorizedObject.typeOf === 'OwnershipInfo') {
|
|
49
49
|
const { typeOfGood } = authorizedObject;
|
|
50
|
-
if (typeOfGood.typeOf === factory.permit.PermitType.Permit
|
|
50
|
+
if (typeOfGood.typeOf === factory.permit.PermitType.Permit) {
|
|
51
51
|
// discontinue(2025-11-14~)
|
|
52
52
|
throw new factory.errors.Argument('ticketToken', `typeOfGood.typeOf ${typeOfGood.typeOf} discontinued`);
|
|
53
|
-
// if (typeOfGood.issuedThrough?.typeOf !== paymentServiceType) {
|
|
54
|
-
// throw new factory.errors.Argument('ticketToken', 'paymentServiceType not matched');
|
|
55
|
-
// }
|
|
56
|
-
// // FaceToFace以外の場合、発行サービスIDを検証
|
|
57
|
-
// if (typeOfGood.issuedThrough.typeOf !== factory.service.paymentService.PaymentServiceType.FaceToFace) {
|
|
58
|
-
// if (typeOfGood.issuedThrough.id !== issuedThrough.id) {
|
|
59
|
-
// throw new factory.errors.Argument('ticketToken', 'issuedThrough.id not matched');
|
|
60
|
-
// }
|
|
61
|
-
// }
|
|
62
|
-
// if (typeOfGood.typeOf === factory.permit.PermitType.Permit) {
|
|
63
|
-
// permitOrInvoice = { identifier: typeOfGood.identifier, typeOf: factory.permit.PermitType.Permit };
|
|
64
|
-
// } else if (typeOfGood.typeOf === 'Invoice') {
|
|
65
|
-
// // support paymentServiceType.MovieTicket(2024-11-23~)
|
|
66
|
-
// permitOrInvoice = { paymentMethodId: typeOfGood.paymentMethodId, typeOf: 'Invoice' };
|
|
67
|
-
// } else {
|
|
68
|
-
// throw new factory.errors.Argument('ticketToken', 'must be Permit or Invoice');
|
|
69
|
-
// }
|
|
70
53
|
}
|
|
71
54
|
else if (typeOfGood.typeOf === factory.service.paymentService.PaymentServiceType.CreditCard
|
|
72
55
|
|| typeOfGood.typeOf === factory.service.paymentService.PaymentServiceType.MovieTicket
|
package/package.json
CHANGED
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@aws-sdk/client-cognito-identity-provider": "3.600.0",
|
|
13
13
|
"@aws-sdk/credential-providers": "3.600.0",
|
|
14
|
-
"@chevre/factory": "5.2.0
|
|
15
|
-
"@cinerino/sdk": "12.8.0
|
|
14
|
+
"@chevre/factory": "5.2.0",
|
|
15
|
+
"@cinerino/sdk": "12.8.0",
|
|
16
16
|
"@motionpicture/coa-service": "9.6.0",
|
|
17
17
|
"@motionpicture/gmo-service": "5.4.0-alpha.1",
|
|
18
18
|
"@sendgrid/client": "8.1.4",
|
|
@@ -115,5 +115,5 @@
|
|
|
115
115
|
"postversion": "git push origin --tags",
|
|
116
116
|
"prepublishOnly": "npm run clean && npm run build && npm test && npm run doc"
|
|
117
117
|
},
|
|
118
|
-
"version": "23.1.0-alpha.
|
|
118
|
+
"version": "23.1.0-alpha.13"
|
|
119
119
|
}
|