@chevre/domain 24.0.0-alpha.40 → 24.0.0-alpha.42
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/repo/accountTitle.d.ts +3 -3
- package/lib/chevre/repo/action/pay.d.ts +25 -0
- package/lib/chevre/repo/action/pay.js +54 -0
- package/lib/chevre/repo/action/refund.d.ts +9 -0
- package/lib/chevre/repo/action/refund.js +13 -0
- package/lib/chevre/repo/action.d.ts +5 -14
- package/lib/chevre/repo/action.js +20 -13
- package/lib/chevre/repo/additionalProperty.js +2 -2
- package/lib/chevre/repo/advanceBookingRequirement.d.ts +1 -3
- package/lib/chevre/repo/advanceBookingRequirement.js +2 -2
- package/lib/chevre/repo/aggregateOffer.d.ts +5 -9
- package/lib/chevre/repo/aggregateOffer.js +3 -3
- package/lib/chevre/repo/assetTransaction.d.ts +3 -3
- package/lib/chevre/repo/assetTransaction.js +12 -6
- package/lib/chevre/repo/categoryCode.d.ts +4 -6
- package/lib/chevre/repo/categoryCode.js +2 -2
- package/lib/chevre/repo/comment.d.ts +3 -3
- package/lib/chevre/repo/creativeWork.d.ts +3 -3
- package/lib/chevre/repo/creativeWork.js +3 -3
- package/lib/chevre/repo/customer.d.ts +3 -3
- package/lib/chevre/repo/customer.js +2 -2
- package/lib/chevre/repo/emailMessage.js +1 -1
- package/lib/chevre/repo/event.d.ts +6 -6
- package/lib/chevre/repo/event.js +10 -4
- package/lib/chevre/repo/eventSeries.d.ts +6 -6
- package/lib/chevre/repo/eventSeries.js +2 -2
- package/lib/chevre/repo/identity.d.ts +4 -6
- package/lib/chevre/repo/identityProvider.d.ts +4 -6
- package/lib/chevre/repo/identityProvider.js +2 -2
- package/lib/chevre/repo/issuer.d.ts +3 -3
- package/lib/chevre/repo/issuer.js +3 -3
- package/lib/chevre/repo/member.d.ts +3 -3
- package/lib/chevre/repo/merchantReturnPolicy.d.ts +3 -3
- package/lib/chevre/repo/merchantReturnPolicy.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/acceptedPaymentMethod.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/account.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/accountTitle.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/accountTransaction.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/accountingReport.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/action.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/actionRecipe.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/additionalProperty.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/advanceBookingRequirement.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/aggregateOffer.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/aggregateOrder.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/aggregateReservation.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/aggregation.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/assetTransaction.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/authorization.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/categoryCode.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/civicStructure.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/comments.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/creativeWork.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/customer.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/customerType.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/emailMessages.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/event.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/eventOffer.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/eventSeries.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/identity.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/identityProvider.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/issuer.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/member/global.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/member.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/merchantReturnPolicy.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/message.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/movieTicketTypes.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/note.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/offerCatalog.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/offerCatalogItem.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/offerItemCondition.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/order.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/ownershipInfo.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/paymentService.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/paymentServiceChannel.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/pendingReservation.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/pendingReservationAggregate.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/place.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/potentialAction.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/priceSpecification.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/product.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/productModel.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/productOffer.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/project.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/reservation.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/reserveInterface.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/role.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/schedule.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/seller.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/sellerReturnPolicy.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/service/availableHour.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/serviceOutput.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/setting.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/task.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/ticket.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/transaction.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/transactionNumber.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/trip.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/webSite.d.ts +2 -2
- package/lib/chevre/repo/movieTicketType.d.ts +1 -3
- package/lib/chevre/repo/movieTicketType.js +2 -2
- package/lib/chevre/repo/offer/offerInCatalogReadOnly.d.ts +1 -3
- package/lib/chevre/repo/offer/unitPriceInCatalog.d.ts +1 -3
- package/lib/chevre/repo/offerCatalog.d.ts +3 -3
- package/lib/chevre/repo/offerCatalog.js +5 -4
- package/lib/chevre/repo/offerCatalogItem.js +4 -4
- package/lib/chevre/repo/offerItemCondition.js +2 -2
- package/lib/chevre/repo/order.d.ts +3 -3
- package/lib/chevre/repo/ownershipInfo.d.ts +3 -3
- package/lib/chevre/repo/passport.js +1 -1
- package/lib/chevre/repo/paymentService.d.ts +1 -3
- package/lib/chevre/repo/paymentService.js +2 -2
- package/lib/chevre/repo/paymentServiceChannel.d.ts +1 -3
- package/lib/chevre/repo/paymentServiceChannel.js +2 -2
- package/lib/chevre/repo/person.js +2 -2
- package/lib/chevre/repo/place/busStop.js +1 -1
- package/lib/chevre/repo/place/movieTheater.d.ts +3 -3
- package/lib/chevre/repo/place/movieTheater.js +10 -4
- package/lib/chevre/repo/place/screeningRoom.d.ts +3 -3
- package/lib/chevre/repo/place/screeningRoom.js +2 -2
- package/lib/chevre/repo/place/seat.d.ts +2 -4
- package/lib/chevre/repo/potentialAction.d.ts +4 -6
- package/lib/chevre/repo/potentialAction.js +2 -2
- package/lib/chevre/repo/priceSpecification.d.ts +3 -3
- package/lib/chevre/repo/priceSpecification.js +2 -2
- package/lib/chevre/repo/product.d.ts +5 -9
- package/lib/chevre/repo/product.js +3 -3
- package/lib/chevre/repo/productModel.js +2 -2
- package/lib/chevre/repo/project.d.ts +3 -3
- package/lib/chevre/repo/rateLimit/offer.js +1 -1
- package/lib/chevre/repo/reservation.d.ts +4 -6
- package/lib/chevre/repo/seller.d.ts +5 -9
- package/lib/chevre/repo/seller.js +2 -2
- package/lib/chevre/repo/sellerReturnPolicy.d.ts +1 -3
- package/lib/chevre/repo/sellerReturnPolicy.js +2 -2
- package/lib/chevre/repo/task.d.ts +3 -3
- package/lib/chevre/repo/task.js +1 -1
- package/lib/chevre/repo/transaction.d.ts +3 -3
- package/lib/chevre/repo/transactionProcess.js +1 -1
- package/lib/chevre/repo/trip.d.ts +4 -12
- package/lib/chevre/repo/trip.js +3 -3
- package/lib/chevre/repo/webSite.d.ts +1 -3
- package/lib/chevre/repo/webSite.js +3 -2
- package/lib/chevre/repository.d.ts +10 -0
- package/lib/chevre/repository.js +22 -0
- package/lib/chevre/service/assetTransaction/moneyTransfer.js +8 -5
- package/lib/chevre/service/assetTransaction/pay/confirm.d.ts +1 -1
- package/lib/chevre/service/assetTransaction/pay/exportTasksById.js +2 -1
- package/lib/chevre/service/assetTransaction/pay/publishPaymentUrl.js +2 -1
- package/lib/chevre/service/assetTransaction/pay/start/factory.js +2 -1
- package/lib/chevre/service/assetTransaction/pay/start/processAuthorize.d.ts +7 -2
- package/lib/chevre/service/assetTransaction/pay/start/processAuthorizeMovieTicket.d.ts +7 -2
- package/lib/chevre/service/assetTransaction/pay/start.d.ts +7 -2
- package/lib/chevre/service/assetTransaction/refund.d.ts +5 -2
- package/lib/chevre/service/assetTransaction/refund.js +1 -1
- package/lib/chevre/service/assetTransaction/reserve/start/createSubReservations.js +6 -3
- package/lib/chevre/service/assetTransaction/reserve/start/factory/createStartParams.js +3 -2
- package/lib/chevre/service/delivery/factory.js +2 -1
- package/lib/chevre/service/event/saveScreeningEvents.js +2 -2
- package/lib/chevre/service/event.js +1 -1
- package/lib/chevre/service/notification/notifyByEmail.d.ts +1 -1
- package/lib/chevre/service/notification/triggerWebhook.js +1 -1
- package/lib/chevre/service/offer/event/authorize.js +2 -1
- package/lib/chevre/service/offer/event/searchEventTicketOffers.js +2 -1
- package/lib/chevre/service/offer/event/searchOffersByIds.js +2 -1
- package/lib/chevre/service/offer/event/voidTransaction.js +6 -3
- package/lib/chevre/service/offer/event/voidTransactionByActionId.js +2 -1
- package/lib/chevre/service/offer/eventServiceByCOA/authorize/factory.js +14 -11
- package/lib/chevre/service/offer/eventServiceByCOA/authorize.d.ts +1 -1
- package/lib/chevre/service/offer/eventServiceByCOA/changeOffers.d.ts +1 -1
- package/lib/chevre/service/offer/eventServiceByCOA/findAcceptAction.js +2 -1
- package/lib/chevre/service/offer/product.js +1 -1
- package/lib/chevre/service/order/confirmPayTransaction.d.ts +1 -1
- package/lib/chevre/service/order/onAssetTransactionStatusChanged.js +2 -1
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderReturned.js +4 -2
- package/lib/chevre/service/payment/any/authorize.d.ts +7 -2
- package/lib/chevre/service/payment/any/findAcceptAction.js +2 -1
- package/lib/chevre/service/payment/any/findAuthorizeAction.js +2 -1
- package/lib/chevre/service/payment/any/findCheckAction.js +2 -1
- package/lib/chevre/service/payment/any/invalidatePaymentUrl.js +2 -1
- package/lib/chevre/service/payment/any/onPayActionCompleted.d.ts +7 -2
- package/lib/chevre/service/payment/any/onPayActionCompleted.js +7 -2
- package/lib/chevre/service/payment/any/onPaymentStatusChanged.d.ts +10 -5
- package/lib/chevre/service/payment/any/onPaymentStatusChanged.js +21 -11
- package/lib/chevre/service/payment/any/onRefundActionCompletedOrFailed.d.ts +13 -10
- package/lib/chevre/service/payment/any/onRefundActionCompletedOrFailed.js +9 -6
- package/lib/chevre/service/payment/any/processVoidPayTransaction.js +2 -1
- package/lib/chevre/service/payment/any/verifyTicketTokenAsNeeded.js +2 -1
- package/lib/chevre/service/payment/creditCard/authorize/processAuthorizeCreditCard.js +1 -1
- package/lib/chevre/service/payment/creditCard/payCreditCard.d.ts +7 -2
- package/lib/chevre/service/payment/creditCard/payCreditCard.js +8 -4
- package/lib/chevre/service/payment/creditCard/refundCreditCard.d.ts +7 -2
- package/lib/chevre/service/payment/creditCard/refundCreditCard.js +11 -7
- package/lib/chevre/service/payment/faceToFace.d.ts +12 -3
- package/lib/chevre/service/payment/faceToFace.js +16 -8
- package/lib/chevre/service/payment/factory/createPayObjectServiceOutput.js +2 -1
- package/lib/chevre/service/payment/factory.js +4 -2
- package/lib/chevre/service/payment/movieTicket/authorize.d.ts +7 -2
- package/lib/chevre/service/payment/movieTicket/authorize.js +1 -1
- package/lib/chevre/service/payment/movieTicket/payMovieTicket/payActionParams2seatInfoSyncIn.d.ts +12 -0
- package/lib/chevre/service/payment/movieTicket/payMovieTicket/payActionParams2seatInfoSyncIn.js +72 -0
- package/lib/chevre/service/payment/movieTicket/payMovieTicket/processSeatInfoSync.d.ts +8 -0
- package/lib/chevre/service/payment/movieTicket/payMovieTicket/processSeatInfoSync.js +29 -0
- package/lib/chevre/service/payment/movieTicket/payMovieTicket.d.ts +8 -3
- package/lib/chevre/service/payment/movieTicket/payMovieTicket.js +14 -77
- package/lib/chevre/service/payment/movieTicket/refundMovieTicket/createSeatInfoSyncCancelInOnRefund.d.ts +14 -0
- package/lib/chevre/service/payment/movieTicket/refundMovieTicket/createSeatInfoSyncCancelInOnRefund.js +49 -0
- package/lib/chevre/service/payment/movieTicket/refundMovieTicket/createSeatInfoSyncInOnRefund.d.ts +14 -0
- package/lib/chevre/service/payment/movieTicket/refundMovieTicket/createSeatInfoSyncInOnRefund.js +46 -0
- package/lib/chevre/service/payment/movieTicket/refundMovieTicket/processSeatInfoSync.d.ts +12 -0
- package/lib/chevre/service/payment/movieTicket/refundMovieTicket/processSeatInfoSync.js +72 -0
- package/lib/chevre/service/payment/movieTicket/refundMovieTicket/processSeatInfoSyncCancel.d.ts +8 -0
- package/lib/chevre/service/payment/movieTicket/refundMovieTicket/processSeatInfoSyncCancel.js +60 -0
- package/lib/chevre/service/payment/movieTicket/refundMovieTicket.d.ts +8 -3
- package/lib/chevre/service/payment/movieTicket/refundMovieTicket.js +20 -125
- package/lib/chevre/service/payment/movieTicket/validation.d.ts +1 -2
- package/lib/chevre/service/payment/movieTicket/validation.js +37 -29
- package/lib/chevre/service/payment/movieTicket/voidTransaction.d.ts +6 -2
- package/lib/chevre/service/payment/movieTicket/voidTransaction.js +1 -1
- package/lib/chevre/service/payment/paymentCard.d.ts +12 -3
- package/lib/chevre/service/payment/paymentCard.js +16 -8
- package/lib/chevre/service/permit.js +4 -2
- package/lib/chevre/service/reserve/factory.d.ts +1 -1
- package/lib/chevre/service/reserve/findByCode.js +2 -1
- package/lib/chevre/service/reserve/searchByOrder.js +2 -1
- package/lib/chevre/service/reserve/verifyToken4reservation.js +2 -1
- package/lib/chevre/service/task/authorizePayment.js +8 -2
- package/lib/chevre/service/task/confirmReserveTransaction.js +4 -2
- package/lib/chevre/service/task/invalidatePaymentUrl.js +8 -2
- package/lib/chevre/service/task/onResourceUpdated.js +1 -1
- package/lib/chevre/service/task/pay.js +8 -2
- package/lib/chevre/service/task/payment/invalidatePaymentUrlByTask.d.ts +7 -2
- package/lib/chevre/service/task/payment/payByTask.d.ts +7 -2
- package/lib/chevre/service/task/payment/payByTask.js +2 -1
- package/lib/chevre/service/task/payment/refundByTask.d.ts +7 -2
- package/lib/chevre/service/task/payment/voidPaymentByTask.d.ts +6 -0
- package/lib/chevre/service/task/refund.js +8 -2
- package/lib/chevre/service/task/returnPayTransaction.js +5 -2
- package/lib/chevre/service/task/returnReserveTransaction.js +2 -1
- package/lib/chevre/service/task/voidPayment.js +6 -0
- package/lib/chevre/service/transaction/deleteTransaction.js +4 -2
- package/lib/chevre/service/transaction/placeOrder/exportTasks/factory.js +2 -1
- package/lib/chevre/service/transaction/returnOrder/exportTasks/factory.js +2 -1
- package/lib/chevre/service/transaction/returnOrder/potentialActions/returnPaymentMethod.js +2 -2
- package/lib/chevre/service/transaction/returnOrder/preStart/getReturnPolicyByProject.js +5 -3
- package/lib/chevre/service/validation/validateOrder.js +4 -2
- package/package.json +2 -2
|
@@ -288,30 +288,30 @@ export declare class EventRepo {
|
|
|
288
288
|
validationErrors: import("mongoose").Error[];
|
|
289
289
|
} | undefined;
|
|
290
290
|
}>;
|
|
291
|
-
getCursor(conditions: FilterQuery<any>, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown,
|
|
291
|
+
getCursor(conditions: FilterQuery<any>, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, Record<string, never>, import("@chevre/factory/lib/event/screeningEvent").IAttributes & {
|
|
292
292
|
_id: string;
|
|
293
293
|
aggregateOffer?: factory.event.screeningEvent.IAggregateOffer;
|
|
294
|
-
}, import("./mongoose/virtuals").IVirtuals, {}> &
|
|
294
|
+
}, import("./mongoose/virtuals").IVirtuals, {}> & import("@chevre/factory/lib/event/screeningEvent").IAttributes & {
|
|
295
295
|
_id: string;
|
|
296
296
|
aggregateOffer?: factory.event.screeningEvent.IAggregateOffer;
|
|
297
297
|
} & Required<{
|
|
298
298
|
_id: string;
|
|
299
299
|
}> & {
|
|
300
300
|
__v: number;
|
|
301
|
-
},
|
|
301
|
+
}, import("mongoose").QueryOptions<import("@chevre/factory/lib/event/screeningEvent").IAttributes & {
|
|
302
302
|
_id: string;
|
|
303
303
|
aggregateOffer?: factory.event.screeningEvent.IAggregateOffer;
|
|
304
|
-
}>, (import("mongoose").Document<unknown,
|
|
304
|
+
}>, (import("mongoose").Document<unknown, Record<string, never>, import("@chevre/factory/lib/event/screeningEvent").IAttributes & {
|
|
305
305
|
_id: string;
|
|
306
306
|
aggregateOffer?: factory.event.screeningEvent.IAggregateOffer;
|
|
307
|
-
}, import("./mongoose/virtuals").IVirtuals, {}> &
|
|
307
|
+
}, import("./mongoose/virtuals").IVirtuals, {}> & import("@chevre/factory/lib/event/screeningEvent").IAttributes & {
|
|
308
308
|
_id: string;
|
|
309
309
|
aggregateOffer?: factory.event.screeningEvent.IAggregateOffer;
|
|
310
310
|
} & Required<{
|
|
311
311
|
_id: string;
|
|
312
312
|
}> & {
|
|
313
313
|
__v: number;
|
|
314
|
-
}
|
|
314
|
+
}) | null>;
|
|
315
315
|
unsetUnnecessaryFields(params: {
|
|
316
316
|
filter: FilterQuery<factory.event.screeningEvent.IEvent>;
|
|
317
317
|
$unset: IUnset;
|
package/lib/chevre/repo/event.js
CHANGED
|
@@ -149,7 +149,7 @@ class EventRepo {
|
|
|
149
149
|
}
|
|
150
150
|
let params;
|
|
151
151
|
switch (conditions.typeOf) {
|
|
152
|
-
case factory.eventType.ScreeningEvent:
|
|
152
|
+
case factory.eventType.ScreeningEvent: {
|
|
153
153
|
params = conditions;
|
|
154
154
|
/* istanbul ignore else */
|
|
155
155
|
if (typeof params.name === 'string' && params.name.length > 0) {
|
|
@@ -247,6 +247,7 @@ class EventRepo {
|
|
|
247
247
|
});
|
|
248
248
|
}
|
|
249
249
|
break;
|
|
250
|
+
}
|
|
250
251
|
case factory.eventType.ScreeningEventSeries:
|
|
251
252
|
throw new factory.errors.Internal('typeOf: ScreeningEventSeries discontinued');
|
|
252
253
|
default:
|
|
@@ -326,7 +327,9 @@ class EventRepo {
|
|
|
326
327
|
bulkWriteOps.push({ updateOne });
|
|
327
328
|
}
|
|
328
329
|
else {
|
|
329
|
-
const { id, coaInfo, description,
|
|
330
|
+
const { id, coaInfo, description, // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
331
|
+
maximumAttendeeCapacity, remainingAttendeeCapacity, checkInCount, attendeeCount, aggregateReservation, // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
332
|
+
...setOnInsertFields } = $set;
|
|
330
333
|
const setOnInsert = {
|
|
331
334
|
...setOnInsertFields,
|
|
332
335
|
identifier,
|
|
@@ -394,7 +397,10 @@ class EventRepo {
|
|
|
394
397
|
*/
|
|
395
398
|
async updateEventById(params) {
|
|
396
399
|
let doc;
|
|
397
|
-
const { identifier, project, typeOf,
|
|
400
|
+
const { identifier, project, typeOf, // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
401
|
+
organizer, aggregateReservation, maximumAttendeeCapacity, remainingAttendeeCapacity, checkInCount, attendeeCount, // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
402
|
+
coaInfo, // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
403
|
+
...updateFields
|
|
398
404
|
// maximumPhysicalAttendeeCapacity, additionalProperty,
|
|
399
405
|
// eventStatus, location, name, superEvent, offers,
|
|
400
406
|
// doorTime, endDate, startDate
|
|
@@ -449,7 +455,7 @@ class EventRepo {
|
|
|
449
455
|
const upsert = p.upsert === true;
|
|
450
456
|
if (p.attributes.typeOf === factory.eventType.ScreeningEvent) {
|
|
451
457
|
// 上書き禁止属性を除外(2022-08-24~)
|
|
452
|
-
const { identifier, project, typeOf, remainingAttendeeCapacity, ...updateFields } = p.attributes;
|
|
458
|
+
const { identifier, project, typeOf, remainingAttendeeCapacity, ...updateFields } = p.attributes; // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
453
459
|
bulkWriteOps.push({
|
|
454
460
|
updateOne: {
|
|
455
461
|
filter: {
|
|
@@ -86,25 +86,25 @@ export declare class EventSeriesRepo {
|
|
|
86
86
|
}): Promise<{
|
|
87
87
|
maxVersion: string;
|
|
88
88
|
}>;
|
|
89
|
-
getCursor(conditions: FilterQuery<any>, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown,
|
|
89
|
+
getCursor(conditions: FilterQuery<any>, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, Record<string, never>, factory.eventSeries.IAttributes & {
|
|
90
90
|
_id: string;
|
|
91
|
-
}, import("./mongoose/virtuals").IVirtuals, {}> &
|
|
91
|
+
}, import("./mongoose/virtuals").IVirtuals, {}> & factory.eventSeries.IAttributes & {
|
|
92
92
|
_id: string;
|
|
93
93
|
} & Required<{
|
|
94
94
|
_id: string;
|
|
95
95
|
}> & {
|
|
96
96
|
__v: number;
|
|
97
|
-
},
|
|
97
|
+
}, import("mongoose").QueryOptions<factory.eventSeries.IAttributes & {
|
|
98
98
|
_id: string;
|
|
99
|
-
}>, (import("mongoose").Document<unknown,
|
|
99
|
+
}>, (import("mongoose").Document<unknown, Record<string, never>, factory.eventSeries.IAttributes & {
|
|
100
100
|
_id: string;
|
|
101
|
-
}, import("./mongoose/virtuals").IVirtuals, {}> &
|
|
101
|
+
}, import("./mongoose/virtuals").IVirtuals, {}> & factory.eventSeries.IAttributes & {
|
|
102
102
|
_id: string;
|
|
103
103
|
} & Required<{
|
|
104
104
|
_id: string;
|
|
105
105
|
}> & {
|
|
106
106
|
__v: number;
|
|
107
|
-
}
|
|
107
|
+
}) | null>;
|
|
108
108
|
unsetUnnecessaryFields(params: {
|
|
109
109
|
filter: FilterQuery<factory.eventSeries.IEvent>;
|
|
110
110
|
$unset: IUnset;
|
|
@@ -326,7 +326,7 @@ class EventSeriesRepo {
|
|
|
326
326
|
'workPerformed.identifier': { $exists: true, $eq: $set.workPerformed.identifier },
|
|
327
327
|
'workPerformed.version': { $exists: true, $eq: version }
|
|
328
328
|
});
|
|
329
|
-
const { identifier, project, typeOf, ...setFields } = $set;
|
|
329
|
+
const { identifier, project, typeOf, ...setFields } = $set; // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
330
330
|
const setOnInsert = {
|
|
331
331
|
project,
|
|
332
332
|
typeOf,
|
|
@@ -449,7 +449,7 @@ class EventSeriesRepo {
|
|
|
449
449
|
if (Array.isArray(params)) {
|
|
450
450
|
params.forEach((p) => {
|
|
451
451
|
// 上書き禁止属性を除外(2022-08-24~)
|
|
452
|
-
const { identifier, project, typeOf, ...updateFields } = p.attributes;
|
|
452
|
+
const { identifier, project, typeOf, ...updateFields } = p.attributes; // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
453
453
|
bulkWriteOps.push({
|
|
454
454
|
updateOne: {
|
|
455
455
|
filter: {
|
|
@@ -10,9 +10,7 @@ export type ISavingIdentity = (ISavingSoftwareApplicationIdentity | ISavingWebAp
|
|
|
10
10
|
issuedBy: factory.creativeWork.certification.webApplication.IIssuedBy[];
|
|
11
11
|
};
|
|
12
12
|
interface IUnset {
|
|
13
|
-
$unset?:
|
|
14
|
-
[key: string]: 1;
|
|
15
|
-
};
|
|
13
|
+
$unset?: Record<string, 1>;
|
|
16
14
|
}
|
|
17
15
|
type IIdentityWithId = (factory.creativeWork.certification.softwareApplication.ICertification | factory.creativeWork.certification.webApplication.ICertification) & {
|
|
18
16
|
id: string;
|
|
@@ -38,7 +36,7 @@ export declare class IdentityRepo {
|
|
|
38
36
|
id: string;
|
|
39
37
|
};
|
|
40
38
|
}): Promise<void>;
|
|
41
|
-
getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown,
|
|
39
|
+
getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, Record<string, never>, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & ((Omit<import("@chevre/factory/lib/creativeWork/certification/softwareApplication").ICertification, "id"> & {
|
|
42
40
|
_id: import("mongoose").Types.ObjectId;
|
|
43
41
|
} & {
|
|
44
42
|
__v: number;
|
|
@@ -46,7 +44,7 @@ export declare class IdentityRepo {
|
|
|
46
44
|
_id: import("mongoose").Types.ObjectId;
|
|
47
45
|
} & {
|
|
48
46
|
__v: number;
|
|
49
|
-
})
|
|
47
|
+
})), QueryOptions<IDocType>, (import("mongoose").Document<unknown, Record<string, never>, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & ((Omit<import("@chevre/factory/lib/creativeWork/certification/softwareApplication").ICertification, "id"> & {
|
|
50
48
|
_id: import("mongoose").Types.ObjectId;
|
|
51
49
|
} & {
|
|
52
50
|
__v: number;
|
|
@@ -54,7 +52,7 @@ export declare class IdentityRepo {
|
|
|
54
52
|
_id: import("mongoose").Types.ObjectId;
|
|
55
53
|
} & {
|
|
56
54
|
__v: number;
|
|
57
|
-
})
|
|
55
|
+
}))) | null>;
|
|
58
56
|
updateIssuedBy2array(params: Pick<ISavingIdentity, 'issuedBy'> & {
|
|
59
57
|
id: string;
|
|
60
58
|
}): Promise<void>;
|
|
@@ -5,9 +5,7 @@ export type ISavingIdentityProvider = Pick<factory.identityProvider.IIdentityPro
|
|
|
5
5
|
id?: never;
|
|
6
6
|
};
|
|
7
7
|
interface IUnset {
|
|
8
|
-
$unset?:
|
|
9
|
-
[key: string]: 1;
|
|
10
|
-
};
|
|
8
|
+
$unset?: Record<string, 1>;
|
|
11
9
|
}
|
|
12
10
|
type IIdentityProviderWithId = factory.identityProvider.IIdentityProvider & {
|
|
13
11
|
id: string;
|
|
@@ -33,15 +31,15 @@ export declare class IdentityProviderRepo {
|
|
|
33
31
|
id: string;
|
|
34
32
|
};
|
|
35
33
|
}): Promise<void>;
|
|
36
|
-
getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown,
|
|
34
|
+
getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, Record<string, never>, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & IDocType & {
|
|
37
35
|
_id: import("mongoose").Types.ObjectId;
|
|
38
36
|
} & {
|
|
39
37
|
__v: number;
|
|
40
|
-
},
|
|
38
|
+
}, QueryOptions<IDocType>, (import("mongoose").Document<unknown, Record<string, never>, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & IDocType & {
|
|
41
39
|
_id: import("mongoose").Types.ObjectId;
|
|
42
40
|
} & {
|
|
43
41
|
__v: number;
|
|
44
|
-
}
|
|
42
|
+
}) | null>;
|
|
45
43
|
unsetUnnecessaryFields(params: {
|
|
46
44
|
filter: any;
|
|
47
45
|
$unset: any;
|
|
@@ -67,7 +67,7 @@ class IdentityProviderRepo {
|
|
|
67
67
|
if (savingId === '') {
|
|
68
68
|
throw new factory.errors.ArgumentNull('id');
|
|
69
69
|
}
|
|
70
|
-
const { id, identifier, project, typeOf, $unset, ...updateFields } = params.attributes;
|
|
70
|
+
const { id, identifier, project, typeOf, $unset, ...updateFields } = params.attributes; // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
71
71
|
const filter = {
|
|
72
72
|
_id: { $eq: savingId },
|
|
73
73
|
'project.id': { $eq: project.id }
|
|
@@ -90,7 +90,7 @@ class IdentityProviderRepo {
|
|
|
90
90
|
savedId = savingId;
|
|
91
91
|
}
|
|
92
92
|
else {
|
|
93
|
-
const { $unset, id, ...createParams } = params.attributes;
|
|
93
|
+
const { $unset, id, ...createParams } = params.attributes; // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
94
94
|
const result = await this.identityProviderModel.insertMany(createParams, { rawResult: true });
|
|
95
95
|
const insertedId = result.insertedIds?.[0]?.toHexString();
|
|
96
96
|
if (typeof insertedId !== 'string') {
|
|
@@ -35,7 +35,7 @@ export declare class IssuerRepo {
|
|
|
35
35
|
id: string;
|
|
36
36
|
};
|
|
37
37
|
}): Promise<void>;
|
|
38
|
-
getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown,
|
|
38
|
+
getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, Record<string, never>, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & Omit<factory.issuer.IIssuer, "id"> & {
|
|
39
39
|
hasMemberProgram?: (factory.issuer.IMemberProgram & {
|
|
40
40
|
hasTiers?: Pick<factory.issuer.IMemberProgramTier, "identifier" | "typeOf">[];
|
|
41
41
|
})[];
|
|
@@ -43,7 +43,7 @@ export declare class IssuerRepo {
|
|
|
43
43
|
_id: import("mongoose").Types.ObjectId;
|
|
44
44
|
} & {
|
|
45
45
|
__v: number;
|
|
46
|
-
},
|
|
46
|
+
}, import("mongoose").QueryOptions<IDocType>, (import("mongoose").Document<unknown, Record<string, never>, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & Omit<factory.issuer.IIssuer, "id"> & {
|
|
47
47
|
hasMemberProgram?: (factory.issuer.IMemberProgram & {
|
|
48
48
|
hasTiers?: Pick<factory.issuer.IMemberProgramTier, "identifier" | "typeOf">[];
|
|
49
49
|
})[];
|
|
@@ -51,6 +51,6 @@ export declare class IssuerRepo {
|
|
|
51
51
|
_id: import("mongoose").Types.ObjectId;
|
|
52
52
|
} & {
|
|
53
53
|
__v: number;
|
|
54
|
-
}
|
|
54
|
+
}) | null>;
|
|
55
55
|
}
|
|
56
56
|
export {};
|
|
@@ -59,12 +59,12 @@ class IssuerRepo {
|
|
|
59
59
|
let savedId;
|
|
60
60
|
let doc;
|
|
61
61
|
if (params.id === '') {
|
|
62
|
-
const { id, ...creatingParams } = params;
|
|
62
|
+
const { id, ...creatingParams } = params; // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
63
63
|
doc = await this.issuerModel.create(creatingParams);
|
|
64
64
|
savedId = doc.id;
|
|
65
65
|
}
|
|
66
66
|
else {
|
|
67
|
-
const { id, identifier, project, ...updateFields } = params;
|
|
67
|
+
const { id, identifier, project, ...updateFields } = params; // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
68
68
|
doc = await this.issuerModel.findOneAndUpdate({ _id: { $eq: params.id } }, { $set: updateFields }, { upsert: false, new: true, projection: { _id: 1 } })
|
|
69
69
|
.exec();
|
|
70
70
|
savedId = params.id;
|
|
@@ -75,7 +75,7 @@ class IssuerRepo {
|
|
|
75
75
|
return { id: savedId };
|
|
76
76
|
}
|
|
77
77
|
async renameIssuerIdentifier(params) {
|
|
78
|
-
const { id, ...updateFields } = params;
|
|
78
|
+
const { id, ...updateFields } = params; // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
79
79
|
const doc = await this.issuerModel.findOneAndUpdate({ _id: { $eq: params.id } }, { $set: updateFields }, { upsert: false, new: true, projection: { _id: 1 } })
|
|
80
80
|
.exec();
|
|
81
81
|
const savedId = params.id;
|
|
@@ -174,15 +174,15 @@ export declare class MemberRepo {
|
|
|
174
174
|
id: string;
|
|
175
175
|
};
|
|
176
176
|
}): Promise<string[]>;
|
|
177
|
-
getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown,
|
|
177
|
+
getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, Record<string, never>, factory.iam.IMember, import("./mongoose/virtuals").IVirtuals, {}> & factory.iam.IMember & {
|
|
178
178
|
_id: import("mongoose").Types.ObjectId;
|
|
179
179
|
} & {
|
|
180
180
|
__v: number;
|
|
181
|
-
},
|
|
181
|
+
}, import("mongoose").QueryOptions<factory.iam.IMember>, (import("mongoose").Document<unknown, Record<string, never>, factory.iam.IMember, import("./mongoose/virtuals").IVirtuals, {}> & factory.iam.IMember & {
|
|
182
182
|
_id: import("mongoose").Types.ObjectId;
|
|
183
183
|
} & {
|
|
184
184
|
__v: number;
|
|
185
|
-
}
|
|
185
|
+
}) | null>;
|
|
186
186
|
unsetUnnecessaryFields(params: {
|
|
187
187
|
filter: any;
|
|
188
188
|
$unset: any;
|
|
@@ -20,7 +20,7 @@ export declare class MerchantReturnPolicyRepo {
|
|
|
20
20
|
id: string;
|
|
21
21
|
};
|
|
22
22
|
}): Promise<void>;
|
|
23
|
-
getCursor(conditions: any, projection: any): import("mongoose").Cursor<Document<unknown,
|
|
23
|
+
getCursor(conditions: any, projection: any): import("mongoose").Cursor<Document<unknown, Record<string, never>, factory.unitPriceOffer.IOfferMerchantReturnPolicy, import("./mongoose/virtuals").IVirtuals, {}> & Pick<factory.merchantReturnPolicy.IMerchantReturnPolicy, "typeOf" | "customerRemorseReturnFees" | "customerRemorseReturnFeesMovieTicket"> & {
|
|
24
24
|
customerRemorseReturnFees: factory.merchantReturnPolicy.ICustomerRemorseReturnFees;
|
|
25
25
|
customerRemorseReturnFeesMovieTicket: factory.merchantReturnPolicy.ICustomerRemorseReturnFeesMovieTicket;
|
|
26
26
|
project: Pick<factory.project.IProject, "id" | "typeOf">;
|
|
@@ -32,7 +32,7 @@ export declare class MerchantReturnPolicyRepo {
|
|
|
32
32
|
_id: import("mongoose").Types.ObjectId;
|
|
33
33
|
} & {
|
|
34
34
|
__v: number;
|
|
35
|
-
},
|
|
35
|
+
}, import("mongoose").QueryOptions<factory.unitPriceOffer.IOfferMerchantReturnPolicy>, (Document<unknown, Record<string, never>, factory.unitPriceOffer.IOfferMerchantReturnPolicy, import("./mongoose/virtuals").IVirtuals, {}> & Pick<factory.merchantReturnPolicy.IMerchantReturnPolicy, "typeOf" | "customerRemorseReturnFees" | "customerRemorseReturnFeesMovieTicket"> & {
|
|
36
36
|
customerRemorseReturnFees: factory.merchantReturnPolicy.ICustomerRemorseReturnFees;
|
|
37
37
|
customerRemorseReturnFeesMovieTicket: factory.merchantReturnPolicy.ICustomerRemorseReturnFeesMovieTicket;
|
|
38
38
|
project: Pick<factory.project.IProject, "id" | "typeOf">;
|
|
@@ -44,5 +44,5 @@ export declare class MerchantReturnPolicyRepo {
|
|
|
44
44
|
_id: import("mongoose").Types.ObjectId;
|
|
45
45
|
} & {
|
|
46
46
|
__v: number;
|
|
47
|
-
}
|
|
47
|
+
}) | null>;
|
|
48
48
|
}
|
|
@@ -103,7 +103,7 @@ class MerchantReturnPolicyRepo {
|
|
|
103
103
|
}
|
|
104
104
|
else {
|
|
105
105
|
// 上書き禁止属性を除外(2022-08-24~)
|
|
106
|
-
const { id, identifier, project, typeOf, ...updateFields } = params;
|
|
106
|
+
const { id, identifier, project, typeOf, ...updateFields } = params; // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
107
107
|
doc = await this.merchantReturnPolicyModel.findOneAndUpdate({ _id: params.id }, updateFields, { upsert: false, new: true })
|
|
108
108
|
.exec();
|
|
109
109
|
}
|
|
@@ -2,9 +2,9 @@ import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from '
|
|
|
2
2
|
import * as factory from '../../../factory';
|
|
3
3
|
import { IVirtuals } from '../virtuals';
|
|
4
4
|
type IDocType = Omit<factory.acceptedPaymentMethodOffer.IAcceptedPaymentMethodOffer, 'id'>;
|
|
5
|
-
type IModel = Model<IDocType,
|
|
5
|
+
type IModel = Model<IDocType, Record<string, never>, Record<string, never>, IVirtuals>;
|
|
6
6
|
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
7
|
-
type ISchema = Schema<IDocType, IModel,
|
|
7
|
+
type ISchema = Schema<IDocType, IModel, Record<string, never>, Record<string, never>, IVirtuals, Record<string, never>, ISchemaDefinition, IDocType>;
|
|
8
8
|
declare const modelName = "AcceptedPaymentMethod";
|
|
9
9
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
10
10
|
declare function createSchema(): ISchema;
|
|
@@ -2,9 +2,9 @@ import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from '
|
|
|
2
2
|
import { IVirtuals } from '../virtuals';
|
|
3
3
|
import * as factory from '../../../factory';
|
|
4
4
|
type IDocType = factory.account.IAccount;
|
|
5
|
-
type IModel = Model<IDocType,
|
|
5
|
+
type IModel = Model<IDocType, Record<string, never>, Record<string, never>, IVirtuals>;
|
|
6
6
|
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
7
|
-
type ISchema = Schema<IDocType, IModel,
|
|
7
|
+
type ISchema = Schema<IDocType, IModel, Record<string, never>, Record<string, never>, IVirtuals, Record<string, never>, ISchemaDefinition, IDocType>;
|
|
8
8
|
declare const modelName = "Account";
|
|
9
9
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
10
10
|
declare function createSchema(): ISchema;
|
|
@@ -2,9 +2,9 @@ import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from '
|
|
|
2
2
|
import { IVirtuals } from '../virtuals';
|
|
3
3
|
import * as factory from '../../../factory';
|
|
4
4
|
type IDocType = factory.accountTitle.IAccountTitle;
|
|
5
|
-
type IModel = Model<IDocType,
|
|
5
|
+
type IModel = Model<IDocType, Record<string, never>, Record<string, never>, IVirtuals>;
|
|
6
6
|
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
7
|
-
type ISchema = Schema<IDocType, IModel,
|
|
7
|
+
type ISchema = Schema<IDocType, IModel, Record<string, never>, Record<string, never>, IVirtuals, Record<string, never>, ISchemaDefinition, IDocType>;
|
|
8
8
|
declare const modelName = "AccountTitle";
|
|
9
9
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
10
10
|
declare function createSchema(): ISchema;
|
|
@@ -2,9 +2,9 @@ import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from '
|
|
|
2
2
|
import { IVirtuals } from '../virtuals';
|
|
3
3
|
import * as factory from '../../../factory';
|
|
4
4
|
type IDocType = Omit<factory.account.transaction.ITransaction<factory.account.transactionType>, 'id'>;
|
|
5
|
-
type IModel = Model<IDocType,
|
|
5
|
+
type IModel = Model<IDocType, Record<string, never>, Record<string, never>, IVirtuals>;
|
|
6
6
|
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
7
|
-
type ISchema = Schema<IDocType, IModel,
|
|
7
|
+
type ISchema = Schema<IDocType, IModel, Record<string, never>, Record<string, never>, IVirtuals, Record<string, never>, ISchemaDefinition>;
|
|
8
8
|
declare const modelName = "AccountTransaction";
|
|
9
9
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
10
10
|
declare function createSchema(): ISchema;
|
|
@@ -3,9 +3,9 @@ import { IVirtuals } from '../virtuals';
|
|
|
3
3
|
import * as factory from '../../../factory';
|
|
4
4
|
type IAccountingReport = factory.report.accountingReport.IReportDocument;
|
|
5
5
|
type IDocType = IAccountingReport;
|
|
6
|
-
type IModel = Model<IDocType,
|
|
6
|
+
type IModel = Model<IDocType, Record<string, never>, Record<string, never>, IVirtuals>;
|
|
7
7
|
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
8
|
-
type ISchema = Schema<IDocType, IModel,
|
|
8
|
+
type ISchema = Schema<IDocType, IModel, Record<string, never>, Record<string, never>, IVirtuals, Record<string, never>, ISchemaDefinition, IDocType>;
|
|
9
9
|
declare const modelName = "AccountingReport";
|
|
10
10
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
11
11
|
declare function createSchema(): ISchema;
|
|
@@ -4,9 +4,9 @@ import * as factory from '../../../factory';
|
|
|
4
4
|
type IDocType = Omit<factory.action.IAction<factory.action.IAttributes<factory.actionType, any, any>>, 'id'> & {
|
|
5
5
|
identifier?: string;
|
|
6
6
|
};
|
|
7
|
-
type IModel = Model<IDocType,
|
|
7
|
+
type IModel = Model<IDocType, Record<string, never>, Record<string, never>, IVirtuals>;
|
|
8
8
|
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
9
|
-
type ISchema = Schema<IDocType, IModel,
|
|
9
|
+
type ISchema = Schema<IDocType, IModel, Record<string, never>, Record<string, never>, IVirtuals, Record<string, never>, ISchemaDefinition, IDocType>;
|
|
10
10
|
declare const modelName = "Action";
|
|
11
11
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
12
12
|
declare function createSchema(): ISchema;
|
|
@@ -8,9 +8,9 @@ type IDocType = factory.recipe.IRecipe & {
|
|
|
8
8
|
dateCreated?: Date;
|
|
9
9
|
dateModified?: Date;
|
|
10
10
|
};
|
|
11
|
-
type IModel = Model<IDocType,
|
|
11
|
+
type IModel = Model<IDocType, Record<string, never>, Record<string, never>, IVirtuals>;
|
|
12
12
|
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
13
|
-
type ISchema = Schema<IDocType, IModel,
|
|
13
|
+
type ISchema = Schema<IDocType, IModel, Record<string, never>, Record<string, never>, IVirtuals, Record<string, never>, ISchemaDefinition, IDocType>;
|
|
14
14
|
declare const modelName = "ActionRecipe";
|
|
15
15
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
16
16
|
declare function createSchema(): ISchema;
|
|
@@ -2,9 +2,9 @@ import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from '
|
|
|
2
2
|
import { IVirtuals } from '../virtuals';
|
|
3
3
|
import * as factory from '../../../factory';
|
|
4
4
|
type IDocType = Omit<factory.additionalProperty.IAdditionalProperty, 'id'>;
|
|
5
|
-
type IModel = Model<IDocType,
|
|
5
|
+
type IModel = Model<IDocType, Record<string, never>, Record<string, never>, IVirtuals>;
|
|
6
6
|
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
7
|
-
type ISchema = Schema<IDocType, IModel,
|
|
7
|
+
type ISchema = Schema<IDocType, IModel, Record<string, never>, Record<string, never>, IVirtuals, Record<string, never>, ISchemaDefinition, IDocType>;
|
|
8
8
|
declare const modelName = "AdditionalProperty";
|
|
9
9
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
10
10
|
declare function createSchema(): ISchema;
|
|
@@ -2,9 +2,9 @@ import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from '
|
|
|
2
2
|
import { IVirtuals } from '../virtuals';
|
|
3
3
|
import * as factory from '../../../factory';
|
|
4
4
|
type IDocType = Omit<factory.advanceBookingRequirement.IAdvanceBookingRequirement, 'id'>;
|
|
5
|
-
type IModel = Model<IDocType,
|
|
5
|
+
type IModel = Model<IDocType, Record<string, never>, Record<string, never>, IVirtuals>;
|
|
6
6
|
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
7
|
-
type ISchema = Schema<IDocType, IModel,
|
|
7
|
+
type ISchema = Schema<IDocType, IModel, Record<string, never>, Record<string, never>, IVirtuals, Record<string, never>, ISchemaDefinition, IDocType>;
|
|
8
8
|
declare const modelName = "AdvanceBookingRequirement";
|
|
9
9
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
10
10
|
declare function createSchema(): ISchema;
|
|
@@ -5,9 +5,9 @@ export interface IDocType extends Omit<factory.aggregateOffer.IAggregateOffer, '
|
|
|
5
5
|
_id: string;
|
|
6
6
|
includedInDataCatalog?: any[];
|
|
7
7
|
}
|
|
8
|
-
type IModel = Model<IDocType,
|
|
8
|
+
type IModel = Model<IDocType, Record<string, never>, Record<string, never>, IVirtuals>;
|
|
9
9
|
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
10
|
-
type ISchema = Schema<IDocType, IModel,
|
|
10
|
+
type ISchema = Schema<IDocType, IModel, Record<string, never>, Record<string, never>, IVirtuals, Record<string, never>, ISchemaDefinition, IDocType>;
|
|
11
11
|
declare const modelName = "AggregateOffer";
|
|
12
12
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
13
13
|
declare function createSchema(): ISchema;
|
|
@@ -15,9 +15,9 @@ export interface IDocType {
|
|
|
15
15
|
};
|
|
16
16
|
typeOf: factory.personType.Person | factory.placeType.Seat;
|
|
17
17
|
}
|
|
18
|
-
type IModel = Model<IDocType,
|
|
18
|
+
type IModel = Model<IDocType, Record<string, never>, Record<string, never>, IVirtuals>;
|
|
19
19
|
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
20
|
-
type ISchema = Schema<IDocType, IModel,
|
|
20
|
+
type ISchema = Schema<IDocType, IModel, Record<string, never>, Record<string, never>, IVirtuals, Record<string, never>, ISchemaDefinition, IDocType>;
|
|
21
21
|
declare const modelName = "AggregateOrder";
|
|
22
22
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
23
23
|
declare function createSchema(): ISchema;
|
|
@@ -15,9 +15,9 @@ export interface IAggregateReservation {
|
|
|
15
15
|
aggregateOffer?: factory.event.screeningEvent.IAggregateOffer;
|
|
16
16
|
}
|
|
17
17
|
type IDocType = IAggregateReservation;
|
|
18
|
-
type IModel = Model<IDocType,
|
|
18
|
+
type IModel = Model<IDocType, Record<string, never>, Record<string, never>, IVirtuals>;
|
|
19
19
|
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
20
|
-
type ISchema = Schema<IDocType, IModel,
|
|
20
|
+
type ISchema = Schema<IDocType, IModel, Record<string, never>, Record<string, never>, IVirtuals, Record<string, never>, ISchemaDefinition, IDocType>;
|
|
21
21
|
declare const modelName = "AggregateReservation";
|
|
22
22
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
23
23
|
declare function createSchema(): ISchema;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
|
|
2
2
|
import { IVirtuals } from '../virtuals';
|
|
3
3
|
type IDocType = any;
|
|
4
|
-
type IModel = Model<IDocType,
|
|
4
|
+
type IModel = Model<IDocType, Record<string, never>, Record<string, never>, IVirtuals>;
|
|
5
5
|
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
6
|
-
type ISchema = Schema<IDocType, IModel,
|
|
6
|
+
type ISchema = Schema<IDocType, IModel, Record<string, never>, Record<string, never>, IVirtuals, Record<string, never>, ISchemaDefinition, IDocType>;
|
|
7
7
|
declare const modelName = "Aggregation";
|
|
8
8
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
9
9
|
declare function createSchema(): ISchema;
|
|
@@ -4,9 +4,9 @@ import * as factory from '../../../factory';
|
|
|
4
4
|
type IDocType = (factory.assetTransaction.ITransaction<factory.assetTransactionType.CancelReservation> | factory.assetTransaction.ITransaction<factory.assetTransactionType.MoneyTransfer> | factory.assetTransaction.ITransaction<factory.assetTransactionType.Pay> | factory.assetTransaction.ITransaction<factory.assetTransactionType.Refund> | factory.assetTransaction.ITransaction<factory.assetTransactionType.RegisterService> | factory.assetTransaction.ITransaction<factory.assetTransactionType.Reserve>) & {
|
|
5
5
|
seller?: any;
|
|
6
6
|
};
|
|
7
|
-
type IModel = Model<IDocType,
|
|
7
|
+
type IModel = Model<IDocType, Record<string, never>, Record<string, never>, IVirtuals>;
|
|
8
8
|
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
9
|
-
type ISchema = Schema<IDocType, IModel,
|
|
9
|
+
type ISchema = Schema<IDocType, IModel, Record<string, never>, Record<string, never>, IVirtuals, Record<string, never>, ISchemaDefinition, IDocType>;
|
|
10
10
|
declare const modelName = "AssetTransaction";
|
|
11
11
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
12
12
|
declare function createSchema(): ISchema;
|
|
@@ -2,9 +2,9 @@ import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from '
|
|
|
2
2
|
import { IVirtuals } from '../virtuals';
|
|
3
3
|
import * as factory from '../../../factory';
|
|
4
4
|
type IDocType = Omit<factory.authorization.IAuthorization, 'id'>;
|
|
5
|
-
type IModel = Model<IDocType,
|
|
5
|
+
type IModel = Model<IDocType, Record<string, never>, Record<string, never>, IVirtuals>;
|
|
6
6
|
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
7
|
-
type ISchema = Schema<IDocType, IModel,
|
|
7
|
+
type ISchema = Schema<IDocType, IModel, Record<string, never>, Record<string, never>, IVirtuals, Record<string, never>, ISchemaDefinition, IDocType>;
|
|
8
8
|
declare const modelName = "Authorization";
|
|
9
9
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
10
10
|
declare function createSchema(): ISchema;
|
|
@@ -2,9 +2,9 @@ import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from '
|
|
|
2
2
|
import { IVirtuals } from '../virtuals';
|
|
3
3
|
import * as factory from '../../../factory';
|
|
4
4
|
type IDocType = Omit<factory.categoryCode.ICategoryCode, 'id'>;
|
|
5
|
-
type IModel = Model<IDocType,
|
|
5
|
+
type IModel = Model<IDocType, Record<string, never>, Record<string, never>, IVirtuals>;
|
|
6
6
|
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
7
|
-
type ISchema = Schema<IDocType, IModel,
|
|
7
|
+
type ISchema = Schema<IDocType, IModel, Record<string, never>, Record<string, never>, IVirtuals, Record<string, never>, ISchemaDefinition, IDocType>;
|
|
8
8
|
declare const modelName = "CategoryCode";
|
|
9
9
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
10
10
|
declare function createSchema(): ISchema;
|
|
@@ -4,9 +4,9 @@ import * as factory from '../../../factory';
|
|
|
4
4
|
export type IDocType = Omit<factory.place.movieTheater.IPlace, 'id'> & {
|
|
5
5
|
hasPOS?: factory.place.movieTheater.IPOS[];
|
|
6
6
|
};
|
|
7
|
-
type IModel = Model<IDocType,
|
|
7
|
+
type IModel = Model<IDocType, Record<string, never>, Record<string, never>, IVirtuals>;
|
|
8
8
|
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
9
|
-
type ISchema = Schema<IDocType, IModel,
|
|
9
|
+
type ISchema = Schema<IDocType, IModel, Record<string, never>, Record<string, never>, IVirtuals, Record<string, never>, ISchemaDefinition, IDocType>;
|
|
10
10
|
declare const modelName = "CivicStructure";
|
|
11
11
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
12
12
|
declare function createSchema(): ISchema;
|
|
@@ -2,9 +2,9 @@ import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from '
|
|
|
2
2
|
import { IVirtuals } from '../virtuals';
|
|
3
3
|
import * as factory from '../../../factory';
|
|
4
4
|
type IDocType = factory.creativeWork.comment.IComment;
|
|
5
|
-
type IModel = Model<IDocType,
|
|
5
|
+
type IModel = Model<IDocType, Record<string, never>, Record<string, never>, IVirtuals>;
|
|
6
6
|
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
7
|
-
type ISchema = Schema<IDocType, IModel,
|
|
7
|
+
type ISchema = Schema<IDocType, IModel, Record<string, never>, Record<string, never>, IVirtuals, Record<string, never>, ISchemaDefinition, IDocType>;
|
|
8
8
|
declare const modelName = "Comment";
|
|
9
9
|
declare function createSchema(): ISchema;
|
|
10
10
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
@@ -4,9 +4,9 @@ import * as factory from '../../../factory';
|
|
|
4
4
|
type IDocType = Omit<factory.creativeWork.movie.ICreativeWork, 'id'> & {
|
|
5
5
|
description?: string;
|
|
6
6
|
};
|
|
7
|
-
type IModel = Model<IDocType,
|
|
7
|
+
type IModel = Model<IDocType, Record<string, never>, Record<string, never>, IVirtuals>;
|
|
8
8
|
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
9
|
-
type ISchema = Schema<IDocType, IModel,
|
|
9
|
+
type ISchema = Schema<IDocType, IModel, Record<string, never>, Record<string, never>, IVirtuals, Record<string, never>, ISchemaDefinition, IDocType>;
|
|
10
10
|
declare const modelName = "CreativeWork";
|
|
11
11
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
12
12
|
declare function createSchema(): ISchema;
|
|
@@ -2,9 +2,9 @@ import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from '
|
|
|
2
2
|
import { IVirtuals } from '../virtuals';
|
|
3
3
|
import * as factory from '../../../factory';
|
|
4
4
|
type IDocType = Omit<factory.customer.ICustomer, 'id'>;
|
|
5
|
-
type IModel = Model<IDocType,
|
|
5
|
+
type IModel = Model<IDocType, Record<string, never>, Record<string, never>, IVirtuals>;
|
|
6
6
|
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
7
|
-
type ISchema = Schema<IDocType, IModel,
|
|
7
|
+
type ISchema = Schema<IDocType, IModel, Record<string, never>, Record<string, never>, IVirtuals, Record<string, never>, ISchemaDefinition, IDocType>;
|
|
8
8
|
declare const modelName = "Customer";
|
|
9
9
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
10
10
|
declare function createSchema(): ISchema;
|