@chevre/domain 21.27.0-alpha.8 → 21.27.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/src/chevre/{aggregateEventReservation.ts → aggregation/aggregateEventReservation.ts} +2 -3
- package/example/src/chevre/aggregation/aggregateOffersOnEvent.ts +82 -0
- package/example/src/chevre/{aggregateAllEvents.ts → aggregation/createAggregateEventTasks.ts} +26 -13
- package/example/src/chevre/aggregation/searchAggregateReservations.ts +33 -0
- package/example/src/chevre/searchEvents.ts +4 -4
- package/example/src/chevre/transaction/processPlaceOrder.ts +1 -2
- package/example/src/chevre/unsetUnnecessaryFields.ts +4 -4
- package/lib/chevre/credentials.d.ts +7 -0
- package/lib/chevre/credentials.js +10 -6
- package/lib/chevre/repo/action.d.ts +9 -1
- package/lib/chevre/repo/action.js +80 -47
- package/lib/chevre/repo/aggregateReservation.d.ts +68 -0
- package/lib/chevre/repo/aggregateReservation.js +135 -0
- package/lib/chevre/repo/event.d.ts +16 -14
- package/lib/chevre/repo/event.js +62 -20
- package/lib/chevre/repo/mongoose/schemas/action.js +18 -0
- package/lib/chevre/repo/mongoose/schemas/aggregateReservation.d.ts +5 -0
- package/lib/chevre/repo/mongoose/schemas/aggregateReservation.js +84 -0
- package/lib/chevre/repo/mongoose/schemas/event.js +1 -1
- package/lib/chevre/repo/offer.d.ts +5 -0
- package/lib/chevre/repository.d.ts +5 -0
- package/lib/chevre/repository.js +15 -2
- package/lib/chevre/service/aggregation/event/aggregateOffers.d.ts +31 -0
- package/lib/chevre/service/aggregation/event/aggregateOffers.js +290 -0
- package/lib/chevre/service/aggregation/event/aggregateScreeningEvent.d.ts +3 -4
- package/lib/chevre/service/aggregation/event/aggregateScreeningEvent.js +33 -238
- package/lib/chevre/service/aggregation/event/aggregateUseActionsOnEvent.d.ts +2 -0
- package/lib/chevre/service/aggregation/event/aggregateUseActionsOnEvent.js +19 -15
- package/lib/chevre/service/aggregation/event/findEventOffers.d.ts +2 -2
- package/lib/chevre/service/aggregation/event/findEventOffers.js +0 -2
- package/lib/chevre/service/aggregation/event.d.ts +2 -1
- package/lib/chevre/service/aggregation/event.js +3 -1
- package/lib/chevre/service/assetTransaction/pay.d.ts +4 -1
- package/lib/chevre/service/assetTransaction/pay.js +53 -27
- package/lib/chevre/service/assetTransaction/reserve.js +2 -1
- package/lib/chevre/service/event.js +16 -23
- package/lib/chevre/service/notification.js +0 -102
- package/lib/chevre/service/offer/onEventChanged.d.ts +25 -0
- package/lib/chevre/service/offer/onEventChanged.js +232 -0
- package/lib/chevre/service/offer.d.ts +0 -40
- package/lib/chevre/service/offer.js +1 -184
- package/lib/chevre/service/payment/any/onPaymentStatusChanged.js +2 -9
- package/lib/chevre/service/payment/any/onRefund.d.ts +1 -3
- package/lib/chevre/service/payment/any/onRefund.js +64 -60
- package/lib/chevre/service/payment/any.d.ts +4 -2
- package/lib/chevre/service/payment/any.js +76 -48
- package/lib/chevre/service/payment/creditCard.js +14 -7
- package/lib/chevre/service/payment/movieTicket/checkByIdentifier.js +1 -9
- package/lib/chevre/service/payment/movieTicket.d.ts +1 -1
- package/lib/chevre/service/payment/movieTicket.js +13 -4
- package/lib/chevre/service/reserve/potentialActions/onReservationCanceled.js +2 -2
- package/lib/chevre/service/reserve/potentialActions/onReservationCheckedIn.js +2 -2
- package/lib/chevre/service/reserve/potentialActions/onReservationConfirmed.js +2 -2
- package/lib/chevre/service/reserve/potentialActions/onReservationUsed.js +2 -2
- package/lib/chevre/service/task/aggregateOffers.d.ts +7 -0
- package/lib/chevre/service/task/aggregateOffers.js +47 -0
- package/lib/chevre/service/task/aggregateScreeningEvent.js +0 -2
- package/lib/chevre/service/task/aggregateUseActionsOnEvent.js +2 -0
- package/lib/chevre/service/task/onEventChanged.js +2 -2
- package/lib/chevre/service/transaction/returnOrder/preStart.js +0 -18
- package/lib/chevre/settings.d.ts +1 -0
- package/lib/chevre/settings.js +2 -1
- package/package.json +3 -3
|
@@ -87,16 +87,8 @@ function checkByIdentifier(params) {
|
|
|
87
87
|
const authService = new surfrock.service.auth.AuthService({
|
|
88
88
|
endpoint: String(availableChannel.serviceUrl),
|
|
89
89
|
auth: mvtkReserveAuthClient
|
|
90
|
-
}, { timeout: credentials_1.credentials.movieticketReserve.
|
|
90
|
+
}, { timeout: credentials_1.credentials.movieticketReserve.timeoutCheck });
|
|
91
91
|
purchaseNumberAuthResult = yield authService.purchaseNumberAuth(purchaseNumberAuthIn);
|
|
92
|
-
// 決済カード配列に成形
|
|
93
|
-
// const movieTickets = purchaseNumberAuthResult2movieTickets({
|
|
94
|
-
// screeningEvent: params.screeningEvent,
|
|
95
|
-
// paymentMethodType,
|
|
96
|
-
// knyknrNoInfoIn,
|
|
97
|
-
// purchaseNumberAuthResult
|
|
98
|
-
// });
|
|
99
|
-
// return { purchaseNumberAuthIn, purchaseNumberAuthResult, movieTickets };
|
|
100
92
|
return { purchaseNumberAuthIn, purchaseNumberAuthResult };
|
|
101
93
|
});
|
|
102
94
|
}
|
|
@@ -70,5 +70,5 @@ declare function payMovieTicket(params: factory.task.pay.IPayActionData): IPayOp
|
|
|
70
70
|
/**
|
|
71
71
|
* MovieTicket着券取消
|
|
72
72
|
*/
|
|
73
|
-
declare function refundMovieTicket(params: factory.task.refund.IData): IRefundOperation<
|
|
73
|
+
declare function refundMovieTicket(params: factory.task.refund.IData): IRefundOperation<void>;
|
|
74
74
|
export { ICheckResult, authorize, checkMovieTicket, payMovieTicket, refundMovieTicket, voidTransaction };
|
|
@@ -350,6 +350,7 @@ function payActionParams2seatInfoSyncIn(params) {
|
|
|
350
350
|
* MovieTicket着券取消
|
|
351
351
|
*/
|
|
352
352
|
function refundMovieTicket(params) {
|
|
353
|
+
// tslint:disable-next-line:max-func-body-length
|
|
353
354
|
return (repos) => __awaiter(this, void 0, void 0, function* () {
|
|
354
355
|
var _a, _b, _c, _d, _e;
|
|
355
356
|
const paymentMethodId = (_a = params.object[0]) === null || _a === void 0 ? void 0 : _a.paymentMethod.paymentMethodId;
|
|
@@ -371,6 +372,7 @@ function refundMovieTicket(params) {
|
|
|
371
372
|
let action = yield repos.action.start(params);
|
|
372
373
|
let seatInfoSyncIn;
|
|
373
374
|
let seatInfoSyncResult;
|
|
375
|
+
let seatInfoSyncResultAsError;
|
|
374
376
|
try {
|
|
375
377
|
seatInfoSyncIn = yield createSeatInfoSyncInOnRefund({
|
|
376
378
|
project: { id: params.project.id },
|
|
@@ -400,7 +402,8 @@ function refundMovieTicket(params) {
|
|
|
400
402
|
// 着券取消可能期間超過を認識した上でのあえての返金の場合(注文からしばらく経って返品など)(2024-03-19~)
|
|
401
403
|
if (error.code === http_status_1.BAD_REQUEST && error.message === MovieticketReserveRequestErrorMessage.CancellationPeriodPassed) {
|
|
402
404
|
if (params.purpose.typeOf === factory.actionType.ReturnAction) {
|
|
403
|
-
seatInfoSyncResult = error;
|
|
405
|
+
// seatInfoSyncResult = error;
|
|
406
|
+
seatInfoSyncResultAsError = error;
|
|
404
407
|
throwsError = false;
|
|
405
408
|
}
|
|
406
409
|
}
|
|
@@ -420,10 +423,16 @@ function refundMovieTicket(params) {
|
|
|
420
423
|
throw error;
|
|
421
424
|
}
|
|
422
425
|
}
|
|
423
|
-
|
|
424
|
-
|
|
426
|
+
// アクションとしてはFailedだが後続処理を実行するケースに対応(2024-03-21~)
|
|
427
|
+
if (seatInfoSyncResultAsError !== undefined) {
|
|
428
|
+
action = (yield repos.action.giveUpWithObject({ typeOf: action.typeOf, id: action.id, error: seatInfoSyncResultAsError }));
|
|
429
|
+
}
|
|
430
|
+
else {
|
|
431
|
+
const actionResult = Object.assign(Object.assign({}, (seatInfoSyncIn !== undefined) ? { seatInfoSyncIn } : undefined), (seatInfoSyncResult !== undefined) ? { seatInfoSyncResult } : undefined);
|
|
432
|
+
action = (yield repos.action.complete({ typeOf: action.typeOf, id: action.id, result: actionResult }));
|
|
433
|
+
}
|
|
425
434
|
yield (0, onRefund_1.onRefund)(action)(repos);
|
|
426
|
-
return action;
|
|
435
|
+
// return action;
|
|
427
436
|
});
|
|
428
437
|
}
|
|
429
438
|
exports.refundMovieTicket = refundMovieTicket;
|
|
@@ -15,7 +15,7 @@ exports.onReservationCanceled = void 0;
|
|
|
15
15
|
*/
|
|
16
16
|
const factory = require("../../../factory");
|
|
17
17
|
const settings_1 = require("../../../settings");
|
|
18
|
-
const
|
|
18
|
+
const onEventChanged_1 = require("../../offer/onEventChanged");
|
|
19
19
|
const factory_1 = require("../factory");
|
|
20
20
|
const informReservations = settings_1.settings.onReservationStatusChanged.informReservation;
|
|
21
21
|
function onReservationCanceled(
|
|
@@ -94,7 +94,7 @@ reservationFor) {
|
|
|
94
94
|
}
|
|
95
95
|
if (typeof (reservationFor === null || reservationFor === void 0 ? void 0 : reservationFor.id) === 'string') {
|
|
96
96
|
// 冗長な作成を避ける
|
|
97
|
-
yield (0,
|
|
97
|
+
yield (0, onEventChanged_1.createAggregateScreeningEventIfNotExist)({
|
|
98
98
|
project: { id: reservationFor.project.id },
|
|
99
99
|
reservationFor: [{ id: reservationFor.id }],
|
|
100
100
|
force: false,
|
|
@@ -15,7 +15,7 @@ exports.onReservationCheckedIn = void 0;
|
|
|
15
15
|
*/
|
|
16
16
|
const factory = require("../../../factory");
|
|
17
17
|
const settings_1 = require("../../../settings");
|
|
18
|
-
const
|
|
18
|
+
const onEventChanged_1 = require("../../offer/onEventChanged");
|
|
19
19
|
const factory_1 = require("../factory");
|
|
20
20
|
const informReservations = settings_1.settings.onReservationStatusChanged.informReservation;
|
|
21
21
|
// tslint:disable-next-line:max-func-body-length
|
|
@@ -118,7 +118,7 @@ function onReservationCheckedIn(params) {
|
|
|
118
118
|
// { _id: 1 }
|
|
119
119
|
);
|
|
120
120
|
if (existingEvents.length > 0) {
|
|
121
|
-
yield (0,
|
|
121
|
+
yield (0, onEventChanged_1.createAggregateScreeningEventIfNotExist)({
|
|
122
122
|
project: { id: params.project.id },
|
|
123
123
|
reservationFor: [{ id: reservationForId }],
|
|
124
124
|
force: false,
|
|
@@ -15,7 +15,7 @@ exports.onReservationConfirmed = exports.onReservationConfirmedByAction = void 0
|
|
|
15
15
|
*/
|
|
16
16
|
const factory = require("../../../factory");
|
|
17
17
|
const settings_1 = require("../../../settings");
|
|
18
|
-
const
|
|
18
|
+
const onEventChanged_1 = require("../../offer/onEventChanged");
|
|
19
19
|
const factory_1 = require("../factory");
|
|
20
20
|
const informReservations = settings_1.settings.onReservationStatusChanged.informReservation;
|
|
21
21
|
/**
|
|
@@ -56,7 +56,7 @@ function onReservationConfirmed(confirmedReservations) {
|
|
|
56
56
|
if (Array.isArray(confirmedReservations) && confirmedReservations.length > 0) {
|
|
57
57
|
// ひとつめの予約からReservationPackageの共有属性を取り出す
|
|
58
58
|
const { issuedThrough, project, provider, reservationFor, reservationNumber, reservationStatus, underName } = confirmedReservations[0];
|
|
59
|
-
yield (0,
|
|
59
|
+
yield (0, onEventChanged_1.createAggregateScreeningEventIfNotExist)({
|
|
60
60
|
project,
|
|
61
61
|
reservationFor: [{ id: reservationFor.id }],
|
|
62
62
|
force: false,
|
|
@@ -15,7 +15,7 @@ exports.onReservationUsed = void 0;
|
|
|
15
15
|
*/
|
|
16
16
|
const factory = require("../../../factory");
|
|
17
17
|
const settings_1 = require("../../../settings");
|
|
18
|
-
const
|
|
18
|
+
const onEventChanged_1 = require("../../offer/onEventChanged");
|
|
19
19
|
const factory_1 = require("../factory");
|
|
20
20
|
const informReservations = settings_1.settings.onReservationStatusChanged.informReservation;
|
|
21
21
|
/**
|
|
@@ -96,7 +96,7 @@ function onReservationUsed(attendedReservation) {
|
|
|
96
96
|
yield repos.task.saveMany(tasks, { emitImmediately: true });
|
|
97
97
|
}
|
|
98
98
|
// 冗長な作成を避ける
|
|
99
|
-
yield (0,
|
|
99
|
+
yield (0, onEventChanged_1.createAggregateScreeningEventIfNotExist)({
|
|
100
100
|
project: attendedReservation.project,
|
|
101
101
|
reservationFor: [{ id: attendedReservation.reservationFor.id }],
|
|
102
102
|
force: false,
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as factory from '../../factory';
|
|
2
|
+
import { IConnectionSettings } from '../task';
|
|
3
|
+
export type IOperation<T> = (settings: IConnectionSettings) => Promise<T>;
|
|
4
|
+
/**
|
|
5
|
+
* タスク実行関数
|
|
6
|
+
*/
|
|
7
|
+
export declare function call(data: factory.task.aggregateOffers.IData): IOperation<void>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.call = void 0;
|
|
13
|
+
const factory = require("../../factory");
|
|
14
|
+
const aggregateReservation_1 = require("../../repo/aggregateReservation");
|
|
15
|
+
const event_1 = require("../../repo/event");
|
|
16
|
+
const offer_1 = require("../../repo/offer");
|
|
17
|
+
const offerCatalog_1 = require("../../repo/offerCatalog");
|
|
18
|
+
const place_1 = require("../../repo/place");
|
|
19
|
+
const product_1 = require("../../repo/product");
|
|
20
|
+
const offer_2 = require("../../repo/rateLimit/offer");
|
|
21
|
+
const reservation_1 = require("../../repo/reservation");
|
|
22
|
+
const stockHolder_1 = require("../../repo/stockHolder");
|
|
23
|
+
const task_1 = require("../../repo/task");
|
|
24
|
+
const aggregateOffers_1 = require("../aggregation/event/aggregateOffers");
|
|
25
|
+
/**
|
|
26
|
+
* タスク実行関数
|
|
27
|
+
*/
|
|
28
|
+
function call(data) {
|
|
29
|
+
return (settings) => __awaiter(this, void 0, void 0, function* () {
|
|
30
|
+
if (settings.redisClient === undefined) {
|
|
31
|
+
throw new factory.errors.Argument('settings', 'redisClient required');
|
|
32
|
+
}
|
|
33
|
+
yield (0, aggregateOffers_1.aggregateOffers)(data)({
|
|
34
|
+
aggregateReservation: new aggregateReservation_1.MongoRepository(settings.connection),
|
|
35
|
+
event: new event_1.MongoRepository(settings.connection),
|
|
36
|
+
stockHolder: new stockHolder_1.StockHolderRepository(settings.redisClient, settings.connection),
|
|
37
|
+
offer: new offer_1.MongoRepository(settings.connection),
|
|
38
|
+
offerCatalog: new offerCatalog_1.MongoRepository(settings.connection),
|
|
39
|
+
offerRateLimit: new offer_2.RedisRepository(settings.redisClient),
|
|
40
|
+
place: new place_1.MongoRepository(settings.connection),
|
|
41
|
+
product: new product_1.MongoRepository(settings.connection),
|
|
42
|
+
reservation: new reservation_1.MongoRepository(settings.connection),
|
|
43
|
+
task: new task_1.MongoRepository(settings.connection)
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
exports.call = call;
|
|
@@ -16,7 +16,6 @@ const offer_1 = require("../../repo/offer");
|
|
|
16
16
|
const offerCatalog_1 = require("../../repo/offerCatalog");
|
|
17
17
|
const place_1 = require("../../repo/place");
|
|
18
18
|
const product_1 = require("../../repo/product");
|
|
19
|
-
const project_1 = require("../../repo/project");
|
|
20
19
|
const offer_2 = require("../../repo/rateLimit/offer");
|
|
21
20
|
const reservation_1 = require("../../repo/reservation");
|
|
22
21
|
const stockHolder_1 = require("../../repo/stockHolder");
|
|
@@ -38,7 +37,6 @@ function call(data) {
|
|
|
38
37
|
offerRateLimit: new offer_2.RedisRepository(settings.redisClient),
|
|
39
38
|
place: new place_1.MongoRepository(settings.connection),
|
|
40
39
|
product: new product_1.MongoRepository(settings.connection),
|
|
41
|
-
project: new project_1.MongoRepository(settings.connection),
|
|
42
40
|
reservation: new reservation_1.MongoRepository(settings.connection),
|
|
43
41
|
task: new task_1.MongoRepository(settings.connection)
|
|
44
42
|
});
|
|
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.call = void 0;
|
|
13
13
|
const factory = require("../../factory");
|
|
14
14
|
const action_1 = require("../../repo/action");
|
|
15
|
+
const aggregateReservation_1 = require("../../repo/aggregateReservation");
|
|
15
16
|
const event_1 = require("../../repo/event");
|
|
16
17
|
const offer_1 = require("../../repo/offer");
|
|
17
18
|
const offerCatalog_1 = require("../../repo/offerCatalog");
|
|
@@ -28,6 +29,7 @@ function call(data) {
|
|
|
28
29
|
}
|
|
29
30
|
yield AggregationService.event.aggregateUseActionsOnEvent(data)({
|
|
30
31
|
action: new action_1.MongoRepository(settings.connection),
|
|
32
|
+
aggregateReservation: new aggregateReservation_1.MongoRepository(settings.connection),
|
|
31
33
|
event: new event_1.MongoRepository(settings.connection),
|
|
32
34
|
offer: new offer_1.MongoRepository(settings.connection),
|
|
33
35
|
offerCatalog: new offerCatalog_1.MongoRepository(settings.connection),
|
|
@@ -13,13 +13,13 @@ exports.call = void 0;
|
|
|
13
13
|
const event_1 = require("../../repo/event");
|
|
14
14
|
const project_1 = require("../../repo/project");
|
|
15
15
|
const task_1 = require("../../repo/task");
|
|
16
|
-
const
|
|
16
|
+
const onEventChanged_1 = require("../offer/onEventChanged");
|
|
17
17
|
/**
|
|
18
18
|
* タスク実行関数
|
|
19
19
|
*/
|
|
20
20
|
function call(data) {
|
|
21
21
|
return (settings) => __awaiter(this, void 0, void 0, function* () {
|
|
22
|
-
yield (0,
|
|
22
|
+
yield (0, onEventChanged_1.onEventChanged)(data)({
|
|
23
23
|
event: new event_1.MongoRepository(settings.connection),
|
|
24
24
|
project: new project_1.MongoRepository(settings.connection),
|
|
25
25
|
task: new task_1.MongoRepository(settings.connection)
|
|
@@ -287,7 +287,6 @@ function createOrder4returnPolicy(params) {
|
|
|
287
287
|
};
|
|
288
288
|
}
|
|
289
289
|
const TIMEOUT = 5000;
|
|
290
|
-
// tslint:disable-next-line:max-func-body-length
|
|
291
290
|
function getReturnPolicyByProject(params) {
|
|
292
291
|
var _a;
|
|
293
292
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -342,23 +341,6 @@ function getReturnPolicyByProject(params) {
|
|
|
342
341
|
return returnPolicy;
|
|
343
342
|
}
|
|
344
343
|
catch (err) {
|
|
345
|
-
if (err.name === 'TimeoutError') {
|
|
346
|
-
// tslint:disable-next-line:no-console
|
|
347
|
-
console.error('getReturnPolicyByProject: Timeout: It took more than 5 seconds to get the result!', err);
|
|
348
|
-
}
|
|
349
|
-
else if (err.name === 'AbortError') {
|
|
350
|
-
// tslint:disable-next-line:no-console
|
|
351
|
-
console.error('getReturnPolicyByProject: Fetch aborted by user action (browser stop button, closing tab, etc.', err);
|
|
352
|
-
}
|
|
353
|
-
else if (err.name === 'TypeError') {
|
|
354
|
-
// tslint:disable-next-line:no-console
|
|
355
|
-
console.error('getReturnPolicyByProject: AbortSignal.timeout() method is not supported', err);
|
|
356
|
-
}
|
|
357
|
-
else {
|
|
358
|
-
// A network error, or some other problem.
|
|
359
|
-
// tslint:disable-next-line:no-console
|
|
360
|
-
console.error(`getReturnPolicyByProject: Error: type: ${err.name}, message: ${err.message}`, err);
|
|
361
|
-
}
|
|
362
344
|
throw err;
|
|
363
345
|
}
|
|
364
346
|
});
|
package/lib/chevre/settings.d.ts
CHANGED
|
@@ -42,6 +42,7 @@ export declare const USE_SEND_EMAIL_MESSAGE_ON_ORDER_PROCESSING: boolean;
|
|
|
42
42
|
export declare const USE_OWNERSHIP_INFO_BY_WEB_APPLICATION: boolean;
|
|
43
43
|
export declare const USE_CHECK_RESOURCE_TASK: boolean;
|
|
44
44
|
export declare const USE_OPTIMIZE_RESERVATION_EXCEPTIONS: string[];
|
|
45
|
+
export declare const USE_OPTIMIZE_INFORM_EVENT: boolean;
|
|
45
46
|
export declare const MONGO_MAX_TIME_MS: number;
|
|
46
47
|
export declare const MONGO_READ_PREFERENCE: string;
|
|
47
48
|
export declare const MONGO_AUTO_INDEX: boolean;
|
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.DELIVER_ORDER_LIMIT = exports.MONGO_AUTO_INDEX = exports.MONGO_READ_PREFERENCE = exports.MONGO_MAX_TIME_MS = exports.USE_OPTIMIZE_RESERVATION_EXCEPTIONS = exports.USE_CHECK_RESOURCE_TASK = exports.USE_OWNERSHIP_INFO_BY_WEB_APPLICATION = exports.USE_SEND_EMAIL_MESSAGE_ON_ORDER_PROCESSING = exports.USE_FETCH_API = exports.USE_OPTIMIZE_TICKET_OFFER = exports.USE_DELETE_EVENT_BY_ORDER = 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.MAX_NUM_CREDIT_CARD_PAYMENT_METHOD = exports.ABORTED_TASKS_WITHOUT_REPORT = exports.MAXIMUM_RESERVATION_GRACE_PERIOD_IN_DAYS = exports.TRIGGER_WEBHOOK_RETRY_INTERVAL_IN_MS = exports.TRIGGER_WEBHOOK_MAX_RETRY_COUNT = void 0;
|
|
3
|
+
exports.settings = exports.DELIVER_ORDER_LIMIT = exports.MONGO_AUTO_INDEX = exports.MONGO_READ_PREFERENCE = exports.MONGO_MAX_TIME_MS = exports.USE_OPTIMIZE_INFORM_EVENT = exports.USE_OPTIMIZE_RESERVATION_EXCEPTIONS = exports.USE_CHECK_RESOURCE_TASK = exports.USE_OWNERSHIP_INFO_BY_WEB_APPLICATION = exports.USE_SEND_EMAIL_MESSAGE_ON_ORDER_PROCESSING = exports.USE_FETCH_API = exports.USE_OPTIMIZE_TICKET_OFFER = exports.USE_DELETE_EVENT_BY_ORDER = 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.MAX_NUM_CREDIT_CARD_PAYMENT_METHOD = exports.ABORTED_TASKS_WITHOUT_REPORT = exports.MAXIMUM_RESERVATION_GRACE_PERIOD_IN_DAYS = exports.TRIGGER_WEBHOOK_RETRY_INTERVAL_IN_MS = exports.TRIGGER_WEBHOOK_MAX_RETRY_COUNT = void 0;
|
|
4
4
|
const factory = require("./factory");
|
|
5
5
|
const transactionWebhookUrls = (typeof process.env.INFORM_TRANSACTION_URL === 'string')
|
|
6
6
|
? process.env.INFORM_TRANSACTION_URL.split(' ')
|
|
@@ -68,6 +68,7 @@ exports.USE_CHECK_RESOURCE_TASK = process.env.USE_CHECK_RESOURCE_TASK === '1';
|
|
|
68
68
|
exports.USE_OPTIMIZE_RESERVATION_EXCEPTIONS = (typeof process.env.USE_OPTIMIZE_RESERVATION_EXCEPTIONS === 'string')
|
|
69
69
|
? process.env.USE_OPTIMIZE_RESERVATION_EXCEPTIONS.split(' ')
|
|
70
70
|
: [];
|
|
71
|
+
exports.USE_OPTIMIZE_INFORM_EVENT = process.env.USE_OPTIMIZE_INFORM_EVENT === '1';
|
|
71
72
|
exports.MONGO_MAX_TIME_MS = (typeof process.env.MONGO_MAX_TIME_MS === 'string')
|
|
72
73
|
? Number(process.env.MONGO_MAX_TIME_MS)
|
|
73
74
|
// tslint:disable-next-line:no-magic-numbers
|
package/package.json
CHANGED
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
],
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@aws-sdk/credential-providers": "3.433.0",
|
|
13
|
-
"@chevre/factory": "4.
|
|
14
|
-
"@cinerino/sdk": "5.
|
|
13
|
+
"@chevre/factory": "4.364.0",
|
|
14
|
+
"@cinerino/sdk": "5.15.0",
|
|
15
15
|
"@motionpicture/coa-service": "9.4.0",
|
|
16
16
|
"@motionpicture/gmo-service": "5.3.0",
|
|
17
17
|
"@sendgrid/mail": "6.4.0",
|
|
@@ -110,5 +110,5 @@
|
|
|
110
110
|
"postversion": "git push origin --tags",
|
|
111
111
|
"prepublishOnly": "npm run clean && npm run build && npm test && npm run doc"
|
|
112
112
|
},
|
|
113
|
-
"version": "21.27.0
|
|
113
|
+
"version": "21.27.0"
|
|
114
114
|
}
|