@chevre/domain 26.0.0-alpha.3 → 26.0.0-alpha.31
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/lib/chevre/eventEmitter/task.d.ts +8 -23
- package/lib/chevre/eventEmitter/task.js +2 -2
- package/lib/chevre/repo/acceptedOffer.d.ts +0 -7
- package/lib/chevre/repo/acceptedOffer.js +27 -27
- package/lib/chevre/repo/action/actionProcess.d.ts +1 -1
- package/lib/chevre/repo/action/inform.d.ts +38 -0
- package/lib/chevre/repo/action/inform.js +159 -0
- package/lib/chevre/repo/action/update.d.ts +56 -0
- package/lib/chevre/repo/action/update.js +173 -0
- package/lib/chevre/repo/action.d.ts +3 -19
- package/lib/chevre/repo/action.js +0 -298
- package/lib/chevre/repo/adminAssetTransaction.d.ts +126 -0
- package/lib/chevre/repo/adminAssetTransaction.js +491 -0
- package/lib/chevre/repo/adminAsyncAction.d.ts +2 -2
- package/lib/chevre/repo/adminScheduledTask.d.ts +1 -1
- package/lib/chevre/repo/adminTask.d.ts +25 -8
- package/lib/chevre/repo/adminTask.js +31 -32
- package/lib/chevre/repo/adminTransaction.d.ts +131 -0
- package/lib/chevre/repo/adminTransaction.js +237 -0
- package/lib/chevre/repo/aggregateAssetTransaction.d.ts +43 -0
- package/lib/chevre/repo/aggregateAssetTransaction.js +166 -0
- package/lib/chevre/repo/aggregateScheduledTask.d.ts +32 -0
- package/lib/chevre/repo/aggregateScheduledTask.js +136 -0
- package/lib/chevre/repo/aggregateTransaction.d.ts +39 -0
- package/lib/chevre/repo/aggregateTransaction.js +166 -0
- package/lib/chevre/repo/aggregation.d.ts +0 -8
- package/lib/chevre/repo/aggregation.js +0 -10
- package/lib/chevre/repo/assetTransaction.d.ts +10 -235
- package/lib/chevre/repo/assetTransaction.js +48 -636
- package/lib/chevre/repo/asyncAction.d.ts +2 -2
- package/lib/chevre/repo/authorization.d.ts +0 -6
- package/lib/chevre/repo/authorization.js +15 -27
- package/lib/chevre/repo/message.d.ts +0 -7
- package/lib/chevre/repo/message.js +0 -38
- package/lib/chevre/repo/mongoose/schemas/{ownershipInfo.d.ts → action/inform.d.ts} +5 -5
- package/lib/chevre/repo/mongoose/schemas/action/inform.js +81 -0
- package/lib/chevre/repo/mongoose/schemas/action/update.d.ts +12 -0
- package/lib/chevre/repo/mongoose/schemas/action/update.js +107 -0
- package/lib/chevre/repo/mongoose/schemas/action.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/action.js +8 -1
- package/lib/chevre/repo/mongoose/schemas/actionRecipe.js +7 -0
- package/lib/chevre/repo/mongoose/schemas/aggregateReservation.js +8 -9
- package/lib/chevre/repo/mongoose/schemas/aggregation.js +8 -1
- package/lib/chevre/repo/mongoose/schemas/assetTransaction.js +95 -76
- package/lib/chevre/repo/mongoose/schemas/authorization.js +25 -18
- package/lib/chevre/repo/mongoose/schemas/event.js +7 -0
- package/lib/chevre/repo/mongoose/schemas/eventOffer.js +7 -0
- package/lib/chevre/repo/mongoose/schemas/message.js +8 -1
- package/lib/chevre/repo/mongoose/schemas/pendingReservation.js +11 -4
- package/lib/chevre/repo/mongoose/schemas/setting.d.ts +1 -0
- package/lib/chevre/repo/mongoose/schemas/task.d.ts +2 -5
- package/lib/chevre/repo/mongoose/schemas/task.js +134 -118
- package/lib/chevre/repo/mongoose/schemas/ticket.js +8 -1
- package/lib/chevre/repo/orderInTransaction.d.ts +0 -3
- package/lib/chevre/repo/orderInTransaction.js +30 -22
- package/lib/chevre/repo/scheduledTask.d.ts +5 -2
- package/lib/chevre/repo/scheduledTask.js +3 -25
- package/lib/chevre/repo/task.d.ts +45 -171
- package/lib/chevre/repo/task.js +20 -475
- package/lib/chevre/repo/taskDelayed.d.ts +74 -0
- package/lib/chevre/repo/taskDelayed.js +195 -0
- package/lib/chevre/repo/taskRunning.d.ts +35 -0
- package/lib/chevre/repo/taskRunning.js +89 -0
- package/lib/chevre/repo/ticket.d.ts +0 -6
- package/lib/chevre/repo/ticket.js +0 -11
- package/lib/chevre/repo/transaction.d.ts +1 -187
- package/lib/chevre/repo/transaction.js +2 -383
- package/lib/chevre/repository.d.ts +40 -5
- package/lib/chevre/repository.js +90 -13
- package/lib/chevre/service/aggregation/system.d.ts +17 -9
- package/lib/chevre/service/aggregation/system.js +46 -4
- package/lib/chevre/service/assetTransaction/cancelReservation/start.js +10 -17
- package/lib/chevre/service/assetTransaction/refund.js +2 -2
- package/lib/chevre/service/asyncAction.d.ts +2 -2
- package/lib/chevre/service/asyncAction.js +1 -4
- package/lib/chevre/service/asyncActionHandler/onOperationFailed.d.ts +2 -2
- package/lib/chevre/service/asyncActionHandler/onOperationFailed.js +0 -2
- package/lib/chevre/service/asyncActionHandler.d.ts +4 -4
- package/lib/chevre/service/asyncActionHandler.js +11 -13
- package/lib/chevre/service/event/processUpdateMovieTheater.d.ts +4 -2
- package/lib/chevre/service/event/processUpdateMovieTheater.js +3 -3
- package/lib/chevre/service/event.d.ts +4 -2
- package/lib/chevre/service/event.js +3 -3
- package/lib/chevre/service/notification/triggerWebhook.d.ts +4 -2
- package/lib/chevre/service/notification/triggerWebhook.js +5 -16
- package/lib/chevre/service/offer/event/voidTransaction/processVoidTransaction4chevre.js +1 -3
- package/lib/chevre/service/offer/eventServiceByCOA/findAcceptAction.d.ts +0 -4
- package/lib/chevre/service/offer/eventServiceByCOA/findAcceptAction.js +19 -19
- package/lib/chevre/service/offer/onEventChanged.js +0 -2
- package/lib/chevre/service/order/confirmPayTransaction.js +4 -1
- package/lib/chevre/service/order/deleteOrder.js +0 -1
- package/lib/chevre/service/order/onAssetTransactionStatusChanged/isDeliverable.js +1 -49
- package/lib/chevre/service/order/onAssetTransactionStatusChanged/onPayTransactionConfirmed.js +2 -2
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderDelivered/factory.js +2 -4
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderDeliveredPartially/factory.js +2 -4
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderInTransit.js +4 -4
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderPaymentDue.js +2 -2
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderProcessing/createSendEmailMessageTaskIfNotExist.js +2 -2
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderProcessing/factory.d.ts +2 -2
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderProcessing/factory.js +3 -5
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderProcessing/processOrder.js +2 -2
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderProcessing.js +1 -1
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderReturned/factory.js +5 -7
- package/lib/chevre/service/order/onOrderUpdated/factory.js +0 -3
- package/lib/chevre/service/order/returnOrder.d.ts +0 -2
- package/lib/chevre/service/order/returnOrder.js +8 -40
- package/lib/chevre/service/order/sendOrder.d.ts +0 -2
- package/lib/chevre/service/order/sendOrder.js +41 -55
- package/lib/chevre/service/payment/any/findAcceptAction.d.ts +0 -4
- package/lib/chevre/service/payment/any/findAcceptAction.js +19 -19
- package/lib/chevre/service/payment/any/findAuthorizeAction.d.ts +0 -4
- package/lib/chevre/service/payment/any/findAuthorizeAction.js +19 -19
- package/lib/chevre/service/payment/any/findCheckAction.d.ts +0 -4
- package/lib/chevre/service/payment/any/findCheckAction.js +19 -19
- package/lib/chevre/service/payment/any/processVoidPayTransaction.js +1 -1
- package/lib/chevre/service/payment/any/publishPaymentUrl.d.ts +0 -2
- package/lib/chevre/service/payment/any/publishPaymentUrl.js +2 -2
- package/lib/chevre/service/project.d.ts +0 -3
- package/lib/chevre/service/project.js +0 -1
- package/lib/chevre/service/reserve/cancelReservation.js +3 -3
- package/lib/chevre/service/reserve/checkInReservation.js +2 -2
- package/lib/chevre/service/reserve/confirmReservation.js +1 -1
- package/lib/chevre/service/reserve/potentialActions/onReservationConfirmed.js +2 -2
- package/lib/chevre/service/reserve/useReservation.js +1 -1
- package/lib/chevre/service/scheduledTask.d.ts +1 -4
- package/lib/chevre/service/scheduledTask.js +3 -10
- package/lib/chevre/service/scheduledTaskHandler/onOperationFailed.js +1 -2
- package/lib/chevre/service/scheduledTaskHandler.js +0 -13
- package/lib/chevre/service/task/acceptCOAOffer.js +1 -14
- package/lib/chevre/service/task/authorizePayment.js +1 -7
- package/lib/chevre/service/task/checkMovieTicket.js +1 -7
- package/lib/chevre/service/task/confirmReserveTransaction.js +3 -1
- package/lib/chevre/service/task/deleteTransaction.js +8 -39
- package/lib/chevre/service/task/importEventsFromCOA.js +4 -2
- package/lib/chevre/service/task/onAuthorizationCreated.js +2 -2
- package/lib/chevre/service/task/onResourceDeleted/deleteResourcesByAggregateOffer.d.ts +4 -2
- package/lib/chevre/service/task/onResourceDeleted/deleteResourcesByAggregateOffer.js +4 -4
- package/lib/chevre/service/task/onResourceDeleted/deleteResourcesByEventSeries.d.ts +4 -2
- package/lib/chevre/service/task/onResourceDeleted/deleteResourcesByEventSeries.js +4 -4
- package/lib/chevre/service/task/onResourceDeleted/deleteResourcesByMovieTheater.d.ts +4 -2
- package/lib/chevre/service/task/onResourceDeleted/deleteResourcesByMovieTheater.js +4 -4
- package/lib/chevre/service/task/onResourceDeleted/deleteResourcesByOfferCatalog.d.ts +4 -2
- package/lib/chevre/service/task/onResourceDeleted/deleteResourcesByOfferCatalog.js +4 -4
- package/lib/chevre/service/task/onResourceDeleted/deleteResourcesByProduct.d.ts +4 -2
- package/lib/chevre/service/task/onResourceDeleted/deleteResourcesByProduct.js +4 -4
- package/lib/chevre/service/task/onResourceDeleted/deleteResourcesByRoom.d.ts +4 -2
- package/lib/chevre/service/task/onResourceDeleted/deleteResourcesByRoom.js +4 -4
- package/lib/chevre/service/task/onResourceDeleted/deleteResourcesBySeller.d.ts +4 -2
- package/lib/chevre/service/task/onResourceDeleted/deleteResourcesBySeller.js +4 -4
- package/lib/chevre/service/task/onResourceDeleted.js +4 -3
- package/lib/chevre/service/task/onResourceUpdated/onAggregateOfferUpdated.js +0 -1
- package/lib/chevre/service/task/onResourceUpdated/onHasPOSUpdated.js +0 -1
- package/lib/chevre/service/task/onResourceUpdated/onOfferCatalogUpdated.js +0 -1
- package/lib/chevre/service/task/onResourceUpdated.js +0 -8
- package/lib/chevre/service/task/publishPaymentUrl.js +2 -13
- package/lib/chevre/service/task/returnOrder.js +2 -5
- package/lib/chevre/service/task/returnPayTransaction.js +2 -2
- package/lib/chevre/service/task/sendOrder.js +2 -2
- package/lib/chevre/service/task/syncResourcesFromCOA.js +31 -23
- package/lib/chevre/service/task/triggerWebhook.js +4 -2
- package/lib/chevre/service/task/voidReserveTransaction.js +5 -8
- package/lib/chevre/service/task.d.ts +3 -22
- package/lib/chevre/service/task.js +8 -40
- package/lib/chevre/service/taskHandler/onOperationFailed/informTaskIfNeeded.js +0 -1
- package/lib/chevre/service/taskHandler/onOperationFailed.d.ts +3 -2
- package/lib/chevre/service/taskHandler/onOperationFailed.js +5 -16
- package/lib/chevre/service/taskHandler.d.ts +1 -2
- package/lib/chevre/service/taskHandler.js +7 -19
- package/lib/chevre/service/transaction/deleteTransaction/deletePayTransactionsByPlaceOrder.js +2 -2
- package/lib/chevre/service/transaction/deleteTransaction/deleteReservationsByPlaceOrder.js +2 -2
- package/lib/chevre/service/transaction/deleteTransaction.d.ts +6 -2
- package/lib/chevre/service/transaction/deleteTransaction.js +5 -5
- package/lib/chevre/service/transaction/placeOrder/confirm.js +1 -1
- package/lib/chevre/service/transaction/placeOrder/exportTasks/factory.d.ts +8 -4
- package/lib/chevre/service/transaction/placeOrder/exportTasks/factory.js +55 -103
- package/lib/chevre/service/transaction/placeOrder/exportTasksById.d.ts +2 -0
- package/lib/chevre/service/transaction/placeOrder/exportTasksById.js +14 -10
- package/lib/chevre/service/transaction/returnOrder/exportTasks/factory.d.ts +13 -3
- package/lib/chevre/service/transaction/returnOrder/exportTasks/factory.js +48 -51
- package/lib/chevre/service/transaction/returnOrder.d.ts +2 -0
- package/lib/chevre/service/transaction/returnOrder.js +15 -13
- package/lib/chevre/service/transaction.d.ts +2 -0
- package/lib/chevre/service/transaction.js +0 -2
- package/lib/chevre/service/validation/validateOrder.js +2 -2
- package/lib/chevre/taskSettings.d.ts +4 -4
- package/package.json +2 -2
- package/lib/chevre/repo/mongoose/schemas/ownershipInfo.js +0 -227
- package/lib/chevre/repo/ownershipInfo.d.ts +0 -122
- package/lib/chevre/repo/ownershipInfo.js +0 -466
|
@@ -1,48 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.TransactionRepo = void 0;
|
|
7
|
-
const moment_1 = __importDefault(require("moment"));
|
|
8
|
-
const transaction_1 = require("../eventEmitter/transaction");
|
|
9
4
|
const factory_1 = require("../factory");
|
|
10
5
|
const settings_1 = require("../settings");
|
|
11
|
-
const
|
|
6
|
+
const transaction_1 = require("./mongoose/schemas/transaction");
|
|
12
7
|
/**
|
|
13
8
|
* 取引リポジトリ
|
|
14
9
|
*/
|
|
15
10
|
class TransactionRepo {
|
|
16
11
|
transactionModel;
|
|
17
12
|
constructor(connection) {
|
|
18
|
-
this.transactionModel = connection.model(
|
|
19
|
-
}
|
|
20
|
-
async countPotentiallyExportTasks(params) {
|
|
21
|
-
const { endDate, limit } = params;
|
|
22
|
-
const endDateLt = endDate?.$lt;
|
|
23
|
-
if (!(endDateLt instanceof Date)) {
|
|
24
|
-
throw new factory_1.factory.errors.Argument('endDate.$lt', 'must be Date');
|
|
25
|
-
}
|
|
26
|
-
const query = this.transactionModel.countDocuments({
|
|
27
|
-
status: {
|
|
28
|
-
$in: [
|
|
29
|
-
factory_1.factory.transactionStatusType.Canceled,
|
|
30
|
-
factory_1.factory.transactionStatusType.Confirmed,
|
|
31
|
-
factory_1.factory.transactionStatusType.Expired
|
|
32
|
-
]
|
|
33
|
-
},
|
|
34
|
-
'tasksExportAction.actionStatus': {
|
|
35
|
-
$exists: true,
|
|
36
|
-
$eq: factory_1.factory.actionStatusType.PotentialActionStatus
|
|
37
|
-
},
|
|
38
|
-
endDate: { $exists: true, $lt: endDateLt }
|
|
39
|
-
});
|
|
40
|
-
if (typeof limit === 'number' && limit >= 0) {
|
|
41
|
-
query.limit(limit);
|
|
42
|
-
}
|
|
43
|
-
const count = await query.setOptions({ maxTimeMS: settings_1.MONGO_MAX_TIME_MS })
|
|
44
|
-
.exec();
|
|
45
|
-
return { count };
|
|
13
|
+
this.transactionModel = connection.model(transaction_1.modelName, (0, transaction_1.createSchema)());
|
|
46
14
|
}
|
|
47
15
|
/**
|
|
48
16
|
* タスク未エクスポートの取引をひとつ取得してエクスポートを開始する
|
|
@@ -101,72 +69,6 @@ class TransactionRepo {
|
|
|
101
69
|
.exec()
|
|
102
70
|
.then((doc) => (doc === null) ? null : doc);
|
|
103
71
|
}
|
|
104
|
-
/**
|
|
105
|
-
* tasksExportAction.actionStatusがActiveActionStatusのまま一定時間経過した取引について
|
|
106
|
-
* PotentialActionStatusに変更する
|
|
107
|
-
* 2025-03-10~
|
|
108
|
-
*/
|
|
109
|
-
async reExportAction(params) {
|
|
110
|
-
const { startDate } = params;
|
|
111
|
-
if (!(startDate.$lt instanceof Date)) {
|
|
112
|
-
throw new factory_1.factory.errors.Argument('startDate.$lt', 'must be Date');
|
|
113
|
-
}
|
|
114
|
-
return this.transactionModel.updateMany({
|
|
115
|
-
'tasksExportAction.actionStatus': {
|
|
116
|
-
$exists: true,
|
|
117
|
-
$eq: factory_1.factory.actionStatusType.ActiveActionStatus
|
|
118
|
-
},
|
|
119
|
-
'tasksExportAction.startDate': {
|
|
120
|
-
$exists: true,
|
|
121
|
-
$lt: startDate.$lt
|
|
122
|
-
}
|
|
123
|
-
}, {
|
|
124
|
-
$set: {
|
|
125
|
-
tasksExportAction: {
|
|
126
|
-
actionStatus: factory_1.factory.actionStatusType.PotentialActionStatus
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
})
|
|
130
|
-
.exec();
|
|
131
|
-
}
|
|
132
|
-
/**
|
|
133
|
-
* タスクエクスポートの遅延している取引について明示的にemitTransactionStatusChangedを実行する
|
|
134
|
-
*/
|
|
135
|
-
async exportTasksMany(params) {
|
|
136
|
-
const delayedTransactions = await this.transactionModel.find({
|
|
137
|
-
status: { $in: params.status.$in },
|
|
138
|
-
'tasksExportAction.actionStatus': {
|
|
139
|
-
$exists: true,
|
|
140
|
-
$eq: factory_1.factory.actionStatusType.PotentialActionStatus
|
|
141
|
-
},
|
|
142
|
-
endDate: {
|
|
143
|
-
$exists: true,
|
|
144
|
-
$lt: (0, moment_1.default)(params.now)
|
|
145
|
-
.add(-params.delayInSeconds, 'seconds')
|
|
146
|
-
.toDate()
|
|
147
|
-
}
|
|
148
|
-
})
|
|
149
|
-
.select({
|
|
150
|
-
_id: 0,
|
|
151
|
-
id: { $toString: '$_id' },
|
|
152
|
-
typeOf: 1,
|
|
153
|
-
status: 1
|
|
154
|
-
})
|
|
155
|
-
.limit(params.limit)
|
|
156
|
-
.setOptions({ maxTimeMS: settings_1.MONGO_MAX_TIME_MS })
|
|
157
|
-
.lean()
|
|
158
|
-
.exec();
|
|
159
|
-
if (delayedTransactions.length > 0) {
|
|
160
|
-
delayedTransactions.forEach((delayedTransaction) => {
|
|
161
|
-
transaction_1.transactionEventEmitter.emitTransactionStatusChanged({
|
|
162
|
-
id: delayedTransaction.id,
|
|
163
|
-
typeOf: delayedTransaction.typeOf,
|
|
164
|
-
status: delayedTransaction.status
|
|
165
|
-
});
|
|
166
|
-
});
|
|
167
|
-
}
|
|
168
|
-
return delayedTransactions;
|
|
169
|
-
}
|
|
170
72
|
/**
|
|
171
73
|
* set task status exported by transaction id
|
|
172
74
|
* IDでタスクをエクスポート済に変更する
|
|
@@ -189,288 +91,5 @@ class TransactionRepo {
|
|
|
189
91
|
})
|
|
190
92
|
.exec();
|
|
191
93
|
}
|
|
192
|
-
/**
|
|
193
|
-
* add(2025-03-13~)
|
|
194
|
-
*/
|
|
195
|
-
async countPotentiallyExpired(params) {
|
|
196
|
-
const { expires, limit } = params;
|
|
197
|
-
const query = this.transactionModel.countDocuments({
|
|
198
|
-
status: { $eq: factory_1.factory.transactionStatusType.InProgress },
|
|
199
|
-
expires: { $lt: expires.$lt }
|
|
200
|
-
});
|
|
201
|
-
if (typeof limit === 'number' && limit >= 0) {
|
|
202
|
-
query.limit(limit);
|
|
203
|
-
}
|
|
204
|
-
const count = await query.setOptions({ maxTimeMS: settings_1.MONGO_MAX_TIME_MS })
|
|
205
|
-
.exec();
|
|
206
|
-
return { count };
|
|
207
|
-
}
|
|
208
|
-
/**
|
|
209
|
-
* add(2025-03-03~)
|
|
210
|
-
*/
|
|
211
|
-
async makeOneExpiredIfExists(params) {
|
|
212
|
-
const endDate = new Date();
|
|
213
|
-
const sort = {
|
|
214
|
-
expires: factory_1.factory.sortType.Ascending
|
|
215
|
-
};
|
|
216
|
-
const doc = await this.transactionModel.findOneAndUpdate({
|
|
217
|
-
status: { $eq: factory_1.factory.transactionStatusType.InProgress },
|
|
218
|
-
expires: { $lt: params.expires.$lt }
|
|
219
|
-
}, {
|
|
220
|
-
status: factory_1.factory.transactionStatusType.Expired,
|
|
221
|
-
endDate
|
|
222
|
-
}, {
|
|
223
|
-
new: true,
|
|
224
|
-
projection: {
|
|
225
|
-
_id: 0,
|
|
226
|
-
id: { $toString: '$_id' },
|
|
227
|
-
typeOf: 1
|
|
228
|
-
}
|
|
229
|
-
})
|
|
230
|
-
.sort(sort)
|
|
231
|
-
.lean()
|
|
232
|
-
.exec();
|
|
233
|
-
if (doc === null) {
|
|
234
|
-
// no op
|
|
235
|
-
return;
|
|
236
|
-
}
|
|
237
|
-
else {
|
|
238
|
-
transaction_1.transactionEventEmitter.emitTransactionStatusChanged({
|
|
239
|
-
id: doc.id,
|
|
240
|
-
typeOf: doc.typeOf,
|
|
241
|
-
status: factory_1.factory.transactionStatusType.Expired
|
|
242
|
-
});
|
|
243
|
-
return doc;
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
/**
|
|
247
|
-
* 取引を期限切れにする
|
|
248
|
-
*/
|
|
249
|
-
async makeExpired(params) {
|
|
250
|
-
if (typeof params.limit !== 'number' || params.limit === 0) {
|
|
251
|
-
throw new factory_1.factory.errors.ArgumentNull('limit');
|
|
252
|
-
}
|
|
253
|
-
const sort = {
|
|
254
|
-
expires: factory_1.factory.sortType.Ascending
|
|
255
|
-
};
|
|
256
|
-
// IDをemitしたいのでまずリスト検索(2023-04-27~)
|
|
257
|
-
const expiringTransactions = await this.transactionModel.find({
|
|
258
|
-
status: { $eq: factory_1.factory.transactionStatusType.InProgress },
|
|
259
|
-
expires: { $lt: params.expires.$lt }
|
|
260
|
-
})
|
|
261
|
-
.select({
|
|
262
|
-
_id: 0,
|
|
263
|
-
id: { $toString: '$_id' },
|
|
264
|
-
typeOf: 1
|
|
265
|
-
})
|
|
266
|
-
.limit(params.limit)
|
|
267
|
-
.sort(sort) // sort(2025-03-03~)
|
|
268
|
-
.setOptions({ maxTimeMS: settings_1.MONGO_MAX_TIME_MS })
|
|
269
|
-
.lean()
|
|
270
|
-
.exec();
|
|
271
|
-
if (expiringTransactions.length > 0) {
|
|
272
|
-
// ステータスと期限を見て更新
|
|
273
|
-
await this.transactionModel.updateMany({
|
|
274
|
-
_id: { $in: expiringTransactions.map((t) => t.id) },
|
|
275
|
-
status: { $eq: factory_1.factory.transactionStatusType.InProgress },
|
|
276
|
-
expires: { $lt: params.expires.$lt }
|
|
277
|
-
}, {
|
|
278
|
-
status: factory_1.factory.transactionStatusType.Expired,
|
|
279
|
-
endDate: new Date()
|
|
280
|
-
})
|
|
281
|
-
.exec();
|
|
282
|
-
expiringTransactions.forEach((expiringTransaction) => {
|
|
283
|
-
transaction_1.transactionEventEmitter.emitTransactionStatusChanged({
|
|
284
|
-
id: expiringTransaction.id,
|
|
285
|
-
typeOf: expiringTransaction.typeOf,
|
|
286
|
-
status: factory_1.factory.transactionStatusType.Expired
|
|
287
|
-
});
|
|
288
|
-
});
|
|
289
|
-
}
|
|
290
|
-
return expiringTransactions;
|
|
291
|
-
}
|
|
292
|
-
async findByIdAndDelete(params) {
|
|
293
|
-
await this.transactionModel.findByIdAndDelete(params.id)
|
|
294
|
-
.exec();
|
|
295
|
-
}
|
|
296
|
-
async unsetUnnecessaryFields(params) {
|
|
297
|
-
return this.transactionModel.updateMany(params.filter, { $unset: params.$unset }, { timestamps: false })
|
|
298
|
-
.exec();
|
|
299
|
-
}
|
|
300
|
-
async updateById4migration(params) {
|
|
301
|
-
return this.transactionModel.updateOne({ _id: { $eq: params.id } }, params.update)
|
|
302
|
-
.exec();
|
|
303
|
-
}
|
|
304
|
-
/**
|
|
305
|
-
* 終了日時を一定期間過ぎたアクションを削除する
|
|
306
|
-
*/
|
|
307
|
-
async deleteEndDatePassedCertainPeriod(params) {
|
|
308
|
-
return this.transactionModel.deleteMany({
|
|
309
|
-
typeOf: { $eq: params.typeOf },
|
|
310
|
-
// 終了日時を一定期間過ぎたもの
|
|
311
|
-
endDate: {
|
|
312
|
-
$exists: true,
|
|
313
|
-
$gte: params.endDate.$gte,
|
|
314
|
-
$lt: params.endDate.$lt
|
|
315
|
-
}
|
|
316
|
-
})
|
|
317
|
-
.exec();
|
|
318
|
-
}
|
|
319
|
-
getCursor(conditions, projection, sort) {
|
|
320
|
-
return this.transactionModel.find(conditions, projection)
|
|
321
|
-
.sort({ startDate: (sort === factory_1.factory.sortType.Ascending) ? sort : factory_1.factory.sortType.Descending })
|
|
322
|
-
.cursor();
|
|
323
|
-
}
|
|
324
|
-
async aggregatePlaceOrder(params) {
|
|
325
|
-
const statuses = await Promise.all([
|
|
326
|
-
factory_1.factory.transactionStatusType.Confirmed,
|
|
327
|
-
factory_1.factory.transactionStatusType.Canceled,
|
|
328
|
-
factory_1.factory.transactionStatusType.Expired
|
|
329
|
-
].map(async (transactionStatus) => {
|
|
330
|
-
const matchConditions = {
|
|
331
|
-
startDate: {
|
|
332
|
-
$gte: params.startFrom,
|
|
333
|
-
$lte: params.startThrough
|
|
334
|
-
},
|
|
335
|
-
typeOf: { $eq: params.typeOf },
|
|
336
|
-
status: { $eq: transactionStatus },
|
|
337
|
-
...(typeof params.project?.id?.$ne === 'string')
|
|
338
|
-
? { 'project.id': { $ne: params.project.id.$ne } }
|
|
339
|
-
: undefined,
|
|
340
|
-
...(typeof params.clientId === 'string')
|
|
341
|
-
// customerIdentifierAll.push();
|
|
342
|
-
? {
|
|
343
|
-
'agent.identifier': {
|
|
344
|
-
$exists: true,
|
|
345
|
-
$all: [{ name: 'clientId', value: params.clientId }]
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
: undefined
|
|
349
|
-
};
|
|
350
|
-
return this.agggregateByStatus({ matchConditions, status: transactionStatus });
|
|
351
|
-
}));
|
|
352
|
-
return { statuses };
|
|
353
|
-
}
|
|
354
|
-
async agggregateByStatus(params) {
|
|
355
|
-
const matchConditions = params.matchConditions;
|
|
356
|
-
const transactionStatus = params.status;
|
|
357
|
-
const aggregations = await this.transactionModel.aggregate([
|
|
358
|
-
{
|
|
359
|
-
$match: matchConditions
|
|
360
|
-
},
|
|
361
|
-
{
|
|
362
|
-
$project: {
|
|
363
|
-
duration: { $subtract: ['$endDate', '$startDate'] },
|
|
364
|
-
status: '$status',
|
|
365
|
-
startDate: '$startDate',
|
|
366
|
-
endDate: '$endDate',
|
|
367
|
-
typeOf: '$typeOf'
|
|
368
|
-
}
|
|
369
|
-
},
|
|
370
|
-
{
|
|
371
|
-
$group: {
|
|
372
|
-
_id: '$typeOf',
|
|
373
|
-
transactionCount: { $sum: 1 },
|
|
374
|
-
maxDuration: { $max: '$duration' },
|
|
375
|
-
minDuration: { $min: '$duration' },
|
|
376
|
-
avgDuration: { $avg: '$duration' }
|
|
377
|
-
}
|
|
378
|
-
},
|
|
379
|
-
{
|
|
380
|
-
$project: {
|
|
381
|
-
_id: 0,
|
|
382
|
-
transactionCount: '$transactionCount',
|
|
383
|
-
avgDuration: '$avgDuration',
|
|
384
|
-
maxDuration: '$maxDuration',
|
|
385
|
-
minDuration: '$minDuration'
|
|
386
|
-
}
|
|
387
|
-
}
|
|
388
|
-
])
|
|
389
|
-
.exec();
|
|
390
|
-
const percents = [50, 95, 99];
|
|
391
|
-
if (aggregations.length === 0) {
|
|
392
|
-
return {
|
|
393
|
-
status: transactionStatus,
|
|
394
|
-
aggregation: {
|
|
395
|
-
transactionCount: 0,
|
|
396
|
-
avgDuration: 0,
|
|
397
|
-
maxDuration: 0,
|
|
398
|
-
minDuration: 0,
|
|
399
|
-
percentilesDuration: percents.map((percent) => {
|
|
400
|
-
return {
|
|
401
|
-
name: String(percent),
|
|
402
|
-
value: 0
|
|
403
|
-
};
|
|
404
|
-
})
|
|
405
|
-
// totalPrice: 0,
|
|
406
|
-
// maxPrice: 0,
|
|
407
|
-
// minPrice: 0,
|
|
408
|
-
// avgPrice: 0
|
|
409
|
-
}
|
|
410
|
-
};
|
|
411
|
-
}
|
|
412
|
-
const ranks4percentile = percents.map((percentile) => {
|
|
413
|
-
return {
|
|
414
|
-
percentile,
|
|
415
|
-
rank: Math.floor(aggregations[0].transactionCount * percentile / 100)
|
|
416
|
-
};
|
|
417
|
-
});
|
|
418
|
-
const aggregations2 = await this.transactionModel.aggregate([
|
|
419
|
-
{
|
|
420
|
-
$match: matchConditions
|
|
421
|
-
},
|
|
422
|
-
{
|
|
423
|
-
$project: {
|
|
424
|
-
duration: { $subtract: ['$endDate', '$startDate'] },
|
|
425
|
-
status: '$status',
|
|
426
|
-
startDate: '$startDate',
|
|
427
|
-
endDate: '$endDate',
|
|
428
|
-
typeOf: '$typeOf'
|
|
429
|
-
// result: '$result',
|
|
430
|
-
// price: {
|
|
431
|
-
// $cond: {
|
|
432
|
-
// if: { $isNumber: '$result.order.price' },
|
|
433
|
-
// then: '$result.order.price',
|
|
434
|
-
// else: 0
|
|
435
|
-
// }
|
|
436
|
-
// }
|
|
437
|
-
}
|
|
438
|
-
},
|
|
439
|
-
{ $sort: { duration: 1 } },
|
|
440
|
-
{
|
|
441
|
-
$group: {
|
|
442
|
-
_id: '$typeOf',
|
|
443
|
-
durations: { $push: '$duration' }
|
|
444
|
-
// totalPrice: { $sum: '$price' },
|
|
445
|
-
// maxPrice: { $max: '$price' },
|
|
446
|
-
// minPrice: { $min: '$price' },
|
|
447
|
-
// avgPrice: { $avg: '$price' }
|
|
448
|
-
}
|
|
449
|
-
},
|
|
450
|
-
{
|
|
451
|
-
$project: {
|
|
452
|
-
_id: 0,
|
|
453
|
-
percentilesDuration: ranks4percentile.map((rank) => {
|
|
454
|
-
return {
|
|
455
|
-
name: String(rank.percentile),
|
|
456
|
-
value: { $arrayElemAt: ['$durations', rank.rank] }
|
|
457
|
-
};
|
|
458
|
-
})
|
|
459
|
-
// totalPrice: '$totalPrice',
|
|
460
|
-
// maxPrice: '$maxPrice',
|
|
461
|
-
// minPrice: '$minPrice',
|
|
462
|
-
// avgPrice: '$avgPrice'
|
|
463
|
-
}
|
|
464
|
-
}
|
|
465
|
-
])
|
|
466
|
-
.exec();
|
|
467
|
-
return {
|
|
468
|
-
status: transactionStatus,
|
|
469
|
-
aggregation: {
|
|
470
|
-
...aggregations[0],
|
|
471
|
-
...aggregations2[0]
|
|
472
|
-
}
|
|
473
|
-
};
|
|
474
|
-
}
|
|
475
94
|
}
|
|
476
95
|
exports.TransactionRepo = TransactionRepo;
|
|
@@ -13,18 +13,25 @@ import type { AuthorizePaymentMethodActionRepo } from './repo/action/authorizePa
|
|
|
13
13
|
import type { AuthorizeTicketedObjectActionRepo } from './repo/action/authorizeTicketedObject';
|
|
14
14
|
import type { CheckMovieTicketActionRepo } from './repo/action/checkMovieTicket';
|
|
15
15
|
import type { CheckThingActionRepo } from './repo/action/checkThing';
|
|
16
|
+
import type { InformActionRepo } from './repo/action/inform';
|
|
16
17
|
import type { PayActionRepo } from './repo/action/pay';
|
|
17
18
|
import type { RefundActionRepo } from './repo/action/refund';
|
|
19
|
+
import type { UpdateActionRepo } from './repo/action/update';
|
|
18
20
|
import type { AsyncActionRepo } from './repo/asyncAction';
|
|
19
21
|
import type { AdditionalPropertyRepo } from './repo/additionalProperty';
|
|
22
|
+
import type { AdminAssetTransactionRepo } from './repo/adminAssetTransaction';
|
|
20
23
|
import type { AdminAsyncActionRepo } from './repo/adminAsyncAction';
|
|
21
24
|
import type { AdminScheduledTaskRepo } from './repo/adminScheduledTask';
|
|
22
25
|
import type { AdminTaskRepo } from './repo/adminTask';
|
|
26
|
+
import type { AdminTransactionRepo } from './repo/adminTransaction';
|
|
23
27
|
import type { AggregateActionRepo } from './repo/aggregateAction';
|
|
28
|
+
import type { AggregateAssetTransactionRepo } from './repo/aggregateAssetTransaction';
|
|
24
29
|
import type { AggregateOfferRepo } from './repo/aggregateOffer';
|
|
25
30
|
import type { AggregateOrderRepo } from './repo/aggregateOrder';
|
|
26
31
|
import type { AggregateReservationRepo } from './repo/aggregateReservation';
|
|
32
|
+
import type { AggregateScheduledTaskRepo } from './repo/aggregateScheduledTask';
|
|
27
33
|
import type { AggregateTaskRepo } from './repo/aggregateTask';
|
|
34
|
+
import type { AggregateTransactionRepo } from './repo/aggregateTransaction';
|
|
28
35
|
import type { AggregationRepo } from './repo/aggregation';
|
|
29
36
|
import type { AssetTransactionRepo } from './repo/assetTransaction';
|
|
30
37
|
import type { ReserveTransactionRepo } from './repo/assetTransaction/reserve';
|
|
@@ -55,7 +62,6 @@ import type { OfferCatalogItemRepo } from './repo/offerCatalogItem';
|
|
|
55
62
|
import type { OfferItemConditionRepo } from './repo/offerItemCondition';
|
|
56
63
|
import type { OrderRepo } from './repo/order';
|
|
57
64
|
import type { OrderInTransactionRepo } from './repo/orderInTransaction';
|
|
58
|
-
import type { OwnershipInfoRepo } from './repo/ownershipInfo';
|
|
59
65
|
import type { PassportRepo } from './repo/passport';
|
|
60
66
|
import type { PaymentServiceRepo } from './repo/paymentService';
|
|
61
67
|
import type { PaymentServiceChannelRepo } from './repo/paymentServiceChannel';
|
|
@@ -92,6 +98,7 @@ import type { WaiterSettingRepo } from './repo/setting/waiter';
|
|
|
92
98
|
import type { StockHolderRepo } from './repo/stockHolder';
|
|
93
99
|
import type { ScheduledTaskRepo } from './repo/scheduledTask';
|
|
94
100
|
import type { TaskRepo } from './repo/task';
|
|
101
|
+
import type { TaskDelayedRepo } from './repo/taskDelayed';
|
|
95
102
|
import type { TicketRepo } from './repo/ticket';
|
|
96
103
|
import type { TransactionRepo } from './repo/transaction';
|
|
97
104
|
import type { PlaceOrderRepo } from './repo/transaction/placeOrder';
|
|
@@ -159,11 +166,23 @@ export declare namespace action {
|
|
|
159
166
|
namespace Refund {
|
|
160
167
|
function createInstance(...params: ConstructorParameters<typeof RefundActionRepo>): Promise<RefundActionRepo>;
|
|
161
168
|
}
|
|
169
|
+
type Update = UpdateActionRepo;
|
|
170
|
+
namespace Update {
|
|
171
|
+
function createInstance(...params: ConstructorParameters<typeof UpdateActionRepo>): Promise<UpdateActionRepo>;
|
|
172
|
+
}
|
|
173
|
+
type Inform = InformActionRepo;
|
|
174
|
+
namespace Inform {
|
|
175
|
+
function createInstance(...params: ConstructorParameters<typeof InformActionRepo>): Promise<InformActionRepo>;
|
|
176
|
+
}
|
|
162
177
|
}
|
|
163
178
|
export type AdditionalProperty = AdditionalPropertyRepo;
|
|
164
179
|
export declare namespace AdditionalProperty {
|
|
165
180
|
function createInstance(...params: ConstructorParameters<typeof AdditionalPropertyRepo>): Promise<AdditionalPropertyRepo>;
|
|
166
181
|
}
|
|
182
|
+
export type AdminAssetTransaction = AdminAssetTransactionRepo;
|
|
183
|
+
export declare namespace AdminAssetTransaction {
|
|
184
|
+
function createInstance(...params: ConstructorParameters<typeof AdminAssetTransactionRepo>): Promise<AdminAssetTransactionRepo>;
|
|
185
|
+
}
|
|
167
186
|
export type AdminAsyncAction = AdminAsyncActionRepo;
|
|
168
187
|
export declare namespace AdminAsyncAction {
|
|
169
188
|
function createInstance(...params: ConstructorParameters<typeof AdminAsyncActionRepo>): Promise<AdminAsyncActionRepo>;
|
|
@@ -176,14 +195,30 @@ export type AdminTask = AdminTaskRepo;
|
|
|
176
195
|
export declare namespace AdminTask {
|
|
177
196
|
function createInstance(...params: ConstructorParameters<typeof AdminTaskRepo>): Promise<AdminTaskRepo>;
|
|
178
197
|
}
|
|
198
|
+
export type AdminTransaction = AdminTransactionRepo;
|
|
199
|
+
export declare namespace AdminTransaction {
|
|
200
|
+
function createInstance(...params: ConstructorParameters<typeof AdminTransactionRepo>): Promise<AdminTransactionRepo>;
|
|
201
|
+
}
|
|
179
202
|
export type AggregateAction = AggregateActionRepo;
|
|
180
203
|
export declare namespace AggregateAction {
|
|
181
204
|
function createInstance(...params: ConstructorParameters<typeof AggregateActionRepo>): Promise<AggregateActionRepo>;
|
|
182
205
|
}
|
|
206
|
+
export type AggregateScheduledTask = AggregateScheduledTaskRepo;
|
|
207
|
+
export declare namespace AggregateScheduledTask {
|
|
208
|
+
function createInstance(...params: ConstructorParameters<typeof AggregateScheduledTaskRepo>): Promise<AggregateScheduledTaskRepo>;
|
|
209
|
+
}
|
|
183
210
|
export type AggregateTask = AggregateTaskRepo;
|
|
184
211
|
export declare namespace AggregateTask {
|
|
185
212
|
function createInstance(...params: ConstructorParameters<typeof AggregateTaskRepo>): Promise<AggregateTaskRepo>;
|
|
186
213
|
}
|
|
214
|
+
export type AggregateTransaction = AggregateTransactionRepo;
|
|
215
|
+
export declare namespace AggregateTransaction {
|
|
216
|
+
function createInstance(...params: ConstructorParameters<typeof AggregateTransactionRepo>): Promise<AggregateTransactionRepo>;
|
|
217
|
+
}
|
|
218
|
+
export type AggregateAssetTransaction = AggregateAssetTransactionRepo;
|
|
219
|
+
export declare namespace AggregateAssetTransaction {
|
|
220
|
+
function createInstance(...params: ConstructorParameters<typeof AggregateAssetTransactionRepo>): Promise<AggregateAssetTransactionRepo>;
|
|
221
|
+
}
|
|
187
222
|
export type AggregateOffer = AggregateOfferRepo;
|
|
188
223
|
export declare namespace AggregateOffer {
|
|
189
224
|
function createInstance(...params: ConstructorParameters<typeof AggregateOfferRepo>): Promise<AggregateOfferRepo>;
|
|
@@ -326,10 +361,6 @@ export type OrderNumber = OrderNumberRepo;
|
|
|
326
361
|
export declare namespace OrderNumber {
|
|
327
362
|
function createInstance(...params: ConstructorParameters<typeof OrderNumberRepo>): Promise<OrderNumberRepo>;
|
|
328
363
|
}
|
|
329
|
-
export type OwnershipInfo = OwnershipInfoRepo;
|
|
330
|
-
export declare namespace OwnershipInfo {
|
|
331
|
-
function createInstance(...params: ConstructorParameters<typeof OwnershipInfoRepo>): Promise<OwnershipInfoRepo>;
|
|
332
|
-
}
|
|
333
364
|
export type Passport = PassportRepo;
|
|
334
365
|
export declare namespace Passport {
|
|
335
366
|
function createInstance(...params: ConstructorParameters<typeof PassportRepo>): Promise<PassportRepo>;
|
|
@@ -496,6 +527,10 @@ export type Task = TaskRepo;
|
|
|
496
527
|
export declare namespace Task {
|
|
497
528
|
function createInstance(...params: ConstructorParameters<typeof TaskRepo>): Promise<TaskRepo>;
|
|
498
529
|
}
|
|
530
|
+
export type TaskDelayed = TaskDelayedRepo;
|
|
531
|
+
export declare namespace TaskDelayed {
|
|
532
|
+
function createInstance(...params: ConstructorParameters<typeof TaskDelayedRepo>): Promise<TaskDelayedRepo>;
|
|
533
|
+
}
|
|
499
534
|
export type AsyncAction = AsyncActionRepo;
|
|
500
535
|
export declare namespace AsyncAction {
|
|
501
536
|
function createInstance(...params: ConstructorParameters<typeof AsyncActionRepo>): Promise<AsyncActionRepo>;
|
package/lib/chevre/repository.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.WebSite = exports.rateLimit = exports.TransactionProcess = exports.TransactionNumber = exports.transaction = exports.Transaction = exports.Ticket = exports.AsyncAction = exports.Task = exports.ScheduledTask = exports.StockHolder = exports.setting = exports.Setting = exports.ServiceAvailableHour = exports.SellerReturnPolicy = exports.SellerPaymentAccepted = exports.SellerMakesOffer = exports.Seller = exports.Schedule = exports.Role = exports.ReserveInterface = exports.Reservation = exports.ProjectMakesOffer = exports.Project = exports.ProductHasOfferCatalog = exports.Product = exports.PriceSpecification = exports.PotentialAction = exports.place = exports.Person = exports.PendingReservation = exports.PaymentServiceProvider = void 0;
|
|
3
|
+
exports.OrderInTransaction = exports.Order = exports.Offer = exports.OfferItemCondition = exports.OfferCatalogItem = exports.OfferCatalog = exports.NoteAboutOrder = exports.Note = exports.MovieTicketType = exports.Message = exports.MerchantReturnPolicy = exports.MemberProgram = exports.Member = exports.Issuer = exports.IdentityProvider = exports.Identity = exports.EventSeries = exports.EventSellerMakesOffer = exports.EventOffer = exports.Event = exports.EmailMessage = exports.CustomerType = exports.Customer = exports.Credentials = exports.CreativeWork = exports.ConfirmationNumber = exports.Authorization = exports.CategoryCode = exports.assetTransaction = exports.AssetTransaction = exports.Aggregation = exports.AggregateReservation = exports.AggregateOrder = exports.AggregateOffer = exports.AggregateAssetTransaction = exports.AggregateTransaction = exports.AggregateTask = exports.AggregateScheduledTask = exports.AggregateAction = exports.AdminTransaction = exports.AdminTask = exports.AdminScheduledTask = exports.AdminAsyncAction = exports.AdminAssetTransaction = exports.AdditionalProperty = exports.action = exports.Action = exports.AccountTitle = exports.AccountingReport = exports.AcceptedOffer = void 0;
|
|
4
|
+
exports.WebSite = exports.rateLimit = exports.TransactionProcess = exports.TransactionNumber = exports.transaction = exports.Transaction = exports.Ticket = exports.AsyncAction = exports.TaskDelayed = exports.Task = exports.ScheduledTask = exports.StockHolder = exports.setting = exports.Setting = exports.ServiceAvailableHour = exports.SellerReturnPolicy = exports.SellerPaymentAccepted = exports.SellerMakesOffer = exports.Seller = exports.Schedule = exports.Role = exports.ReserveInterface = exports.Reservation = exports.ProjectMakesOffer = exports.Project = exports.ProductHasOfferCatalog = exports.Product = exports.PriceSpecification = exports.PotentialAction = exports.place = exports.Person = exports.PendingReservation = exports.PaymentServiceProvider = exports.PaymentServiceChannel = exports.PaymentService = exports.Passport = exports.OrderNumber = void 0;
|
|
5
5
|
var AcceptedOffer;
|
|
6
6
|
(function (AcceptedOffer) {
|
|
7
7
|
let repo;
|
|
@@ -158,6 +158,28 @@ var action;
|
|
|
158
158
|
}
|
|
159
159
|
Refund.createInstance = createInstance;
|
|
160
160
|
})(Refund = action.Refund || (action.Refund = {}));
|
|
161
|
+
let Update;
|
|
162
|
+
(function (Update) {
|
|
163
|
+
let repo;
|
|
164
|
+
async function createInstance(...params) {
|
|
165
|
+
if (repo === undefined) {
|
|
166
|
+
repo = (await import('./repo/action/update.js')).UpdateActionRepo;
|
|
167
|
+
}
|
|
168
|
+
return new repo(...params);
|
|
169
|
+
}
|
|
170
|
+
Update.createInstance = createInstance;
|
|
171
|
+
})(Update = action.Update || (action.Update = {}));
|
|
172
|
+
let Inform;
|
|
173
|
+
(function (Inform) {
|
|
174
|
+
let repo;
|
|
175
|
+
async function createInstance(...params) {
|
|
176
|
+
if (repo === undefined) {
|
|
177
|
+
repo = (await import('./repo/action/inform.js')).InformActionRepo;
|
|
178
|
+
}
|
|
179
|
+
return new repo(...params);
|
|
180
|
+
}
|
|
181
|
+
Inform.createInstance = createInstance;
|
|
182
|
+
})(Inform = action.Inform || (action.Inform = {}));
|
|
161
183
|
})(action || (exports.action = action = {}));
|
|
162
184
|
var AdditionalProperty;
|
|
163
185
|
(function (AdditionalProperty) {
|
|
@@ -170,6 +192,17 @@ var AdditionalProperty;
|
|
|
170
192
|
}
|
|
171
193
|
AdditionalProperty.createInstance = createInstance;
|
|
172
194
|
})(AdditionalProperty || (exports.AdditionalProperty = AdditionalProperty = {}));
|
|
195
|
+
var AdminAssetTransaction;
|
|
196
|
+
(function (AdminAssetTransaction) {
|
|
197
|
+
let repo;
|
|
198
|
+
async function createInstance(...params) {
|
|
199
|
+
if (repo === undefined) {
|
|
200
|
+
repo = (await import('./repo/adminAssetTransaction.js')).AdminAssetTransactionRepo;
|
|
201
|
+
}
|
|
202
|
+
return new repo(...params);
|
|
203
|
+
}
|
|
204
|
+
AdminAssetTransaction.createInstance = createInstance;
|
|
205
|
+
})(AdminAssetTransaction || (exports.AdminAssetTransaction = AdminAssetTransaction = {}));
|
|
173
206
|
var AdminAsyncAction;
|
|
174
207
|
(function (AdminAsyncAction) {
|
|
175
208
|
let repo;
|
|
@@ -203,6 +236,17 @@ var AdminTask;
|
|
|
203
236
|
}
|
|
204
237
|
AdminTask.createInstance = createInstance;
|
|
205
238
|
})(AdminTask || (exports.AdminTask = AdminTask = {}));
|
|
239
|
+
var AdminTransaction;
|
|
240
|
+
(function (AdminTransaction) {
|
|
241
|
+
let repo;
|
|
242
|
+
async function createInstance(...params) {
|
|
243
|
+
if (repo === undefined) {
|
|
244
|
+
repo = (await import('./repo/adminTransaction.js')).AdminTransactionRepo;
|
|
245
|
+
}
|
|
246
|
+
return new repo(...params);
|
|
247
|
+
}
|
|
248
|
+
AdminTransaction.createInstance = createInstance;
|
|
249
|
+
})(AdminTransaction || (exports.AdminTransaction = AdminTransaction = {}));
|
|
206
250
|
var AggregateAction;
|
|
207
251
|
(function (AggregateAction) {
|
|
208
252
|
let repo;
|
|
@@ -214,6 +258,17 @@ var AggregateAction;
|
|
|
214
258
|
}
|
|
215
259
|
AggregateAction.createInstance = createInstance;
|
|
216
260
|
})(AggregateAction || (exports.AggregateAction = AggregateAction = {}));
|
|
261
|
+
var AggregateScheduledTask;
|
|
262
|
+
(function (AggregateScheduledTask) {
|
|
263
|
+
let repo;
|
|
264
|
+
async function createInstance(...params) {
|
|
265
|
+
if (repo === undefined) {
|
|
266
|
+
repo = (await import('./repo/aggregateScheduledTask.js')).AggregateScheduledTaskRepo;
|
|
267
|
+
}
|
|
268
|
+
return new repo(...params);
|
|
269
|
+
}
|
|
270
|
+
AggregateScheduledTask.createInstance = createInstance;
|
|
271
|
+
})(AggregateScheduledTask || (exports.AggregateScheduledTask = AggregateScheduledTask = {}));
|
|
217
272
|
var AggregateTask;
|
|
218
273
|
(function (AggregateTask) {
|
|
219
274
|
let repo;
|
|
@@ -225,6 +280,28 @@ var AggregateTask;
|
|
|
225
280
|
}
|
|
226
281
|
AggregateTask.createInstance = createInstance;
|
|
227
282
|
})(AggregateTask || (exports.AggregateTask = AggregateTask = {}));
|
|
283
|
+
var AggregateTransaction;
|
|
284
|
+
(function (AggregateTransaction) {
|
|
285
|
+
let repo;
|
|
286
|
+
async function createInstance(...params) {
|
|
287
|
+
if (repo === undefined) {
|
|
288
|
+
repo = (await import('./repo/aggregateTransaction.js')).AggregateTransactionRepo;
|
|
289
|
+
}
|
|
290
|
+
return new repo(...params);
|
|
291
|
+
}
|
|
292
|
+
AggregateTransaction.createInstance = createInstance;
|
|
293
|
+
})(AggregateTransaction || (exports.AggregateTransaction = AggregateTransaction = {}));
|
|
294
|
+
var AggregateAssetTransaction;
|
|
295
|
+
(function (AggregateAssetTransaction) {
|
|
296
|
+
let repo;
|
|
297
|
+
async function createInstance(...params) {
|
|
298
|
+
if (repo === undefined) {
|
|
299
|
+
repo = (await import('./repo/aggregateAssetTransaction.js')).AggregateAssetTransactionRepo;
|
|
300
|
+
}
|
|
301
|
+
return new repo(...params);
|
|
302
|
+
}
|
|
303
|
+
AggregateAssetTransaction.createInstance = createInstance;
|
|
304
|
+
})(AggregateAssetTransaction || (exports.AggregateAssetTransaction = AggregateAssetTransaction = {}));
|
|
228
305
|
var AggregateOffer;
|
|
229
306
|
(function (AggregateOffer) {
|
|
230
307
|
let repo;
|
|
@@ -613,17 +690,6 @@ var OrderNumber;
|
|
|
613
690
|
}
|
|
614
691
|
OrderNumber.createInstance = createInstance;
|
|
615
692
|
})(OrderNumber || (exports.OrderNumber = OrderNumber = {}));
|
|
616
|
-
var OwnershipInfo;
|
|
617
|
-
(function (OwnershipInfo) {
|
|
618
|
-
let repo;
|
|
619
|
-
async function createInstance(...params) {
|
|
620
|
-
if (repo === undefined) {
|
|
621
|
-
repo = (await import('./repo/ownershipInfo.js')).OwnershipInfoRepo;
|
|
622
|
-
}
|
|
623
|
-
return new repo(...params);
|
|
624
|
-
}
|
|
625
|
-
OwnershipInfo.createInstance = createInstance;
|
|
626
|
-
})(OwnershipInfo || (exports.OwnershipInfo = OwnershipInfo = {}));
|
|
627
693
|
var Passport;
|
|
628
694
|
(function (Passport) {
|
|
629
695
|
let repo;
|
|
@@ -1044,6 +1110,17 @@ var Task;
|
|
|
1044
1110
|
}
|
|
1045
1111
|
Task.createInstance = createInstance;
|
|
1046
1112
|
})(Task || (exports.Task = Task = {}));
|
|
1113
|
+
var TaskDelayed;
|
|
1114
|
+
(function (TaskDelayed) {
|
|
1115
|
+
let repo;
|
|
1116
|
+
async function createInstance(...params) {
|
|
1117
|
+
if (repo === undefined) {
|
|
1118
|
+
repo = (await import('./repo/taskDelayed.js')).TaskDelayedRepo;
|
|
1119
|
+
}
|
|
1120
|
+
return new repo(...params);
|
|
1121
|
+
}
|
|
1122
|
+
TaskDelayed.createInstance = createInstance;
|
|
1123
|
+
})(TaskDelayed || (exports.TaskDelayed = TaskDelayed = {}));
|
|
1047
1124
|
var AsyncAction;
|
|
1048
1125
|
(function (AsyncAction) {
|
|
1049
1126
|
let repo;
|