@chevre/domain 21.13.0-alpha.6 → 21.13.0-alpha.7
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.
|
@@ -24,6 +24,7 @@ const factory = require("../factory");
|
|
|
24
24
|
const createEvent_1 = require("./event/createEvent");
|
|
25
25
|
Object.defineProperty(exports, "createEvent", { enumerable: true, get: function () { return createEvent_1.createEvent; } });
|
|
26
26
|
const offer_1 = require("./offer");
|
|
27
|
+
const settings_1 = require("../settings");
|
|
27
28
|
const debug = createDebug('chevre-domain:service:event');
|
|
28
29
|
const coaAuthClient = new COA.auth.RefreshToken({
|
|
29
30
|
endpoint: credentials_1.credentials.coa.endpoint,
|
|
@@ -250,7 +251,7 @@ function saveScreeningEventSeries(params) {
|
|
|
250
251
|
// 更新対象が無限に増えるのを防ぐためにstartDateでフィルター
|
|
251
252
|
const someMonthsAgo = moment()
|
|
252
253
|
// tslint:disable-next-line:no-magic-numbers
|
|
253
|
-
.add(-
|
|
254
|
+
.add(-settings_1.COA_IMPORT_SCREENING_EVENT_SERIES_PERIOD_IN_MONTH, 'months'); // to settings(2023-10-18~)
|
|
254
255
|
const saveParams = screeningEventSerieses
|
|
255
256
|
.filter((screeningEventSeries) => {
|
|
256
257
|
return moment(screeningEventSeries.startDate)
|
package/lib/chevre/settings.d.ts
CHANGED
|
@@ -45,6 +45,7 @@ export declare const USE_OPTIMIZE_TICKET_OFFER: boolean;
|
|
|
45
45
|
export declare const MONGO_MAX_TIME_MS: number;
|
|
46
46
|
export declare const MONGO_READ_PREFERENCE: string;
|
|
47
47
|
export declare const MONGO_AUTO_INDEX: boolean;
|
|
48
|
+
export declare const COA_IMPORT_SCREENING_EVENT_SERIES_PERIOD_IN_MONTH: number;
|
|
48
49
|
/**
|
|
49
50
|
* グローバル設定
|
|
50
51
|
*/
|
package/lib/chevre/settings.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.settings = exports.MONGO_AUTO_INDEX = exports.MONGO_READ_PREFERENCE = exports.MONGO_MAX_TIME_MS = exports.USE_OPTIMIZE_TICKET_OFFER = exports.USE_AUTHORIZE_PAYMENT_RESULT_AS_ARRAY = exports.USE_ORDER_PAYMENT_DUE_ON_PLACED = exports.USE_DELETE_EVENT_BY_ORDER = exports.USE_OBJECT_AS_PAY_TRANSACTION_AMOUNT = exports.USE_NEW_EVENT_AVAILABILITY_KEY_FROM = exports.USE_ASSET_TRANSACTION_SYNC_PROCESSING = exports.DEFAULT_TASKS_EXPORT_AGENT_NAME = exports.DEFAULT_SENDER_EMAIL = exports.TRANSACTION_CANCELED_STORAGE_PERIOD_IN_DAYS = exports.TRANSACTION_CONFIRMED_STORAGE_PERIOD_IN_DAYS = exports.ASSET_TRANSACTION_STORAGE_PERIOD_IN_DAYS = exports.ABORTED_TASKS_WITHOUT_REPORT = exports.TRIGGER_WEBHOOK_RETRY_INTERVAL_IN_MS = exports.TRIGGER_WEBHOOK_MAX_RETRY_COUNT = void 0;
|
|
3
|
+
exports.settings = exports.COA_IMPORT_SCREENING_EVENT_SERIES_PERIOD_IN_MONTH = exports.MONGO_AUTO_INDEX = exports.MONGO_READ_PREFERENCE = exports.MONGO_MAX_TIME_MS = exports.USE_OPTIMIZE_TICKET_OFFER = exports.USE_AUTHORIZE_PAYMENT_RESULT_AS_ARRAY = exports.USE_ORDER_PAYMENT_DUE_ON_PLACED = exports.USE_DELETE_EVENT_BY_ORDER = exports.USE_OBJECT_AS_PAY_TRANSACTION_AMOUNT = exports.USE_NEW_EVENT_AVAILABILITY_KEY_FROM = exports.USE_ASSET_TRANSACTION_SYNC_PROCESSING = exports.DEFAULT_TASKS_EXPORT_AGENT_NAME = exports.DEFAULT_SENDER_EMAIL = exports.TRANSACTION_CANCELED_STORAGE_PERIOD_IN_DAYS = exports.TRANSACTION_CONFIRMED_STORAGE_PERIOD_IN_DAYS = exports.ASSET_TRANSACTION_STORAGE_PERIOD_IN_DAYS = exports.ABORTED_TASKS_WITHOUT_REPORT = exports.TRIGGER_WEBHOOK_RETRY_INTERVAL_IN_MS = exports.TRIGGER_WEBHOOK_MAX_RETRY_COUNT = void 0;
|
|
4
4
|
const moment = require("moment");
|
|
5
5
|
const factory = require("./factory");
|
|
6
6
|
const transactionWebhookUrls = (typeof process.env.INFORM_TRANSACTION_URL === 'string')
|
|
@@ -76,6 +76,10 @@ exports.MONGO_READ_PREFERENCE = (typeof process.env.MONGO_READ_PREFERENCE === 's
|
|
|
76
76
|
? process.env.MONGO_READ_PREFERENCE
|
|
77
77
|
: 'primaryPreferred';
|
|
78
78
|
exports.MONGO_AUTO_INDEX = process.env.MONGO_AUTO_INDEX === '1';
|
|
79
|
+
exports.COA_IMPORT_SCREENING_EVENT_SERIES_PERIOD_IN_MONTH = (typeof process.env.COA_IMPORT_SCREENING_EVENT_SERIES_PERIOD_IN_MONTH === 'string')
|
|
80
|
+
? Number(process.env.COA_IMPORT_SCREENING_EVENT_SERIES_PERIOD_IN_MONTH)
|
|
81
|
+
// tslint:disable-next-line:no-magic-numbers
|
|
82
|
+
: 3;
|
|
79
83
|
/**
|
|
80
84
|
* グローバル設定
|
|
81
85
|
*/
|
package/package.json
CHANGED