@chevre/domain 22.2.0-alpha.9 → 22.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/example/src/chevre/createProject.ts +19 -0
- package/example/src/chevre/findValidAuthorization.ts +1 -2
- package/example/src/chevre/migrateDeleteTransactionTasks.ts +1 -1
- package/example/src/chevre/{migrateMovieTheaterAdditionalProperties.ts → migrateRoomAdditionalProperties.ts} +17 -17
- package/example/src/chevre/migrateRoomSectionAdditionalProperties.ts +119 -0
- package/example/src/chevre/playAroundTicket.ts +3 -2
- package/example/src/chevre/processAction.ts +3 -1
- package/example/src/chevre/projectFields.ts +42 -0
- package/example/src/chevre/{projectEventFieldsById.ts → projectFieldsById.ts} +7 -12
- package/example/src/chevre/searchActionsByPurpose.ts +38 -0
- package/example/src/chevre/searchProjects.ts +9 -4
- package/example/src/chevre/searchSellersByAggregate.ts +3 -3
- package/example/src/chevre/searchTransactions.ts +1 -1
- package/example/src/chevre/unsetUnnecessaryFields.ts +2 -41
- package/lib/chevre/repo/accountTitle.d.ts +9 -3
- package/lib/chevre/repo/accountingReport.d.ts +2 -15
- package/lib/chevre/repo/action.d.ts +110 -47
- package/lib/chevre/repo/action.js +170 -133
- package/lib/chevre/repo/aggregateReservation.d.ts +1 -14
- package/lib/chevre/repo/assetTransaction.d.ts +134 -7
- package/lib/chevre/repo/assetTransaction.js +2 -2
- package/lib/chevre/repo/categoryCode.d.ts +14 -2
- package/lib/chevre/repo/categoryCode.js +47 -19
- package/lib/chevre/repo/comment.d.ts +5 -1
- package/lib/chevre/repo/creativeWork.d.ts +14 -2
- package/lib/chevre/repo/customer.d.ts +5 -1
- package/lib/chevre/repo/customerType.d.ts +1 -1
- package/lib/chevre/repo/event.d.ts +49 -2
- package/lib/chevre/repo/member.d.ts +5 -1
- package/lib/chevre/repo/merchantReturnPolicy.d.ts +22 -2
- package/lib/chevre/repo/message.d.ts +1 -15
- package/lib/chevre/repo/mongoose/schemas/account.d.ts +8 -3
- package/lib/chevre/repo/mongoose/schemas/account.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/accountTitle.d.ts +8 -3
- package/lib/chevre/repo/mongoose/schemas/accountTitle.js +2 -2
- package/lib/chevre/repo/mongoose/schemas/accountTransaction.d.ts +8 -3
- package/lib/chevre/repo/mongoose/schemas/accountTransaction.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/accountingReport.d.ts +22 -3
- package/lib/chevre/repo/mongoose/schemas/accountingReport.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/action.d.ts +8 -3
- package/lib/chevre/repo/mongoose/schemas/action.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/actionRecipe.d.ts +14 -3
- package/lib/chevre/repo/mongoose/schemas/actionRecipe.js +2 -5
- package/lib/chevre/repo/mongoose/schemas/additionalProperty.d.ts +8 -3
- package/lib/chevre/repo/mongoose/schemas/additionalProperty.js +12 -12
- package/lib/chevre/repo/mongoose/schemas/aggregateOffer.d.ts +11 -3
- package/lib/chevre/repo/mongoose/schemas/aggregateOffer.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/aggregateReservation.d.ts +22 -3
- package/lib/chevre/repo/mongoose/schemas/aggregateReservation.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/aggregation.d.ts +7 -3
- package/lib/chevre/repo/mongoose/schemas/aggregation.js +2 -1
- package/lib/chevre/repo/mongoose/schemas/assetTransaction.d.ts +10 -3
- package/lib/chevre/repo/mongoose/schemas/assetTransaction.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/authorization.d.ts +8 -3
- package/lib/chevre/repo/mongoose/schemas/authorization.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/categoryCode.d.ts +8 -3
- package/lib/chevre/repo/mongoose/schemas/categoryCode.js +22 -24
- package/lib/chevre/repo/mongoose/schemas/comments.d.ts +8 -3
- package/lib/chevre/repo/mongoose/schemas/comments.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/creativeWork.d.ts +10 -3
- package/lib/chevre/repo/mongoose/schemas/creativeWork.js +2 -2
- package/lib/chevre/repo/mongoose/schemas/customer.d.ts +8 -3
- package/lib/chevre/repo/mongoose/schemas/customer.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/customerType.d.ts +9 -3
- package/lib/chevre/repo/mongoose/schemas/customerType.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/emailMessages.d.ts +8 -3
- package/lib/chevre/repo/mongoose/schemas/emailMessages.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/event.d.ts +19 -3
- package/lib/chevre/repo/mongoose/schemas/event.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/member.d.ts +8 -3
- package/lib/chevre/repo/mongoose/schemas/member.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/merchantReturnPolicy.d.ts +8 -3
- package/lib/chevre/repo/mongoose/schemas/merchantReturnPolicy.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/message.d.ts +23 -3
- package/lib/chevre/repo/mongoose/schemas/message.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/note.d.ts +8 -3
- package/lib/chevre/repo/mongoose/schemas/note.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/offerCatalog.d.ts +12 -3
- package/lib/chevre/repo/mongoose/schemas/offerCatalog.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/offerCatalogItem.d.ts +12 -3
- package/lib/chevre/repo/mongoose/schemas/offerCatalogItem.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/offerItemCondition.d.ts +8 -3
- package/lib/chevre/repo/mongoose/schemas/offerItemCondition.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/order.d.ts +10 -3
- package/lib/chevre/repo/mongoose/schemas/order.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/ownershipInfo.d.ts +10 -3
- package/lib/chevre/repo/mongoose/schemas/ownershipInfo.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/paymentService.d.ts +10 -3
- package/lib/chevre/repo/mongoose/schemas/paymentService.js +13 -4
- package/lib/chevre/repo/mongoose/schemas/place.d.ts +16 -3
- package/lib/chevre/repo/mongoose/schemas/place.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/priceSpecification.d.ts +11 -3
- package/lib/chevre/repo/mongoose/schemas/priceSpecification.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/product.d.ts +12 -3
- package/lib/chevre/repo/mongoose/schemas/product.js +6 -13
- package/lib/chevre/repo/mongoose/schemas/productModel.d.ts +30 -3
- package/lib/chevre/repo/mongoose/schemas/productModel.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/project.d.ts +12 -3
- package/lib/chevre/repo/mongoose/schemas/project.js +3 -3
- package/lib/chevre/repo/mongoose/schemas/reservation.d.ts +12 -3
- package/lib/chevre/repo/mongoose/schemas/reservation.js +5 -5
- package/lib/chevre/repo/mongoose/schemas/role.d.ts +9 -3
- package/lib/chevre/repo/mongoose/schemas/role.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/seller.d.ts +8 -3
- package/lib/chevre/repo/mongoose/schemas/seller.js +22 -24
- package/lib/chevre/repo/mongoose/schemas/serviceOutput.d.ts +8 -3
- package/lib/chevre/repo/mongoose/schemas/serviceOutput.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/task.d.ts +8 -3
- package/lib/chevre/repo/mongoose/schemas/task.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/telemetry.d.ts +7 -3
- package/lib/chevre/repo/mongoose/schemas/telemetry.js +2 -1
- package/lib/chevre/repo/mongoose/schemas/ticket.d.ts +26 -3
- package/lib/chevre/repo/mongoose/schemas/ticket.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/transaction.d.ts +8 -3
- package/lib/chevre/repo/mongoose/schemas/transaction.js +2 -2
- package/lib/chevre/repo/mongoose/schemas/trip.d.ts +8 -3
- package/lib/chevre/repo/mongoose/schemas/trip.js +3 -3
- package/lib/chevre/repo/offer.d.ts +13 -4
- package/lib/chevre/repo/offerCatalog.d.ts +15 -2
- package/lib/chevre/repo/order.d.ts +13 -1
- package/lib/chevre/repo/ownershipInfo.d.ts +15 -3
- package/lib/chevre/repo/ownershipInfo.js +40 -11
- package/lib/chevre/repo/paymentService.d.ts +2 -2
- package/lib/chevre/repo/paymentService.js +108 -58
- package/lib/chevre/repo/paymentServiceProvider.d.ts +1 -10
- package/lib/chevre/repo/place/movieTheater.d.ts +54 -2
- package/lib/chevre/repo/priceSpecification.d.ts +42 -1
- package/lib/chevre/repo/product.d.ts +8 -3
- package/lib/chevre/repo/product.js +67 -33
- package/lib/chevre/repo/productModel.d.ts +1 -22
- package/lib/chevre/repo/project.d.ts +25 -5
- package/lib/chevre/repo/project.js +69 -28
- package/lib/chevre/repo/reservation.d.ts +35 -3
- package/lib/chevre/repo/reservation.js +1 -1
- package/lib/chevre/repo/role.d.ts +2 -9
- package/lib/chevre/repo/role.js +20 -10
- package/lib/chevre/repo/seller.d.ts +64 -14
- package/lib/chevre/repo/seller.js +61 -27
- package/lib/chevre/repo/task.d.ts +64 -3
- package/lib/chevre/repo/telemetry.d.ts +3 -2
- package/lib/chevre/repo/ticket.d.ts +4 -20
- package/lib/chevre/repo/ticket.js +23 -10
- package/lib/chevre/repo/transaction.d.ts +30 -14
- package/lib/chevre/repo/transaction.js +106 -77
- package/lib/chevre/service/aggregation/event/aggregateScreeningEvent.js +1 -1
- package/lib/chevre/service/aggregation/event/findEventOffers.js +1 -1
- package/lib/chevre/service/aggregation/project.js +1 -1
- package/lib/chevre/service/assetTransaction/cancelReservation.d.ts +1 -1
- package/lib/chevre/service/assetTransaction/cancelReservation.js +2 -2
- package/lib/chevre/service/assetTransaction/moneyTransfer.js +1 -1
- package/lib/chevre/service/assetTransaction/pay/factory.d.ts +1 -1
- package/lib/chevre/service/assetTransaction/pay.js +3 -3
- package/lib/chevre/service/assetTransaction/refund/factory.d.ts +1 -1
- package/lib/chevre/service/assetTransaction/refund.js +3 -3
- package/lib/chevre/service/assetTransaction/registerService.js +4 -6
- package/lib/chevre/service/assetTransaction/reserve/start/createSubReservations.js +9 -11
- package/lib/chevre/service/assetTransaction/reserve/start/factory/createReservation.js +1 -1
- package/lib/chevre/service/assetTransaction/reserve/start.js +1 -3
- package/lib/chevre/service/code.d.ts +0 -4
- package/lib/chevre/service/code.js +22 -18
- package/lib/chevre/service/event.js +4 -4
- package/lib/chevre/service/moneyTransfer.js +3 -5
- package/lib/chevre/service/notification.js +2 -2
- package/lib/chevre/service/offer/event/authorize/factory.d.ts +3 -3
- package/lib/chevre/service/offer/event/authorize/factory.js +16 -2
- package/lib/chevre/service/offer/event/authorize/processStartReserve4chevre/requestedProgramMembershipUsed2permit.js +2 -2
- package/lib/chevre/service/offer/event/authorize/processStartReserve4chevre.d.ts +3 -2
- package/lib/chevre/service/offer/event/authorize.d.ts +4 -2
- package/lib/chevre/service/offer/event/authorize.js +3 -2
- package/lib/chevre/service/offer/event/importFromCOA.js +2 -2
- package/lib/chevre/service/offer/event/searchEventTicketOffers.js +4 -12
- package/lib/chevre/service/offer/event/voidTransaction.js +2 -2
- package/lib/chevre/service/offer/event/voidTransactionByActionId.js +1 -1
- package/lib/chevre/service/offer/eventServiceByCOA/acceptOffer/authorize.d.ts +2 -2
- package/lib/chevre/service/offer/eventServiceByCOA/acceptOffer/authorize.js +41 -4
- package/lib/chevre/service/offer/eventServiceByCOA/acceptOffer/factory.d.ts +3 -3
- package/lib/chevre/service/offer/eventServiceByCOA/acceptOffer.js +3 -3
- package/lib/chevre/service/offer/eventServiceByCOA/authorize.d.ts +7 -3
- package/lib/chevre/service/offer/eventServiceByCOA/authorize.js +10 -5
- package/lib/chevre/service/offer/eventServiceByCOA/authorizeByAcceptAction.d.ts +3 -1
- package/lib/chevre/service/offer/eventServiceByCOA/changeOffers.d.ts +3 -1
- package/lib/chevre/service/offer/eventServiceByCOA/changeOffers.js +14 -6
- package/lib/chevre/service/offer/eventServiceByCOA/factory.d.ts +8 -5
- package/lib/chevre/service/offer/eventServiceByCOA/validateAcceptedOffers.d.ts +1 -1
- package/lib/chevre/service/offer/moneyTransfer/authorize.js +1 -1
- package/lib/chevre/service/offer/moneyTransfer/voidTransaction.js +1 -1
- package/lib/chevre/service/offer/product/searchProductOffers.js +1 -3
- package/lib/chevre/service/offer/product.d.ts +4 -2
- package/lib/chevre/service/offer/product.js +12 -12
- package/lib/chevre/service/order/findPlaceOrderTransaction.js +1 -1
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderCancelled/factory.d.ts +1 -1
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderDeliveredPartially/factory.d.ts +1 -1
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderInTransit.js +1 -1
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderReturned/factory.d.ts +1 -1
- package/lib/chevre/service/order/placeOrder/createPlacingOrderFromExistingTransaction.js +3 -3
- package/lib/chevre/service/order/placeOrder.js +1 -1
- package/lib/chevre/service/order/returnOrder.js +1 -1
- package/lib/chevre/service/payment/any/factory.d.ts +1 -1
- package/lib/chevre/service/payment/any/onPaid.d.ts +1 -1
- package/lib/chevre/service/payment/any/onRefund.d.ts +1 -1
- package/lib/chevre/service/payment/any/verifyTicketTokenAsNeeded.d.ts +1 -4
- package/lib/chevre/service/payment/any/verifyTicketTokenAsNeeded.js +21 -26
- package/lib/chevre/service/payment/any.d.ts +3 -1
- package/lib/chevre/service/payment/any.js +21 -13
- package/lib/chevre/service/payment/creditCard/authorize/processAuthorizeCreditCard.js +1 -1
- package/lib/chevre/service/payment/creditCard/authorize/processAuthorizeCreditCard3ds.js +1 -1
- package/lib/chevre/service/payment/creditCard/payCreditCard.d.ts +1 -2
- package/lib/chevre/service/payment/creditCard/payCreditCard.js +12 -5
- package/lib/chevre/service/payment/creditCard/refundCreditCard.js +13 -3
- package/lib/chevre/service/payment/creditCard/voidTransaction.js +1 -1
- package/lib/chevre/service/payment/faceToFace.d.ts +2 -2
- package/lib/chevre/service/payment/faceToFace.js +28 -10
- package/lib/chevre/service/payment/movieTicket/authorize.d.ts +0 -1
- package/lib/chevre/service/payment/movieTicket/authorize.js +8 -3
- package/lib/chevre/service/payment/movieTicket/payMovieTicket.d.ts +1 -2
- package/lib/chevre/service/payment/movieTicket/payMovieTicket.js +12 -4
- package/lib/chevre/service/payment/movieTicket/refundMovieTicket.js +15 -4
- package/lib/chevre/service/payment/movieTicket/validation.js +1 -1
- package/lib/chevre/service/payment/paymentCard.d.ts +2 -2
- package/lib/chevre/service/payment/paymentCard.js +29 -16
- package/lib/chevre/service/payment.d.ts +1 -1
- package/lib/chevre/service/report/telemetry.js +2 -2
- package/lib/chevre/service/reserve/cancelReservation.js +1 -1
- package/lib/chevre/service/reserve/confirmReservation.js +1 -1
- package/lib/chevre/service/task/onAuthorizationCreated.js +20 -16
- package/lib/chevre/service/task/onResourceUpdated/onResourceDeleted.js +2 -2
- package/lib/chevre/service/task/onResourceUpdated/syncCategoryCode.js +1 -1
- package/lib/chevre/service/task/onResourceUpdated.js +16 -4
- package/lib/chevre/service/task/publishPaymentUrl.js +4 -0
- package/lib/chevre/service/task/returnPayTransaction.js +1 -1
- package/lib/chevre/service/transaction/deleteTransaction.js +2 -2
- package/lib/chevre/service/transaction/moneyTransfer.js +4 -4
- package/lib/chevre/service/transaction/placeOrder/confirm.js +1 -1
- package/lib/chevre/service/transaction/placeOrder/exportTasksById.js +1 -1
- package/lib/chevre/service/transaction/placeOrder/start/validateStartRequest.d.ts +2 -2
- package/lib/chevre/service/transaction/placeOrder/start/validateStartRequest.js +1 -1
- package/lib/chevre/service/transaction/placeOrder/start.js +1 -1
- package/lib/chevre/service/transaction/returnOrder/preStart.d.ts +2 -2
- package/lib/chevre/service/transaction/returnOrder/preStart.js +1 -1
- package/lib/chevre/service/transaction/returnOrder.js +2 -2
- package/lib/chevre/service/transaction.js +1 -1
- package/package.json +4 -4
- package/example/src/chevre/findTransactionById.ts +0 -23
- package/example/src/chevre/findTransactionInProgressById.ts +0 -23
- package/example/src/chevre/migrateTransactionObjectPaymentMethods.ts +0 -154
- package/example/src/chevre/projectReservationFields.ts +0 -31
- package/example/src/chevre/searchActions.ts +0 -40
- package/example/src/chevre/searchProducts.ts +0 -28
|
@@ -1,5 +1,25 @@
|
|
|
1
|
-
import { IndexDefinition, IndexOptions, Schema } from 'mongoose';
|
|
1
|
+
import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
|
|
2
|
+
import * as factory from '../../../factory';
|
|
3
|
+
export type IEmailMessage = factory.creativeWork.message.email.ICreativeWork & {
|
|
4
|
+
datePublished: Date;
|
|
5
|
+
mainEntity: Pick<factory.order.ISimpleOrder, 'orderNumber' | 'typeOf'>;
|
|
6
|
+
project: {
|
|
7
|
+
id: string;
|
|
8
|
+
typeOf: factory.organizationType.Project;
|
|
9
|
+
};
|
|
10
|
+
provider: {
|
|
11
|
+
/**
|
|
12
|
+
* 販売者ID
|
|
13
|
+
*/
|
|
14
|
+
id: string;
|
|
15
|
+
typeOf: factory.organizationType.Corporation;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
type IDocType = IEmailMessage;
|
|
19
|
+
type IModel = Model<IDocType>;
|
|
20
|
+
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
21
|
+
type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
|
|
2
22
|
declare const modelName = "Message";
|
|
3
23
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
4
|
-
declare function createSchema():
|
|
5
|
-
export {
|
|
24
|
+
declare function createSchema(): ISchema;
|
|
25
|
+
export { createSchema, IModel, indexes, modelName };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.modelName = exports.indexes = exports.createSchema = void 0;
|
|
4
4
|
const mongoose_1 = require("mongoose");
|
|
5
5
|
const writeConcern_1 = require("../writeConcern");
|
|
6
6
|
const settings_1 = require("../../../settings");
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
import { IndexDefinition, IndexOptions, Schema } from 'mongoose';
|
|
1
|
+
import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
|
|
2
|
+
import * as factory from '../../../factory';
|
|
3
|
+
type IDocType = factory.creativeWork.noteDigitalDocument.INoteDigitalDocument;
|
|
4
|
+
type IModel = Model<IDocType>;
|
|
5
|
+
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
6
|
+
type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
|
|
2
7
|
declare const modelName = "Note";
|
|
3
8
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
4
|
-
declare function createSchema():
|
|
5
|
-
export {
|
|
9
|
+
declare function createSchema(): ISchema;
|
|
10
|
+
export { createSchema, IModel, indexes, modelName };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.modelName = exports.indexes = exports.createSchema = void 0;
|
|
4
4
|
const mongoose_1 = require("mongoose");
|
|
5
5
|
const writeConcern_1 = require("../writeConcern");
|
|
6
6
|
const settings_1 = require("../../../settings");
|
|
@@ -1,5 +1,14 @@
|
|
|
1
|
-
import { IndexDefinition, IndexOptions, Schema } from 'mongoose';
|
|
1
|
+
import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
|
|
2
|
+
import * as factory from '../../../factory';
|
|
3
|
+
export type IDocType = factory.offerCatalog.IOfferCatalog & {
|
|
4
|
+
_id: string;
|
|
5
|
+
alternateName?: any;
|
|
6
|
+
dateSynced?: Date;
|
|
7
|
+
};
|
|
8
|
+
type IModel = Model<IDocType>;
|
|
9
|
+
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
10
|
+
type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
|
|
2
11
|
declare const modelName = "OfferCatalog";
|
|
3
|
-
declare function createSchema():
|
|
12
|
+
declare function createSchema(): ISchema;
|
|
4
13
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
5
|
-
export {
|
|
14
|
+
export { createSchema, IModel, indexes, modelName };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.modelName = exports.indexes = exports.createSchema = void 0;
|
|
4
4
|
const mongoose_1 = require("mongoose");
|
|
5
5
|
const writeConcern_1 = require("../writeConcern");
|
|
6
6
|
const settings_1 = require("../../../settings");
|
|
@@ -1,5 +1,14 @@
|
|
|
1
|
-
import { IndexDefinition, IndexOptions, Schema } from 'mongoose';
|
|
1
|
+
import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
|
|
2
|
+
import * as factory from '../../../factory';
|
|
3
|
+
export type IDocType = factory.offerCatalog.IOfferCatalog & {
|
|
4
|
+
_id: string;
|
|
5
|
+
alternateName?: any;
|
|
6
|
+
dateSynced?: Date;
|
|
7
|
+
};
|
|
8
|
+
type IModel = Model<IDocType>;
|
|
9
|
+
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
10
|
+
type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
|
|
2
11
|
declare const modelName = "OfferCatalogItem";
|
|
3
|
-
declare function createSchema():
|
|
12
|
+
declare function createSchema(): ISchema;
|
|
4
13
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
5
|
-
export {
|
|
14
|
+
export { createSchema, IModel, indexes, modelName };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.modelName = exports.indexes = exports.createSchema = void 0;
|
|
4
4
|
const mongoose_1 = require("mongoose");
|
|
5
5
|
const writeConcern_1 = require("../writeConcern");
|
|
6
6
|
const settings_1 = require("../../../settings");
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
import { IndexDefinition, IndexOptions, Schema } from 'mongoose';
|
|
1
|
+
import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
|
|
2
|
+
import * as factory from '../../../factory';
|
|
3
|
+
type IDocType = factory.offerItemCondition.IOfferItemCondition;
|
|
4
|
+
type IModel = Model<IDocType>;
|
|
5
|
+
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
6
|
+
type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
|
|
2
7
|
declare const modelName = "OfferItemCondition";
|
|
3
|
-
declare function createSchema():
|
|
8
|
+
declare function createSchema(): ISchema;
|
|
4
9
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
5
|
-
export {
|
|
10
|
+
export { createSchema, IModel, indexes, modelName };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.modelName = exports.indexes = exports.createSchema = void 0;
|
|
4
4
|
const mongoose_1 = require("mongoose");
|
|
5
5
|
const writeConcern_1 = require("../writeConcern");
|
|
6
6
|
const settings_1 = require("../../../settings");
|
|
@@ -1,5 +1,12 @@
|
|
|
1
|
-
import { IndexDefinition, IndexOptions, Schema } from 'mongoose';
|
|
1
|
+
import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
|
|
2
|
+
import * as factory from '../../../factory';
|
|
3
|
+
type IDocType = Omit<factory.order.IOrder, 'id'> & {
|
|
4
|
+
acceptedOffers?: factory.order.IAcceptedOffer<factory.order.IItemOffered>[];
|
|
5
|
+
};
|
|
6
|
+
type IModel = Model<IDocType>;
|
|
7
|
+
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
8
|
+
type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
|
|
2
9
|
declare const modelName = "Order";
|
|
3
10
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
4
|
-
declare function createSchema():
|
|
5
|
-
export {
|
|
11
|
+
declare function createSchema(): ISchema;
|
|
12
|
+
export { createSchema, IModel, indexes, modelName };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.modelName = exports.indexes = exports.createSchema = void 0;
|
|
4
4
|
const mongoose_1 = require("mongoose");
|
|
5
5
|
const writeConcern_1 = require("../writeConcern");
|
|
6
6
|
const settings_1 = require("../../../settings");
|
|
@@ -1,5 +1,12 @@
|
|
|
1
|
-
import { IndexDefinition, IndexOptions, Schema } from 'mongoose';
|
|
1
|
+
import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
|
|
2
|
+
import * as factory from '../../../factory';
|
|
3
|
+
type IDocType = factory.ownershipInfo.IOwnershipInfo<factory.ownershipInfo.IGood> & {
|
|
4
|
+
_id: string;
|
|
5
|
+
};
|
|
6
|
+
type IModel = Model<IDocType>;
|
|
7
|
+
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
8
|
+
type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
|
|
2
9
|
declare const modelName = "OwnershipInfo";
|
|
3
|
-
declare function createSchema():
|
|
10
|
+
declare function createSchema(): ISchema;
|
|
4
11
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
5
|
-
export {
|
|
12
|
+
export { createSchema, IModel, indexes, modelName };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.modelName = exports.indexes = exports.createSchema = void 0;
|
|
4
4
|
const mongoose_1 = require("mongoose");
|
|
5
5
|
const writeConcern_1 = require("../writeConcern");
|
|
6
6
|
const settings_1 = require("../../../settings");
|
|
@@ -1,5 +1,12 @@
|
|
|
1
|
-
import { IndexDefinition, IndexOptions, Schema } from 'mongoose';
|
|
1
|
+
import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
|
|
2
|
+
import * as factory from '../../../factory';
|
|
3
|
+
type IDocType = Omit<factory.service.paymentService.IService, 'id'> & {
|
|
4
|
+
provider?: factory.service.paymentService.IProvider[];
|
|
5
|
+
};
|
|
6
|
+
type IModel = Model<IDocType>;
|
|
7
|
+
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
8
|
+
type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
|
|
2
9
|
declare const modelName = "PaymentService";
|
|
3
10
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
4
|
-
declare function createSchema():
|
|
5
|
-
export {
|
|
11
|
+
declare function createSchema(): ISchema;
|
|
12
|
+
export { createSchema, IModel, indexes, modelName };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.modelName = exports.indexes = exports.createSchema = void 0;
|
|
4
4
|
const mongoose_1 = require("mongoose");
|
|
5
5
|
const writeConcern_1 = require("../writeConcern");
|
|
6
6
|
const settings_1 = require("../../../settings");
|
|
@@ -69,11 +69,20 @@ const indexes = [
|
|
|
69
69
|
}
|
|
70
70
|
],
|
|
71
71
|
[
|
|
72
|
-
{ 'serviceOutput.amount.currency': 1, productID: 1 },
|
|
72
|
+
{ 'serviceOutput.paymentMethod.amount.currency': 1, productID: 1 },
|
|
73
73
|
{
|
|
74
|
-
name: '
|
|
74
|
+
name: 'searchByServiceOutputPaymentMethodAmountCurrency',
|
|
75
75
|
partialFilterExpression: {
|
|
76
|
-
'serviceOutput.amount.currency': { $exists: true }
|
|
76
|
+
'serviceOutput.paymentMethod.amount.currency': { $exists: true }
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
],
|
|
80
|
+
[
|
|
81
|
+
{ 'serviceOutput.issuedThrough.serviceType.codeValue': 1, productID: 1 },
|
|
82
|
+
{
|
|
83
|
+
name: 'searchByServiceOutputIssuedThroughServiceType',
|
|
84
|
+
partialFilterExpression: {
|
|
85
|
+
'serviceOutput.issuedThrough.serviceType.codeValue': { $exists: true }
|
|
77
86
|
}
|
|
78
87
|
}
|
|
79
88
|
],
|
|
@@ -1,5 +1,18 @@
|
|
|
1
|
-
import { IndexDefinition, IndexOptions, Schema } from 'mongoose';
|
|
1
|
+
import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
|
|
2
|
+
import * as factory from '../../../factory';
|
|
3
|
+
type IDocType = ((factory.place.movieTheater.IPlace & {
|
|
4
|
+
hasPOS?: factory.place.movieTheater.IPOS[];
|
|
5
|
+
}) | factory.place.screeningRoom.IPlace) & {
|
|
6
|
+
alternateName?: any;
|
|
7
|
+
description?: any;
|
|
8
|
+
openingHoursSpecification?: any;
|
|
9
|
+
smokingAllowed?: boolean;
|
|
10
|
+
sameAs?: any;
|
|
11
|
+
};
|
|
12
|
+
type IModel = Model<IDocType>;
|
|
13
|
+
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
14
|
+
type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
|
|
2
15
|
declare const modelName = "Place";
|
|
3
|
-
declare function createSchema():
|
|
16
|
+
declare function createSchema(): ISchema;
|
|
4
17
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
5
|
-
export {
|
|
18
|
+
export { createSchema, IModel, indexes, modelName };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.modelName = exports.indexes = exports.createSchema = void 0;
|
|
4
4
|
const mongoose_1 = require("mongoose");
|
|
5
5
|
const writeConcern_1 = require("../writeConcern");
|
|
6
6
|
const settings_1 = require("../../../settings");
|
|
@@ -1,5 +1,13 @@
|
|
|
1
|
-
import { IndexDefinition, IndexOptions, Schema } from 'mongoose';
|
|
1
|
+
import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
|
|
2
|
+
import * as factory from '../../../factory';
|
|
3
|
+
export type IDocType = factory.priceSpecification.IPriceSpecification<factory.priceSpecificationType> & {
|
|
4
|
+
validFrom?: Date;
|
|
5
|
+
validThrough?: Date;
|
|
6
|
+
};
|
|
7
|
+
type IModel = Model<IDocType>;
|
|
8
|
+
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
9
|
+
type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
|
|
2
10
|
declare const modelName = "PriceSpecification";
|
|
3
|
-
declare function createSchema():
|
|
11
|
+
declare function createSchema(): ISchema;
|
|
4
12
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
5
|
-
export {
|
|
13
|
+
export { createSchema, IModel, indexes, modelName };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.modelName = exports.indexes = exports.createSchema = void 0;
|
|
4
4
|
const mongoose_1 = require("mongoose");
|
|
5
5
|
const writeConcern_1 = require("../writeConcern");
|
|
6
6
|
const settings_1 = require("../../../settings");
|
|
@@ -1,5 +1,14 @@
|
|
|
1
|
-
import { IndexDefinition, IndexOptions, Schema } from 'mongoose';
|
|
1
|
+
import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
|
|
2
|
+
import * as factory from '../../../factory';
|
|
3
|
+
export type IDocTypeAsProduct = Omit<factory.product.IProduct, 'id'>;
|
|
4
|
+
export interface IDocTypeAsProductOffer {
|
|
5
|
+
offers?: factory.product.IOffer[];
|
|
6
|
+
}
|
|
7
|
+
type IDocType = IDocTypeAsProduct & IDocTypeAsProductOffer;
|
|
8
|
+
type IModel = Model<IDocType>;
|
|
9
|
+
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
10
|
+
type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
|
|
2
11
|
declare const modelName = "Product";
|
|
3
12
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
4
|
-
declare function createSchema():
|
|
5
|
-
export {
|
|
13
|
+
declare function createSchema(): ISchema;
|
|
14
|
+
export { createSchema, IModel, indexes, modelName };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.modelName = exports.indexes = exports.createSchema = void 0;
|
|
4
4
|
const mongoose_1 = require("mongoose");
|
|
5
5
|
const writeConcern_1 = require("../writeConcern");
|
|
6
6
|
const settings_1 = require("../../../settings");
|
|
@@ -19,6 +19,9 @@ const schemaDefinition = {
|
|
|
19
19
|
// provider: [SchemaTypes.Mixed], // 廃止(2024-04-12~)
|
|
20
20
|
serviceOutput: mongoose_1.SchemaTypes.Mixed,
|
|
21
21
|
serviceType: mongoose_1.SchemaTypes.Mixed
|
|
22
|
+
// createdAt: SchemaTypes.Mixed,
|
|
23
|
+
// updatedAt: SchemaTypes.Mixed,
|
|
24
|
+
// __v: SchemaTypes.Mixed
|
|
22
25
|
};
|
|
23
26
|
const schemaOptions = {
|
|
24
27
|
autoIndex: settings_1.MONGO_AUTO_INDEX,
|
|
@@ -29,10 +32,8 @@ const schemaOptions = {
|
|
|
29
32
|
writeConcern: writeConcern_1.writeConcern,
|
|
30
33
|
strict: true,
|
|
31
34
|
strictQuery: false,
|
|
32
|
-
timestamps:
|
|
33
|
-
|
|
34
|
-
updatedAt: 'updatedAt'
|
|
35
|
-
},
|
|
35
|
+
timestamps: false,
|
|
36
|
+
versionKey: false,
|
|
36
37
|
toJSON: {
|
|
37
38
|
getters: false,
|
|
38
39
|
virtuals: false,
|
|
@@ -47,14 +48,6 @@ const schemaOptions = {
|
|
|
47
48
|
}
|
|
48
49
|
};
|
|
49
50
|
const indexes = [
|
|
50
|
-
[
|
|
51
|
-
{ createdAt: 1 },
|
|
52
|
-
{ name: 'searchByCreatedAt' }
|
|
53
|
-
],
|
|
54
|
-
[
|
|
55
|
-
{ updatedAt: 1 },
|
|
56
|
-
{ name: 'searchByUpdatedAt' }
|
|
57
|
-
],
|
|
58
51
|
[
|
|
59
52
|
{ productID: 1 },
|
|
60
53
|
{ name: 'searchByProductID' }
|
|
@@ -1,5 +1,32 @@
|
|
|
1
|
-
import { IndexDefinition, IndexOptions, Schema } from 'mongoose';
|
|
1
|
+
import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
|
|
2
|
+
import * as factory from '../../../factory';
|
|
3
|
+
export interface IProductModel {
|
|
4
|
+
id?: string;
|
|
5
|
+
project: {
|
|
6
|
+
id: string;
|
|
7
|
+
typeOf: factory.organizationType.Project;
|
|
8
|
+
};
|
|
9
|
+
typeOf: 'ProductModel';
|
|
10
|
+
category: Pick<factory.categoryCode.ICategoryCode, 'codeValue' | 'inCodeSet'> & {
|
|
11
|
+
/**
|
|
12
|
+
* 区分ID
|
|
13
|
+
* 削除時同期に必要
|
|
14
|
+
*/
|
|
15
|
+
id: string;
|
|
16
|
+
};
|
|
17
|
+
name: factory.multilingualString;
|
|
18
|
+
offers: {
|
|
19
|
+
typeOf: factory.offerType.Offer;
|
|
20
|
+
eligibleCustomerType?: {
|
|
21
|
+
codeValue: string;
|
|
22
|
+
}[];
|
|
23
|
+
}[];
|
|
24
|
+
}
|
|
25
|
+
type IDocType = IProductModel;
|
|
26
|
+
type IModel = Model<IDocType>;
|
|
27
|
+
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
28
|
+
type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
|
|
2
29
|
declare const modelName = "ProductModel";
|
|
3
30
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
4
|
-
declare function createSchema():
|
|
5
|
-
export {
|
|
31
|
+
declare function createSchema(): ISchema;
|
|
32
|
+
export { createSchema, IModel, indexes, modelName };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.modelName = exports.indexes = exports.createSchema = void 0;
|
|
4
4
|
const mongoose_1 = require("mongoose");
|
|
5
5
|
const writeConcern_1 = require("../writeConcern");
|
|
6
6
|
const settings_1 = require("../../../settings");
|
|
@@ -1,5 +1,14 @@
|
|
|
1
|
-
import { IndexDefinition, IndexOptions, Schema } from 'mongoose';
|
|
1
|
+
import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
|
|
2
|
+
import * as factory from '../../../factory';
|
|
3
|
+
type IDocType = Omit<factory.project.IProject, 'id'> & {
|
|
4
|
+
_id: string;
|
|
5
|
+
aggregateReservation?: any;
|
|
6
|
+
makesOffer?: factory.project.IMakesOffer[];
|
|
7
|
+
};
|
|
8
|
+
type IModel = Model<IDocType>;
|
|
9
|
+
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
10
|
+
type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
|
|
2
11
|
declare const modelName = "Project";
|
|
3
|
-
declare function createSchema(): Schema;
|
|
4
12
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
5
|
-
|
|
13
|
+
declare function createSchema(): ISchema;
|
|
14
|
+
export { createSchema, IModel, indexes, modelName };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.modelName = exports.indexes = exports.createSchema = void 0;
|
|
4
4
|
const mongoose_1 = require("mongoose");
|
|
5
5
|
const writeConcern_1 = require("../writeConcern");
|
|
6
6
|
const settings_1 = require("../../../settings");
|
|
@@ -48,6 +48,8 @@ const schemaOptions = {
|
|
|
48
48
|
versionKey: false
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
|
+
const indexes = [];
|
|
52
|
+
exports.indexes = indexes;
|
|
51
53
|
/**
|
|
52
54
|
* プロジェクトスキーマ
|
|
53
55
|
*/
|
|
@@ -59,5 +61,3 @@ function createSchema() {
|
|
|
59
61
|
return schema;
|
|
60
62
|
}
|
|
61
63
|
exports.createSchema = createSchema;
|
|
62
|
-
const indexes = [];
|
|
63
|
-
exports.indexes = indexes;
|
|
@@ -1,5 +1,14 @@
|
|
|
1
|
-
import { IndexDefinition, IndexOptions, Schema } from 'mongoose';
|
|
1
|
+
import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
|
|
2
|
+
import * as factory from '../../../factory';
|
|
3
|
+
type IDocType = (Omit<factory.reservation.IReservation<factory.reservationType.BusReservation>, 'id'> | Omit<factory.reservation.IReservation<factory.reservationType.EventReservation>, 'id'>) & {
|
|
4
|
+
_id: string;
|
|
5
|
+
bookingAgent?: any;
|
|
6
|
+
previousReservationStatus?: factory.reservationStatusType;
|
|
7
|
+
};
|
|
8
|
+
type IModel = Model<IDocType>;
|
|
9
|
+
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
10
|
+
type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
|
|
2
11
|
declare const modelName = "Reservation";
|
|
3
|
-
declare function createSchema():
|
|
12
|
+
declare function createSchema(): ISchema;
|
|
4
13
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
5
|
-
export {
|
|
14
|
+
export { createSchema, IModel, indexes, modelName };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.modelName = exports.indexes = exports.createSchema = void 0;
|
|
4
4
|
const mongoose_1 = require("mongoose");
|
|
5
5
|
const writeConcern_1 = require("../writeConcern");
|
|
6
6
|
const settings_1 = require("../../../settings");
|
|
@@ -24,11 +24,11 @@ const schemaDefinition = {
|
|
|
24
24
|
bookingAgent: mongoose_1.SchemaTypes.Mixed,
|
|
25
25
|
bookingTime: Date,
|
|
26
26
|
broker: mongoose_1.SchemaTypes.Mixed,
|
|
27
|
-
cancelReservationUrl: String,
|
|
28
|
-
checkinUrl: String,
|
|
29
|
-
confirmReservationUrl: String,
|
|
27
|
+
// cancelReservationUrl: String,
|
|
28
|
+
// checkinUrl: String,
|
|
29
|
+
// confirmReservationUrl: String,
|
|
30
30
|
modifiedTime: Date,
|
|
31
|
-
modifyReservationUrl: String,
|
|
31
|
+
// modifyReservationUrl: String,
|
|
32
32
|
numSeats: Number,
|
|
33
33
|
previousReservationStatus: String,
|
|
34
34
|
price: mongoose_1.SchemaTypes.Mixed,
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
import { IndexDefinition, IndexOptions, Schema } from 'mongoose';
|
|
1
|
+
import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
|
|
2
|
+
import * as factory from '../../../factory';
|
|
3
|
+
export type IRole = Pick<factory.iam.IRole, 'permissions' | 'roleName' | 'typeOf'>;
|
|
4
|
+
type IDocType = IRole;
|
|
5
|
+
type IModel = Model<IDocType>;
|
|
6
|
+
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
7
|
+
type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
|
|
2
8
|
declare const modelName = "Role";
|
|
3
9
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
4
|
-
declare function createSchema():
|
|
5
|
-
export {
|
|
10
|
+
declare function createSchema(): ISchema;
|
|
11
|
+
export { createSchema, IModel, indexes, modelName };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.modelName = exports.indexes = exports.createSchema = void 0;
|
|
4
4
|
const mongoose_1 = require("mongoose");
|
|
5
5
|
const writeConcern_1 = require("../writeConcern");
|
|
6
6
|
const settings_1 = require("../../../settings");
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
import { IndexDefinition, IndexOptions, Schema } from 'mongoose';
|
|
1
|
+
import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
|
|
2
|
+
import * as factory from '../../../factory';
|
|
3
|
+
type IDocType = Omit<factory.seller.ISeller, 'id'>;
|
|
4
|
+
type IModel = Model<IDocType>;
|
|
5
|
+
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
6
|
+
type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
|
|
2
7
|
declare const modelName = "Seller";
|
|
3
|
-
declare function createSchema(): Schema;
|
|
4
8
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
5
|
-
|
|
9
|
+
declare function createSchema(): ISchema;
|
|
10
|
+
export { createSchema, IModel, indexes, modelName };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.modelName = exports.indexes = exports.createSchema = void 0;
|
|
4
4
|
const mongoose_1 = require("mongoose");
|
|
5
5
|
const writeConcern_1 = require("../writeConcern");
|
|
6
6
|
const settings_1 = require("../../../settings");
|
|
@@ -22,6 +22,9 @@ const schemaDefinition = {
|
|
|
22
22
|
},
|
|
23
23
|
url: String,
|
|
24
24
|
telephone: String
|
|
25
|
+
// createdAt: SchemaTypes.Mixed,
|
|
26
|
+
// updatedAt: SchemaTypes.Mixed,
|
|
27
|
+
// __v: SchemaTypes.Mixed
|
|
25
28
|
};
|
|
26
29
|
const schemaOptions = {
|
|
27
30
|
autoIndex: settings_1.MONGO_AUTO_INDEX,
|
|
@@ -32,10 +35,8 @@ const schemaOptions = {
|
|
|
32
35
|
writeConcern: writeConcern_1.writeConcern,
|
|
33
36
|
strict: true,
|
|
34
37
|
strictQuery: false,
|
|
35
|
-
timestamps:
|
|
36
|
-
|
|
37
|
-
updatedAt: 'updatedAt'
|
|
38
|
-
},
|
|
38
|
+
timestamps: false,
|
|
39
|
+
versionKey: false,
|
|
39
40
|
toJSON: {
|
|
40
41
|
getters: false,
|
|
41
42
|
virtuals: false,
|
|
@@ -49,26 +50,7 @@ const schemaOptions = {
|
|
|
49
50
|
versionKey: false
|
|
50
51
|
}
|
|
51
52
|
};
|
|
52
|
-
/**
|
|
53
|
-
* 販売者スキーマ
|
|
54
|
-
*/
|
|
55
|
-
let schema;
|
|
56
|
-
function createSchema() {
|
|
57
|
-
if (schema === undefined) {
|
|
58
|
-
schema = new mongoose_1.Schema(schemaDefinition, schemaOptions);
|
|
59
|
-
}
|
|
60
|
-
return schema;
|
|
61
|
-
}
|
|
62
|
-
exports.createSchema = createSchema;
|
|
63
53
|
const indexes = [
|
|
64
|
-
[
|
|
65
|
-
{ createdAt: 1 },
|
|
66
|
-
{ name: 'searchByCreatedAt' }
|
|
67
|
-
],
|
|
68
|
-
[
|
|
69
|
-
{ updatedAt: 1 },
|
|
70
|
-
{ name: 'searchByUpdatedAt' }
|
|
71
|
-
],
|
|
72
54
|
[
|
|
73
55
|
{ branchCode: 1 },
|
|
74
56
|
{ name: 'searchByBranchCode' }
|
|
@@ -139,3 +121,19 @@ const indexes = [
|
|
|
139
121
|
]
|
|
140
122
|
];
|
|
141
123
|
exports.indexes = indexes;
|
|
124
|
+
/**
|
|
125
|
+
* 販売者スキーマ
|
|
126
|
+
*/
|
|
127
|
+
let schema;
|
|
128
|
+
function createSchema() {
|
|
129
|
+
if (schema === undefined) {
|
|
130
|
+
schema = new mongoose_1.Schema(schemaDefinition, schemaOptions);
|
|
131
|
+
if (settings_1.MONGO_AUTO_INDEX) {
|
|
132
|
+
indexes.forEach((indexParams) => {
|
|
133
|
+
schema === null || schema === void 0 ? void 0 : schema.index(...indexParams);
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
return schema;
|
|
138
|
+
}
|
|
139
|
+
exports.createSchema = createSchema;
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
import { IndexDefinition, IndexOptions, Schema } from 'mongoose';
|
|
1
|
+
import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
|
|
2
|
+
import * as factory from '../../../factory';
|
|
3
|
+
type IDocType = factory.permit.IPermit;
|
|
4
|
+
type IModel = Model<IDocType>;
|
|
5
|
+
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
6
|
+
type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
|
|
2
7
|
declare const modelName = "ServiceOutput";
|
|
3
|
-
declare function createSchema():
|
|
8
|
+
declare function createSchema(): ISchema;
|
|
4
9
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
5
|
-
export {
|
|
10
|
+
export { createSchema, IModel, indexes, modelName };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.modelName = exports.indexes = exports.createSchema = void 0;
|
|
4
4
|
const mongoose_1 = require("mongoose");
|
|
5
5
|
const writeConcern_1 = require("../writeConcern");
|
|
6
6
|
const settings_1 = require("../../../settings");
|