@chevre/domain 20.4.0-alpha.28 → 20.4.0-alpha.29
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.
|
@@ -21,7 +21,6 @@ const difference = require("lodash.difference");
|
|
|
21
21
|
const moment = require("moment-timezone");
|
|
22
22
|
const credentials_1 = require("../credentials");
|
|
23
23
|
const factory = require("../factory");
|
|
24
|
-
const settings_1 = require("../settings");
|
|
25
24
|
const offer_1 = require("./offer");
|
|
26
25
|
// const customsearch = google.customsearch('v1');
|
|
27
26
|
const debug = createDebug('chevre-domain:service:event');
|
|
@@ -450,11 +449,29 @@ function createScreeningEventFromCOA(params) {
|
|
|
450
449
|
priceCurrency: factory.priceCurrency.JPY
|
|
451
450
|
};
|
|
452
451
|
const { additionalProperty, coaInfo } = createScreeningEventAdditionalPropertyFromCOA(params);
|
|
453
|
-
return
|
|
452
|
+
return {
|
|
453
|
+
project: { typeOf: params.project.typeOf, id: params.project.id },
|
|
454
|
+
typeOf: factory.eventType.ScreeningEvent,
|
|
455
|
+
id: id,
|
|
456
|
+
identifier: id,
|
|
457
|
+
name: params.superEvent.name,
|
|
458
|
+
eventStatus: factory.eventStatusType.EventScheduled,
|
|
459
|
+
location: {
|
|
454
460
|
typeOf: params.screenRoom.typeOf,
|
|
455
461
|
branchCode: params.screenRoom.branchCode,
|
|
456
462
|
name: params.screenRoom.name
|
|
457
|
-
},
|
|
463
|
+
},
|
|
464
|
+
endDate: endDate,
|
|
465
|
+
startDate: startDate,
|
|
466
|
+
superEvent: params.superEvent,
|
|
467
|
+
coaInfo,
|
|
468
|
+
offers: offers,
|
|
469
|
+
checkInCount: 0,
|
|
470
|
+
attendeeCount: 0,
|
|
471
|
+
maximumAttendeeCapacity: params.screenRoom.maximumAttendeeCapacity,
|
|
472
|
+
remainingAttendeeCapacity: params.screenRoom.maximumAttendeeCapacity,
|
|
473
|
+
additionalProperty
|
|
474
|
+
};
|
|
458
475
|
}
|
|
459
476
|
function createScreeningEventAdditionalPropertyFromCOA(params) {
|
|
460
477
|
const coaInfo = {
|
package/lib/chevre/settings.d.ts
CHANGED
|
@@ -21,7 +21,6 @@ export declare type ISettings = factory.project.ISettings & {
|
|
|
21
21
|
userPoolIdOld: string;
|
|
22
22
|
userPoolIdNew: string;
|
|
23
23
|
maxNumCreditCardPaymentMethod?: number;
|
|
24
|
-
useEventWorkPerformed: boolean;
|
|
25
24
|
useAggregateEntranceGateProjects: string[];
|
|
26
25
|
useAggregateOfferProjects: string[];
|
|
27
26
|
useOfferRateLimitProjects: string[];
|
package/lib/chevre/settings.js
CHANGED
|
@@ -94,7 +94,7 @@ exports.settings = Object.assign(Object.assign({ transactionWebhookUrls, onOrder
|
|
|
94
94
|
timeout: triggerWebhookTimeout
|
|
95
95
|
}, maximumReservationGracePeriodInDays: MAXIMUM_RESERVATION_GRACE_PERIOD_IN_DAYS, userPoolIdOld: String(process.env.USERPOOL_ID_OLD), userPoolIdNew: String(process.env.USERPOOL_ID_NEW) }, (typeof MAX_NUM_CREDIT_CARD_PAYMENT_METHOD === 'number')
|
|
96
96
|
? { maxNumCreditCardPaymentMethod: MAX_NUM_CREDIT_CARD_PAYMENT_METHOD }
|
|
97
|
-
: undefined), {
|
|
97
|
+
: undefined), { useAggregateEntranceGateProjects: (typeof process.env.USE_AGGREGATE_ENTRANCE_GATE_PROJECTS === 'string')
|
|
98
98
|
? process.env.USE_AGGREGATE_ENTRANCE_GATE_PROJECTS.split(',')
|
|
99
99
|
: [], useAggregateOfferProjects: (typeof process.env.USE_AGGREGATE_OFFER_PROJECTS === 'string')
|
|
100
100
|
? process.env.USE_AGGREGATE_OFFER_PROJECTS.split(',')
|
package/package.json
CHANGED