@chevre/domain 21.24.0 → 21.25.0-alpha.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.
@@ -11,11 +11,11 @@ mongoose.Model.on('index', (...args) => {
11
11
 
12
12
  const CODE = '068cb0ba-8529-4a2b-8cf5-890d5af9c536';
13
13
  const RESERVATION_ID = '589701779538948-0';
14
+ // const RESERVATION_ID = '589701779538948-1';
14
15
 
15
16
  async function main() {
16
17
  await mongoose.connect(<string>process.env.MONGOLAB_URI, { autoIndex: false });
17
18
 
18
- const acceptedOfferRepo = await chevre.repository.AcceptedOffer.createInstance(mongoose.connection);
19
19
  const authorizationRepo = await chevre.repository.Code.createInstance(mongoose.connection);
20
20
  const orderRepo = await chevre.repository.Order.createInstance(mongoose.connection);
21
21
  const reservationRepo = await chevre.repository.Reservation.createInstance(mongoose.connection);
@@ -38,8 +38,8 @@ async function main() {
38
38
  code: CODE,
39
39
  id: RESERVATION_ID
40
40
  })({
41
- acceptedOffer: acceptedOfferRepo,
42
41
  authorization: authorizationRepo,
42
+ order: orderRepo,
43
43
  reservation: reservationRepo
44
44
  });
45
45
  // tslint:disable-next-line:no-null-keyword
@@ -20,7 +20,7 @@ async function main() {
20
20
  runsAt: {
21
21
  $gte: moment()
22
22
  // tslint:disable-next-line:no-magic-numbers
23
- .add(223, 'days')
23
+ .add(236, 'days')
24
24
  .toDate(),
25
25
  $lte: moment()
26
26
  // tslint:disable-next-line:no-magic-numbers
@@ -30,7 +30,6 @@ export declare class MongoRepository {
30
30
  };
31
31
  code: ICode;
32
32
  }): Promise<IObject>;
33
- count(params: factory.authorization.ISearchConditions): Promise<number>;
34
33
  search(params: factory.authorization.ISearchConditions): Promise<factory.authorization.IAuthorization[]>;
35
34
  /**
36
35
  * 有効期限を一定期間過ぎた承認を削除する
@@ -119,7 +119,9 @@ class MongoRepository {
119
119
  code: { $eq: String(params.code) },
120
120
  validFrom: { $lte: now },
121
121
  validUntil: { $gte: now }
122
- }, { object: 1 })
122
+ }, { object: 1, _id: 0 })
123
+ // projection的にleanで十分
124
+ .lean()
123
125
  .exec();
124
126
  if (doc === null) {
125
127
  throw new factory.errors.NotFound(this.authorizationModel.modelName);
@@ -127,14 +129,12 @@ class MongoRepository {
127
129
  return doc.object;
128
130
  });
129
131
  }
130
- count(params) {
131
- return __awaiter(this, void 0, void 0, function* () {
132
- const conditions = MongoRepository.CREATE_MONGO_CONDITIONS(params);
133
- return this.authorizationModel.countDocuments((conditions.length > 0) ? { $and: conditions } : {})
134
- .setOptions({ maxTimeMS: settings_1.MONGO_MAX_TIME_MS })
135
- .exec();
136
- });
137
- }
132
+ // public async count(params: factory.authorization.ISearchConditions): Promise<number> {
133
+ // const conditions = MongoRepository.CREATE_MONGO_CONDITIONS(params);
134
+ // return this.authorizationModel.countDocuments((conditions.length > 0) ? { $and: conditions } : {})
135
+ // .setOptions({ maxTimeMS: MONGO_MAX_TIME_MS })
136
+ // .exec();
137
+ // }
138
138
  search(params) {
139
139
  var _a;
140
140
  return __awaiter(this, void 0, void 0, function* () {
@@ -13,7 +13,10 @@ const schemaDefinition = {
13
13
  type: String,
14
14
  required: true
15
15
  },
16
- identifier: mongoose_1.SchemaTypes.Mixed,
16
+ identifier: {
17
+ type: String,
18
+ required: true
19
+ },
17
20
  ownedBy: mongoose_1.SchemaTypes.Mixed,
18
21
  acquiredFrom: mongoose_1.SchemaTypes.Mixed,
19
22
  ownedFrom: Date,
@@ -936,11 +936,13 @@ class MongoRepository {
936
936
  } }, (typeof ((_a = params.seller) === null || _a === void 0 ? void 0 : _a.id) === 'string')
937
937
  ? { 'seller.id': { $exists: true, $eq: params.seller.id } }
938
938
  : undefined), projection)
939
+ // projection的にleanで十分
940
+ .lean()
939
941
  .exec();
940
942
  if (doc === null) {
941
943
  throw new factory.errors.NotFound(this.orderModel.modelName);
942
944
  }
943
- return doc.toObject();
945
+ return doc;
944
946
  });
945
947
  }
946
948
  /**
@@ -225,9 +225,8 @@ class MongoRepository {
225
225
  let doc;
226
226
  let duplicate = false;
227
227
  try {
228
- doc = yield this.ownershipInfoModel.findOneAndUpdate({ identifier: ownershipInfo.identifier }, {
229
- // insert時以外は何もしなくてもよいか
230
- // $set: ownershipInfo,
228
+ doc = yield this.ownershipInfoModel.findOneAndUpdate({ identifier: { $eq: ownershipInfo.identifier } }, {
229
+ // insert時以外は何もしなくてもよい
231
230
  $setOnInsert: Object.assign(Object.assign({}, ownershipInfo), { _id: uuid.v4() // 新規作成時は所有権ID発行
232
231
  })
233
232
  }, {
@@ -254,7 +253,7 @@ class MongoRepository {
254
253
  }
255
254
  if (duplicate) {
256
255
  // 重複の場合、再度取得
257
- doc = yield this.ownershipInfoModel.findOne({ identifier: ownershipInfo.identifier }, {
256
+ doc = yield this.ownershipInfoModel.findOne({ identifier: { $eq: ownershipInfo.identifier } }, {
258
257
  __v: 0,
259
258
  createdAt: 0,
260
259
  updatedAt: 0
@@ -313,7 +312,7 @@ class MongoRepository {
313
312
  .select({ __v: 0, createdAt: 0, updatedAt: 0 })
314
313
  .exec()
315
314
  .then((doc) => {
316
- // 存在しない場合はいったん保留
315
+ // 存在しない場合も正常にハンドルする
317
316
  if (doc === null) {
318
317
  return;
319
318
  }
@@ -54,8 +54,8 @@ export declare class MongoRepository {
54
54
  }): Promise<factory.reservation.IReservation<factory.reservationType.EventReservation>[]>;
55
55
  findById<T extends factory.reservationType>(params: {
56
56
  id: string;
57
- inclusion?: string[];
58
- exclusion?: string[];
57
+ inclusion?: IKeyOfProjection[];
58
+ exclusion?: IKeyOfProjection[];
59
59
  }): Promise<factory.reservation.IReservation<T>>;
60
60
  confirmManyIfNotExist(params: {
61
61
  provider: factory.reservation.IProvider;
@@ -115,7 +115,7 @@ export declare class MongoRepository {
115
115
  updatePartiallyById(params: {
116
116
  id: string;
117
117
  update: IUpdatePartiallyParams;
118
- }): Promise<Pick<factory.reservation.eventReservation.IReservation, 'id'>>;
118
+ }): Promise<void>;
119
119
  deleteByIds(params: {
120
120
  project: {
121
121
  id: string;
@@ -878,29 +878,6 @@ class MongoRepository {
878
878
  return doc.toObject();
879
879
  });
880
880
  }
881
- // public async confirmByReservationNumber(params: {
882
- // reservationNumber: string;
883
- // previousReservationStatus: factory.reservationStatusType;
884
- // underName?: factory.reservation.IUnderName<factory.reservationType.EventReservation>;
885
- // broker?: factory.reservation.IBroker<factory.reservationType>;
886
- // issuedThrough?: factory.assetTransaction.reserve.IIssuedThrough;
887
- // }): Promise<void> {
888
- // const conditions = {
889
- // reservationNumber: { $eq: String(params.reservationNumber) },
890
- // reservationStatus: { $eq: params.previousReservationStatus }
891
- // };
892
- // const update = {
893
- // // previousReservationStatusを保管(2023-01-19~)
894
- // previousReservationStatus: params.previousReservationStatus,
895
- // reservationStatus: factory.reservationStatusType.ReservationConfirmed,
896
- // modifiedTime: new Date(),
897
- // ...(params.underName !== undefined) ? { underName: params.underName } : undefined,
898
- // ...(typeof params.broker?.typeOf === 'string') ? { broker: params.broker } : undefined,
899
- // ...(typeof params.issuedThrough?.typeOf === 'string') ? { issuedThrough: params.issuedThrough } : undefined
900
- // };
901
- // await this.reservationModel.updateMany(conditions, update)
902
- // .exec();
903
- // }
904
881
  confirmManyIfNotExist(params) {
905
882
  return __awaiter(this, void 0, void 0, function* () {
906
883
  const modifiedTime = new Date();
@@ -1101,7 +1078,6 @@ class MongoRepository {
1101
1078
  if (doc === null) {
1102
1079
  throw new factory.errors.ArgumentNull(this.reservationModel.modelName);
1103
1080
  }
1104
- return doc.toObject();
1105
1081
  });
1106
1082
  });
1107
1083
  }
@@ -85,8 +85,6 @@ function createOwnedby(params) {
85
85
  // 個人情報排除するように
86
86
  typeOf: customer.typeOf,
87
87
  id: customer.id
88
- // project: customer.project,
89
- // ...(Array.isArray(customer.identifier)) ? { identifier: customer.identifier } : undefined
90
88
  };
91
89
  owner = ownerAsOrganization;
92
90
  }
@@ -95,10 +93,6 @@ function createOwnedby(params) {
95
93
  // 個人情報排除するように
96
94
  typeOf: customer.typeOf,
97
95
  id: customer.id
98
- // ...(Array.isArray(customer.identifier)) ? { identifier: customer.identifier } : undefined,
99
- // ...(customer.typeOf === factory.personType.Person && typeof customer.memberOf?.typeOf === 'string')
100
- // ? { memberOf: customer.memberOf }
101
- // : undefined
102
96
  };
103
97
  owner = ownerAsPerson;
104
98
  }
@@ -107,8 +101,6 @@ function createOwnedby(params) {
107
101
  // 個人情報排除するように
108
102
  typeOf: customer.typeOf,
109
103
  id: customer.id
110
- // ↓不要なので廃止(2022-07-28~)
111
- // ...(Array.isArray(customer.identifier)) ? { identifier: customer.identifier } : undefined
112
104
  };
113
105
  }
114
106
  return [owner];
@@ -139,8 +139,6 @@ function processReturnOrder(order, dateReturned) {
139
139
  // 所有権の所有期間変更
140
140
  // 注文オファーリポジトリから所有権識別子を検索する(2023-12-07~)
141
141
  const ownershipInfos = yield repos.acceptedOffer.aggreateOwnershipInfosByOrder({ orderNumber: { $eq: order.orderNumber } });
142
- // const ownershipInfos = createOwnershipInfosFromOrder({ order });
143
- debug('processing findByIdentifierAndUpdateOwnedThrough...', ownershipInfos);
144
142
  if (Array.isArray(ownershipInfos)) {
145
143
  yield Promise.all(ownershipInfos.map((ownershipInfo) => __awaiter(this, void 0, void 0, function* () {
146
144
  const ownershipInfoReturned = yield repos.ownershipInfo.findByIdentifierAndUpdateOwnedThrough({
@@ -149,7 +147,7 @@ function processReturnOrder(order, dateReturned) {
149
147
  ownedThrough: dateReturned
150
148
  })
151
149
  .then((ownershipInfoByDB) => {
152
- // 存在しない場合はいったん保留
150
+ // 存在しない場合は識別子のみ保管(customer.typeOfによって存在しないこともありうる)
153
151
  if (ownershipInfoByDB === undefined) {
154
152
  return ownershipInfo;
155
153
  }
@@ -16,6 +16,7 @@ const factory_1 = require("../delivery/factory");
16
16
  const findPlaceOrderTransaction_1 = require("./findPlaceOrderTransaction");
17
17
  const onOrderStatusChanged_1 = require("./onOrderStatusChanged");
18
18
  const factory = require("../../factory");
19
+ const settings_1 = require("../../settings");
19
20
  const debug = createDebug('chevre-domain:service:order');
20
21
  /**
21
22
  * 注文を配送する
@@ -87,9 +88,20 @@ function sendOrder(params) {
87
88
  typeOf: factory.actionType.SendAction
88
89
  };
89
90
  const action = yield repos.action.start(sendOrderActionAttributes);
90
- let ownershipInfos;
91
+ let ownershipInfos = [];
91
92
  let allOffersDelivered = false;
92
93
  let acceptedOffers;
94
+ // 所有権生成を最小化(2024-03-01~)
95
+ let createOwnerships = false;
96
+ switch (order.customer.typeOf) {
97
+ case factory.creativeWorkType.WebApplication:
98
+ if (settings_1.USE_OWNERSHIP_INFO_BY_WEB_APPLICATION) {
99
+ createOwnerships = true;
100
+ }
101
+ break;
102
+ default:
103
+ createOwnerships = true;
104
+ }
93
105
  try {
94
106
  const searchSlicedAcceptedOffersResult = yield repos.acceptedOffer.searchSlicedAcceptedOffersByOrderNumber({
95
107
  $slice: [limit * (page - 1), limit],
@@ -97,15 +109,15 @@ function sendOrder(params) {
97
109
  project: { id: { $eq: order.project.id } }
98
110
  });
99
111
  acceptedOffers = searchSlicedAcceptedOffersResult.acceptedOffers;
100
- debug('delivering...', order.orderNumber, acceptedOffers.map((offer) => `${offer.itemOffered.id}`), params.object.acceptedOffers);
101
112
  // 所有権作成
102
- ownershipInfos = (0, factory_1.createOwnershipInfosFromOrder)({ order: Object.assign(Object.assign({}, order), { acceptedOffers }) });
103
- ownershipInfos = yield Promise.all(ownershipInfos.map((ownershipInfo) => __awaiter(this, void 0, void 0, function* () {
104
- return repos.ownershipInfo.createIfNotExistByIdentifier(ownershipInfo);
105
- })));
106
- const deliveredCount = limit * page;
107
- debug(deliveredCount, 'delivered.', order.orderNumber, params.object.acceptedOffers);
108
- // if (deliveredCount >= numAcceptedOffers) {
113
+ if (createOwnerships) {
114
+ ownershipInfos = (0, factory_1.createOwnershipInfosFromOrder)({ order: Object.assign(Object.assign({}, order), { acceptedOffers }) });
115
+ ownershipInfos = yield Promise.all(ownershipInfos.map((ownershipInfo) => __awaiter(this, void 0, void 0, function* () {
116
+ return repos.ownershipInfo.createIfNotExistByIdentifier(ownershipInfo);
117
+ })));
118
+ }
119
+ // const deliveredCount = limit * page;
120
+ // debug(deliveredCount, 'delivered.', order.orderNumber, params.object.acceptedOffers);
109
121
  if (acceptedOffers.length === 0) {
110
122
  order = yield repos.order.changeStatus({
111
123
  project: { id: order.project.id },
@@ -1,11 +1,15 @@
1
1
  import * as factory from '../../factory';
2
- import type { MongoRepository as AcceptedOfferRepo } from '../../repo/acceptedOffer';
3
2
  import type { MongoRepository as AuthorizationRepo } from '../../repo/code';
3
+ import type { MongoRepository as OrderRepo } from '../../repo/order';
4
4
  import type { MongoRepository as ReservationRepo } from '../../repo/reservation';
5
5
  type AvailableReservationType = factory.reservationType.BusReservation | factory.reservationType.EventReservation;
6
6
  type IReservationResult = Pick<factory.reservation.IReservation<AvailableReservationType>, 'id' | 'additionalTicketText' | 'reservationStatus'> & {
7
7
  reservedTicket: {
8
- ticketType: Pick<factory.reservation.ITicketType<AvailableReservationType>, 'identifier' | 'name'>;
8
+ ticketType: Pick<factory.reservation.ITicketType<AvailableReservationType>, 'identifier'> & {
9
+ name: {
10
+ ja?: string;
11
+ };
12
+ };
9
13
  };
10
14
  };
11
15
  declare function findByCode(params: {
@@ -20,9 +24,12 @@ declare function findByCode(params: {
20
24
  * 注文コード
21
25
  */
22
26
  code: string;
27
+ seller?: {
28
+ id?: string;
29
+ };
23
30
  }): (repos: {
24
- acceptedOffer: AcceptedOfferRepo;
25
31
  authorization: AuthorizationRepo;
32
+ order: OrderRepo;
26
33
  reservation: ReservationRepo;
27
34
  }) => Promise<{
28
35
  reservation: IReservationResult;
@@ -13,72 +13,49 @@ exports.findByCode = void 0;
13
13
  const factory = require("../../factory");
14
14
  function findByCode(params) {
15
15
  return (repos) => __awaiter(this, void 0, void 0, function* () {
16
- var _a, _b;
16
+ var _a;
17
17
  if (typeof params.id !== 'string' || params.id.length === 0) {
18
18
  throw new factory.errors.ArgumentNull('id');
19
19
  }
20
20
  if (typeof params.code !== 'string' || params.code.length === 0) {
21
21
  throw new factory.errors.ArgumentNull('code');
22
22
  }
23
+ const reservationId = String(params.id);
23
24
  const authorizationObject = yield repos.authorization.findValidObjectByCode({
24
25
  project: { id: params.project.id },
25
26
  code: params.code
26
27
  });
27
- let reservationIdInOrder;
28
- let reservationTypeInOrder;
29
- let offeredThroughIdentifier = factory.service.webAPI.Identifier.Chevre;
30
28
  switch (authorizationObject.typeOf) {
31
29
  case factory.order.OrderType.Order:
32
30
  const { orderNumber } = authorizationObject;
33
31
  if (typeof orderNumber === 'string' && orderNumber.length > 0) {
34
- const acceptedOffer = (yield repos.acceptedOffer.searchAcceptedOffersByOrderNumber({
35
- limit: 1,
36
- page: 1,
37
- project: { id: { $eq: params.project.id } },
38
- orderNumber: { $eq: String(orderNumber) },
39
- acceptedOffers: { itemOffered: { id: { $eq: String(params.id) } } }
40
- }, ['itemOffered', 'offeredThrough'])).shift();
41
- const itemOfferedTypeOf = acceptedOffer === null || acceptedOffer === void 0 ? void 0 : acceptedOffer.itemOffered.typeOf;
42
- if (itemOfferedTypeOf === factory.reservationType.BusReservation
43
- || itemOfferedTypeOf === factory.reservationType.EventReservation) {
44
- reservationIdInOrder = acceptedOffer === null || acceptedOffer === void 0 ? void 0 : acceptedOffer.itemOffered.id;
45
- reservationTypeInOrder = itemOfferedTypeOf;
46
- offeredThroughIdentifier = (_a = acceptedOffer === null || acceptedOffer === void 0 ? void 0 : acceptedOffer.offeredThrough) === null || _a === void 0 ? void 0 : _a.identifier;
47
- }
32
+ // reservationIdを含む注文の存在を確認するだけでよい
33
+ yield repos.order.findByOrderNumberAndReservationId({
34
+ project: { id: params.project.id },
35
+ orderNumber,
36
+ reservationId,
37
+ seller: params.seller
38
+ });
48
39
  }
49
40
  break;
50
41
  default:
51
42
  throw new factory.errors.NotImplemented(`authorization object typeOf: ${authorizationObject.typeOf} not implemented`);
52
43
  }
53
- let reservation;
54
- if (typeof reservationIdInOrder === 'string' && typeof reservationTypeInOrder === 'string') {
55
- switch (offeredThroughIdentifier) {
56
- // COA対応
57
- case factory.service.webAPI.Identifier.COA:
58
- throw new factory.errors.NotImplemented(`offeredThroughIdentifier: ${offeredThroughIdentifier} not implemented`);
59
- default:
60
- const reservationFromRepo = (yield repos.reservation.search({
61
- project: { id: { $eq: params.project.id } },
62
- typeOf: reservationTypeInOrder,
63
- id: { $eq: reservationIdInOrder }
64
- }, { id: 1, additionalTicketText: 1, reservationStatus: 1, reservedTicket: 1 })).shift();
65
- if (reservationFromRepo !== undefined) {
66
- const { id, additionalTicketText, reservationStatus, reservedTicket } = reservationFromRepo;
67
- reservation = {
68
- id, additionalTicketText, reservationStatus,
69
- reservedTicket: {
70
- ticketType: {
71
- identifier: reservedTicket.ticketType.identifier,
72
- name: { ja: (_b = reservedTicket.ticketType.name) === null || _b === void 0 ? void 0 : _b.ja }
73
- }
74
- }
75
- };
76
- }
44
+ const reservationFromRepo = yield repos.reservation.findById({
45
+ id: reservationId,
46
+ inclusion: ['id', 'additionalTicketText', 'reservationStatus', 'reservedTicket'],
47
+ exclusion: []
48
+ });
49
+ const { id, additionalTicketText, reservationStatus, reservedTicket } = reservationFromRepo;
50
+ const reservation = {
51
+ id, additionalTicketText, reservationStatus,
52
+ reservedTicket: {
53
+ ticketType: {
54
+ identifier: reservedTicket.ticketType.identifier,
55
+ name: { ja: (_a = reservedTicket.ticketType.name) === null || _a === void 0 ? void 0 : _a.ja }
56
+ }
77
57
  }
78
- }
79
- if (reservation === undefined) {
80
- throw new factory.errors.NotFound('Reservation');
81
- }
58
+ };
82
59
  return { reservation };
83
60
  });
84
61
  }
@@ -43,6 +43,7 @@ export declare const USE_SEND_EMAIL_MESSAGE_ON_ORDER_PROCESSING: boolean;
43
43
  export declare const USE_MINIMIZED_PAY_TASK: boolean;
44
44
  export declare const USE_KANA_NAME_IN_ACCEPTED_OFFER: boolean;
45
45
  export declare const USE_VALIDATE_PROJECT_MAKES_OFFER: boolean;
46
+ export declare const USE_OWNERSHIP_INFO_BY_WEB_APPLICATION: boolean;
46
47
  export declare const MONGO_MAX_TIME_MS: number;
47
48
  export declare const MONGO_READ_PREFERENCE: string;
48
49
  export declare const MONGO_AUTO_INDEX: boolean;
@@ -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_VALIDATE_PROJECT_MAKES_OFFER = exports.USE_KANA_NAME_IN_ACCEPTED_OFFER = exports.USE_MINIMIZED_PAY_TASK = exports.USE_SEND_EMAIL_MESSAGE_ON_ORDER_PROCESSING = exports.USE_INFORM_ORDER_IN_TRANSIT = 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.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_OWNERSHIP_INFO_BY_WEB_APPLICATION = exports.USE_VALIDATE_PROJECT_MAKES_OFFER = exports.USE_KANA_NAME_IN_ACCEPTED_OFFER = exports.USE_MINIMIZED_PAY_TASK = exports.USE_SEND_EMAIL_MESSAGE_ON_ORDER_PROCESSING = exports.USE_INFORM_ORDER_IN_TRANSIT = 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.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(' ')
@@ -67,6 +67,7 @@ exports.USE_SEND_EMAIL_MESSAGE_ON_ORDER_PROCESSING = process.env.USE_SEND_EMAIL_
67
67
  exports.USE_MINIMIZED_PAY_TASK = process.env.USE_MINIMIZED_PAY_TASK === '1';
68
68
  exports.USE_KANA_NAME_IN_ACCEPTED_OFFER = process.env.USE_KANA_NAME_IN_ACCEPTED_OFFER === '1';
69
69
  exports.USE_VALIDATE_PROJECT_MAKES_OFFER = process.env.USE_VALIDATE_PROJECT_MAKES_OFFER === '1';
70
+ exports.USE_OWNERSHIP_INFO_BY_WEB_APPLICATION = process.env.USE_OWNERSHIP_INFO_BY_WEB_APPLICATION === '1';
70
71
  exports.MONGO_MAX_TIME_MS = (typeof process.env.MONGO_MAX_TIME_MS === 'string')
71
72
  ? Number(process.env.MONGO_MAX_TIME_MS)
72
73
  // tslint:disable-next-line:no-magic-numbers
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  ],
11
11
  "dependencies": {
12
12
  "@aws-sdk/credential-providers": "3.433.0",
13
- "@chevre/factory": "4.358.0",
13
+ "@chevre/factory": "4.359.0",
14
14
  "@cinerino/sdk": "5.12.0",
15
15
  "@motionpicture/coa-service": "9.3.0-alpha.5",
16
16
  "@motionpicture/gmo-service": "5.3.0-alpha.4",
@@ -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.24.0"
113
+ "version": "21.25.0-alpha.0"
114
114
  }