@chevre/domain 21.8.0-alpha.49 → 21.8.0-alpha.50
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.
|
@@ -53,7 +53,7 @@ async function main() {
|
|
|
53
53
|
availableAtOrFrom: (Array.isArray(offerByAggregateOffer.availableAtOrFrom))
|
|
54
54
|
? offerByAggregateOffer.availableAtOrFrom : []
|
|
55
55
|
};
|
|
56
|
-
delete (<any>offerByAggregateOffer).$unset;
|
|
56
|
+
// delete (<any>offerByAggregateOffer).$unset;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
if (util.isDeepStrictEqual(unitPriceOffer, offerByAggregateOffer)) {
|
package/lib/chevre/repo/offer.js
CHANGED
|
@@ -884,6 +884,10 @@ class MongoRepository {
|
|
|
884
884
|
if (useAggregateOfferAsPrimary) {
|
|
885
885
|
return this.searchFromAggregateOffer(params, projection);
|
|
886
886
|
}
|
|
887
|
+
// useOffersAsPrimary禁止設定(2023-09-09~)
|
|
888
|
+
if (settings_1.USE_PROHIBIT_OFFERS_AS_PRIMARY) {
|
|
889
|
+
throw new factory.errors.NotImplemented('useOffersAsPrimary prohibited');
|
|
890
|
+
}
|
|
887
891
|
const conditions = MongoRepository.CREATE_OFFER_MONGO_CONDITIONS(params);
|
|
888
892
|
const positiveProjectionExists = (projection !== undefined && projection !== null)
|
|
889
893
|
? Object.values(projection)
|
package/lib/chevre/settings.d.ts
CHANGED
|
@@ -43,6 +43,7 @@ export declare const USE_DELETE_EVENT_BY_ORDER: boolean;
|
|
|
43
43
|
export declare const USE_ORDER_PAYMENT_DUE_ON_PLACED: boolean;
|
|
44
44
|
export declare const USE_AUTHORIZE_PAYMENT_RESULT_AS_ARRAY: boolean;
|
|
45
45
|
export declare const USE_AGGREGATE_OFFERS_AS_PRIMARY: boolean;
|
|
46
|
+
export declare const USE_PROHIBIT_OFFERS_AS_PRIMARY: boolean;
|
|
46
47
|
export declare const MONGO_MAX_TIME_MS: number;
|
|
47
48
|
/**
|
|
48
49
|
* グローバル設定
|
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_MAX_TIME_MS = exports.USE_AGGREGATE_OFFERS_AS_PRIMARY = 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_ADVANCE_BOOKING_REQUIREMENT = 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.MONGO_MAX_TIME_MS = exports.USE_PROHIBIT_OFFERS_AS_PRIMARY = exports.USE_AGGREGATE_OFFERS_AS_PRIMARY = 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_ADVANCE_BOOKING_REQUIREMENT = 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')
|
|
@@ -75,6 +75,7 @@ exports.USE_DELETE_EVENT_BY_ORDER = process.env.USE_DELETE_EVENT_BY_ORDER === '1
|
|
|
75
75
|
exports.USE_ORDER_PAYMENT_DUE_ON_PLACED = process.env.USE_ORDER_PAYMENT_DUE_ON_PLACED === '1';
|
|
76
76
|
exports.USE_AUTHORIZE_PAYMENT_RESULT_AS_ARRAY = process.env.USE_AUTHORIZE_PAYMENT_RESULT_AS_ARRAY === '1';
|
|
77
77
|
exports.USE_AGGREGATE_OFFERS_AS_PRIMARY = process.env.USE_AGGREGATE_OFFERS_AS_PRIMARY === '1';
|
|
78
|
+
exports.USE_PROHIBIT_OFFERS_AS_PRIMARY = process.env.USE_PROHIBIT_OFFERS_AS_PRIMARY === '1';
|
|
78
79
|
exports.MONGO_MAX_TIME_MS = (typeof process.env.MONGO_MAX_TIME_MS === 'string')
|
|
79
80
|
? Number(process.env.MONGO_MAX_TIME_MS)
|
|
80
81
|
// tslint:disable-next-line:no-magic-numbers
|
package/package.json
CHANGED