@chevre/domain 22.2.0-alpha.9 → 22.3.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +45 -5
- 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/eventServiceByCOA/validateAcceptedOffers.js +38 -17
- 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,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.account.transaction.ITransaction<factory.account.transactionType>;
|
|
4
|
+
type IModel = Model<IDocType>;
|
|
5
|
+
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
6
|
+
type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
|
|
2
7
|
declare const modelName = "AccountTransaction";
|
|
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,24 @@
|
|
|
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 IOrder4report = factory.report.accountingReport.IOrderAsMainEntity;
|
|
4
|
+
export interface IChildReport {
|
|
5
|
+
typeOf: 'Report';
|
|
6
|
+
mainEntity: factory.report.accountingReport.IAction;
|
|
7
|
+
}
|
|
8
|
+
export interface IAccountingReport {
|
|
9
|
+
project: {
|
|
10
|
+
id: string;
|
|
11
|
+
typeOf: factory.organizationType.Project;
|
|
12
|
+
};
|
|
13
|
+
typeOf: 'Report';
|
|
14
|
+
hasPart: IChildReport[];
|
|
15
|
+
mainEntity: IOrder4report;
|
|
16
|
+
}
|
|
17
|
+
type IDocType = IAccountingReport;
|
|
18
|
+
type IModel = Model<IDocType>;
|
|
19
|
+
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
20
|
+
type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
|
|
2
21
|
declare const modelName = "AccountingReport";
|
|
3
|
-
declare function createSchema():
|
|
22
|
+
declare function createSchema(): ISchema;
|
|
4
23
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
5
|
-
export {
|
|
24
|
+
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.action.IAction<factory.action.IAttributes<factory.actionType, any, any>>, 'id'>;
|
|
4
|
+
type IModel = Model<IDocType>;
|
|
5
|
+
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
6
|
+
type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
|
|
2
7
|
declare const modelName = "Action";
|
|
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,16 @@
|
|
|
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.recipe.IRecipe & {
|
|
4
|
+
recipeFor: {
|
|
5
|
+
id: string;
|
|
6
|
+
};
|
|
7
|
+
dateCreated?: Date;
|
|
8
|
+
dateModified?: Date;
|
|
9
|
+
};
|
|
10
|
+
type IModel = Model<IDocType>;
|
|
11
|
+
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
12
|
+
type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
|
|
2
13
|
declare const modelName = "ActionRecipe";
|
|
3
14
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
4
|
-
declare function createSchema():
|
|
5
|
-
export {
|
|
15
|
+
declare function createSchema(): ISchema;
|
|
16
|
+
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,10 +19,7 @@ const schemaDefinition = {
|
|
|
19
19
|
type: String,
|
|
20
20
|
required: true
|
|
21
21
|
},
|
|
22
|
-
step:
|
|
23
|
-
type: [mongoose_1.SchemaTypes.Mixed],
|
|
24
|
-
required: true
|
|
25
|
-
},
|
|
22
|
+
step: [mongoose_1.SchemaTypes.Mixed],
|
|
26
23
|
recipeFor: {
|
|
27
24
|
type: mongoose_1.SchemaTypes.Mixed,
|
|
28
25
|
required: true
|
|
@@ -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.additionalProperty.IAdditionalProperty;
|
|
4
|
+
type IModel = Model<IDocType>;
|
|
5
|
+
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
6
|
+
type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
|
|
2
7
|
declare const modelName = "AdditionalProperty";
|
|
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");
|
|
@@ -45,17 +45,6 @@ const schemaOptions = {
|
|
|
45
45
|
versionKey: false
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
|
-
/**
|
|
49
|
-
* 追加特性スキーマ
|
|
50
|
-
*/
|
|
51
|
-
let schema;
|
|
52
|
-
function createSchema() {
|
|
53
|
-
if (schema === undefined) {
|
|
54
|
-
schema = new mongoose_1.Schema(schemaDefinition, schemaOptions);
|
|
55
|
-
}
|
|
56
|
-
return schema;
|
|
57
|
-
}
|
|
58
|
-
exports.createSchema = createSchema;
|
|
59
48
|
const indexes = [
|
|
60
49
|
[
|
|
61
50
|
{ createdAt: 1 },
|
|
@@ -104,3 +93,14 @@ const indexes = [
|
|
|
104
93
|
]
|
|
105
94
|
];
|
|
106
95
|
exports.indexes = indexes;
|
|
96
|
+
/**
|
|
97
|
+
* 追加特性スキーマ
|
|
98
|
+
*/
|
|
99
|
+
let schema;
|
|
100
|
+
function createSchema() {
|
|
101
|
+
if (schema === undefined) {
|
|
102
|
+
schema = new mongoose_1.Schema(schemaDefinition, schemaOptions);
|
|
103
|
+
}
|
|
104
|
+
return schema;
|
|
105
|
+
}
|
|
106
|
+
exports.createSchema = createSchema;
|
|
@@ -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 interface IDocType extends factory.aggregateOffer.IAggregateOffer {
|
|
4
|
+
_id: string;
|
|
5
|
+
includedInDataCatalog?: any[];
|
|
6
|
+
}
|
|
7
|
+
type IModel = Model<IDocType>;
|
|
8
|
+
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
9
|
+
type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
|
|
2
10
|
declare const modelName = "AggregateOffer";
|
|
3
11
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
4
|
-
declare function createSchema():
|
|
5
|
-
export {
|
|
12
|
+
declare function createSchema(): ISchema;
|
|
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,24 @@
|
|
|
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 IAggregateReservation {
|
|
4
|
+
project: {
|
|
5
|
+
id: string;
|
|
6
|
+
typeOf: factory.organizationType.Project;
|
|
7
|
+
};
|
|
8
|
+
typeOf: 'AggregateReservation';
|
|
9
|
+
reservationFor: {
|
|
10
|
+
id: string;
|
|
11
|
+
typeOf: factory.eventType;
|
|
12
|
+
startDate: Date;
|
|
13
|
+
};
|
|
14
|
+
aggregateEntranceGate?: factory.event.event.IAggregateEntranceGate;
|
|
15
|
+
aggregateOffer?: factory.event.event.IAggregateOffer;
|
|
16
|
+
}
|
|
17
|
+
type IDocType = IAggregateReservation;
|
|
18
|
+
type IModel = Model<IDocType>;
|
|
19
|
+
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
20
|
+
type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
|
|
2
21
|
declare const modelName = "AggregateReservation";
|
|
3
22
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
4
|
-
declare function createSchema():
|
|
5
|
-
export {
|
|
23
|
+
declare function createSchema(): ISchema;
|
|
24
|
+
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,9 @@
|
|
|
1
|
-
import { IndexDefinition, IndexOptions, Schema } from 'mongoose';
|
|
1
|
+
import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
|
|
2
|
+
type IDocType = any;
|
|
3
|
+
type IModel = Model<IDocType>;
|
|
4
|
+
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
5
|
+
type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
|
|
2
6
|
declare const modelName = "Aggregation";
|
|
3
7
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
4
|
-
declare function createSchema():
|
|
5
|
-
export {
|
|
8
|
+
declare function createSchema(): ISchema;
|
|
9
|
+
export { createSchema, IModel, indexes, modelName };
|
|
@@ -1,8 +1,9 @@
|
|
|
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
|
+
// import * as factory from '../../../factory';
|
|
6
7
|
const settings_1 = require("../../../settings");
|
|
7
8
|
const modelName = 'Aggregation';
|
|
8
9
|
exports.modelName = modelName;
|
|
@@ -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.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>) & {
|
|
4
|
+
seller?: any;
|
|
5
|
+
};
|
|
6
|
+
type IModel = Model<IDocType>;
|
|
7
|
+
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
8
|
+
type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
|
|
2
9
|
declare const modelName = "AssetTransaction";
|
|
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,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.authorization.IAuthorization, 'id'>;
|
|
4
|
+
type IModel = Model<IDocType>;
|
|
5
|
+
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
6
|
+
type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
|
|
2
7
|
declare const modelName = "Authorization";
|
|
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,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.categoryCode.ICategoryCode;
|
|
4
|
+
type IModel = Model<IDocType>;
|
|
5
|
+
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
6
|
+
type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
|
|
2
7
|
declare const modelName = "CategoryCode";
|
|
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
|
inCodeSet: mongoose_1.SchemaTypes.Mixed,
|
|
23
23
|
name: mongoose_1.SchemaTypes.Mixed,
|
|
24
24
|
paymentMethod: mongoose_1.SchemaTypes.Mixed
|
|
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
|
{ codeValue: 1 },
|
|
74
56
|
{
|
|
@@ -128,3 +110,19 @@ const indexes = [
|
|
|
128
110
|
]
|
|
129
111
|
];
|
|
130
112
|
exports.indexes = indexes;
|
|
113
|
+
/**
|
|
114
|
+
* 区分スキーマ
|
|
115
|
+
*/
|
|
116
|
+
let schema;
|
|
117
|
+
function createSchema() {
|
|
118
|
+
if (schema === undefined) {
|
|
119
|
+
schema = new mongoose_1.Schema(schemaDefinition, schemaOptions);
|
|
120
|
+
if (settings_1.MONGO_AUTO_INDEX) {
|
|
121
|
+
indexes.forEach((indexParams) => {
|
|
122
|
+
schema === null || schema === void 0 ? void 0 : schema.index(...indexParams);
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
return schema;
|
|
127
|
+
}
|
|
128
|
+
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.creativeWork.comment.IComment;
|
|
4
|
+
type IModel = Model<IDocType>;
|
|
5
|
+
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
6
|
+
type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
|
|
2
7
|
declare const modelName = "Comment";
|
|
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 = factory.creativeWork.movie.ICreativeWork & {
|
|
4
|
+
description?: 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 = "CreativeWork";
|
|
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");
|
|
@@ -18,7 +18,7 @@ const schemaDefinition = {
|
|
|
18
18
|
alternativeHeadline: String,
|
|
19
19
|
description: String,
|
|
20
20
|
// copyrightHolder: SchemaTypes.Mixed,
|
|
21
|
-
copyrightYear: Number,
|
|
21
|
+
// copyrightYear: Number,
|
|
22
22
|
datePublished: Date,
|
|
23
23
|
distributor: mongoose_1.SchemaTypes.Mixed,
|
|
24
24
|
headline: String,
|
|
@@ -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.customer.ICustomer;
|
|
4
|
+
type IModel = Model<IDocType>;
|
|
5
|
+
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
6
|
+
type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
|
|
2
7
|
declare const modelName = "Customer";
|
|
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,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 ICustomerType = Pick<factory.categoryCode.ICategoryCode, 'codeValue' | 'id' | 'name' | 'typeOf'>;
|
|
4
|
+
type IDocType = ICustomerType;
|
|
5
|
+
type IModel = Model<IDocType>;
|
|
6
|
+
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
7
|
+
type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
|
|
2
8
|
declare const modelName = "CustomerType";
|
|
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 = factory.creativeWork.message.email.ICreativeWork;
|
|
4
|
+
type IModel = Model<IDocType>;
|
|
5
|
+
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
6
|
+
type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
|
|
2
7
|
declare const modelName = "EmailMessage";
|
|
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,21 @@
|
|
|
1
|
-
import { IndexDefinition, IndexOptions, Schema } from 'mongoose';
|
|
1
|
+
import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
|
|
2
|
+
import * as factory from '../../../factory';
|
|
3
|
+
type IDocTypeAsEvent = factory.event.IAttributes<factory.eventType.Event> & {
|
|
4
|
+
_id: string;
|
|
5
|
+
};
|
|
6
|
+
type IDocTypeAsScreeningEvent = factory.event.IAttributes<factory.eventType.ScreeningEvent> & {
|
|
7
|
+
_id: string;
|
|
8
|
+
alternateName?: any;
|
|
9
|
+
aggregateOffer?: factory.event.event.IAggregateOffer;
|
|
10
|
+
};
|
|
11
|
+
type IDocTypeAsEventSeries = factory.event.IAttributes<factory.eventType.ScreeningEventSeries> & {
|
|
12
|
+
_id: string;
|
|
13
|
+
};
|
|
14
|
+
export type IDocType = IDocTypeAsEvent | IDocTypeAsScreeningEvent | IDocTypeAsEventSeries;
|
|
15
|
+
type IModel = Model<IDocType>;
|
|
16
|
+
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
17
|
+
type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
|
|
2
18
|
declare const modelName = "Event";
|
|
3
19
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
4
|
-
declare function createSchema():
|
|
5
|
-
export {
|
|
20
|
+
declare function createSchema(): ISchema;
|
|
21
|
+
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 factory = require("../../../factory");
|
|
@@ -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.iam.IMember;
|
|
4
|
+
type IModel = Model<IDocType>;
|
|
5
|
+
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
6
|
+
type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
|
|
2
7
|
declare const modelName = "Member";
|
|
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,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.unitPriceOffer.IOfferMerchantReturnPolicy;
|
|
4
|
+
type IModel = Model<IDocType>;
|
|
5
|
+
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
6
|
+
type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
|
|
2
7
|
declare const modelName = "MerchantReturnPolicy";
|
|
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");
|