@chevre/domain 22.3.0-alpha.14 → 22.3.0-alpha.15
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.
|
@@ -50,6 +50,9 @@ export declare function importFromCOA(params: IImportFromCOAParams): (repos: {
|
|
|
50
50
|
seller: SellerRepo;
|
|
51
51
|
masterService: COA.service.Master;
|
|
52
52
|
}) => Promise<void>;
|
|
53
|
+
export declare function minimizeSuperEvent(params: {
|
|
54
|
+
superEvent: factory.event.screeningEventSeries.IEvent;
|
|
55
|
+
}): factory.event.screeningEvent.ISuperEvent;
|
|
53
56
|
/**
|
|
54
57
|
* COA情報からイベントIDを作成する
|
|
55
58
|
*/
|
|
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.createEvent = exports.updateEvent4ttts = exports.createScreeningEventIdFromCOA = exports.importFromCOA = void 0;
|
|
12
|
+
exports.createEvent = exports.updateEvent4ttts = exports.createScreeningEventIdFromCOA = exports.minimizeSuperEvent = exports.importFromCOA = void 0;
|
|
13
13
|
const createDebug = require("debug");
|
|
14
14
|
// @ts-ignore
|
|
15
15
|
const difference = require("lodash.difference");
|
|
@@ -480,6 +480,24 @@ function cancelDeletedEvents(params) {
|
|
|
480
480
|
return cancelledIds;
|
|
481
481
|
});
|
|
482
482
|
}
|
|
483
|
+
function minimizeSuperEvent(params) {
|
|
484
|
+
const { workPerformed, videoFormat, startDate, soundFormat, name, location, kanaName, identifier, endDate, duration, coaInfo, alternativeHeadline,
|
|
485
|
+
// additionalProperty,
|
|
486
|
+
typeOf, id
|
|
487
|
+
// project,
|
|
488
|
+
// organizer,
|
|
489
|
+
// offers,
|
|
490
|
+
// eventStatus
|
|
491
|
+
} = params.superEvent;
|
|
492
|
+
return {
|
|
493
|
+
workPerformed, videoFormat, startDate, soundFormat,
|
|
494
|
+
name, location, kanaName, identifier,
|
|
495
|
+
endDate, duration, coaInfo, alternativeHeadline,
|
|
496
|
+
// additionalProperty,
|
|
497
|
+
typeOf, id
|
|
498
|
+
};
|
|
499
|
+
}
|
|
500
|
+
exports.minimizeSuperEvent = minimizeSuperEvent;
|
|
483
501
|
/**
|
|
484
502
|
* コアデータからイベントを作成する
|
|
485
503
|
*/
|
|
@@ -551,6 +569,7 @@ function createScreeningEventFromCOA(params) {
|
|
|
551
569
|
}
|
|
552
570
|
};
|
|
553
571
|
const { additionalProperty, coaInfo } = createScreeningEventAdditionalPropertyFromCOA(params);
|
|
572
|
+
const superEvent = minimizeSuperEvent({ superEvent: params.superEvent }); // optimize superEvent(2024-09-10~)
|
|
554
573
|
return {
|
|
555
574
|
project: { typeOf: params.project.typeOf, id: params.project.id },
|
|
556
575
|
typeOf: factory.eventType.ScreeningEvent,
|
|
@@ -565,7 +584,7 @@ function createScreeningEventFromCOA(params) {
|
|
|
565
584
|
},
|
|
566
585
|
endDate: endDate,
|
|
567
586
|
startDate: startDate,
|
|
568
|
-
superEvent
|
|
587
|
+
superEvent,
|
|
569
588
|
coaInfo,
|
|
570
589
|
offers: offers,
|
|
571
590
|
checkInCount: 0,
|
package/package.json
CHANGED