@chevre/domain 21.12.0 → 21.13.0-alpha.1
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/searchEvents.ts +1 -1
- package/example/src/chevre/searchOrders.ts +1 -1
- package/example/src/chevre/transaction/processReturnOrder.ts +8 -8
- package/example/src/chevre/transaction/startExportTasks.ts +1 -1
- package/example/src/chevre/unsetContainsInPlaceFromMovieTheater.ts +1 -1
- package/example/src/chevre/unsetUnnecessaryFields.ts +1 -1
- package/example/src/chevre/updateOfferCatalogs.ts +1 -1
- package/example/src/chevre/updateTransaction.ts +1 -1
- package/lib/chevre/index.d.ts +1 -2
- package/lib/chevre/index.js +2 -3
- package/lib/chevre/repo/account.js +1 -1
- package/lib/chevre/repo/accountTitle.js +1 -1
- package/lib/chevre/repo/accountTransaction.js +1 -1
- package/lib/chevre/repo/accountingReport.js +1 -1
- package/lib/chevre/repo/action.js +1 -1
- package/lib/chevre/repo/additionalProperty.js +1 -1
- package/lib/chevre/repo/aggregateOffer.js +1 -1
- package/lib/chevre/repo/aggregation.js +1 -1
- package/lib/chevre/repo/assetTransaction.js +1 -1
- package/lib/chevre/repo/categoryCode.js +1 -1
- package/lib/chevre/repo/code.js +1 -1
- package/lib/chevre/repo/comment.js +1 -1
- package/lib/chevre/repo/creativeWork.js +1 -1
- package/lib/chevre/repo/customer.js +1 -1
- package/lib/chevre/repo/emailMessage.js +1 -1
- package/lib/chevre/repo/event.d.ts +2 -2
- package/lib/chevre/repo/event.js +6 -2
- package/lib/chevre/repo/member.js +1 -1
- package/lib/chevre/repo/merchantReturnPolicy.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/account.d.ts +4 -56
- package/lib/chevre/repo/mongoose/schemas/account.js +80 -32
- package/lib/chevre/repo/mongoose/schemas/accountTitle.d.ts +4 -90
- package/lib/chevre/repo/mongoose/schemas/accountTitle.js +81 -44
- package/lib/chevre/repo/mongoose/schemas/accountTransaction.d.ts +4 -95
- package/lib/chevre/repo/mongoose/schemas/accountTransaction.js +129 -62
- package/lib/chevre/repo/mongoose/schemas/accountingReport.d.ts +4 -68
- package/lib/chevre/repo/mongoose/schemas/accountingReport.js +108 -63
- package/lib/chevre/repo/mongoose/schemas/action.d.ts +4 -113
- package/lib/chevre/repo/mongoose/schemas/action.js +345 -215
- package/lib/chevre/repo/mongoose/schemas/additionalProperty.d.ts +4 -74
- package/lib/chevre/repo/mongoose/schemas/additionalProperty.js +65 -32
- package/lib/chevre/repo/mongoose/schemas/aggregateOffer.d.ts +4 -73
- package/lib/chevre/repo/mongoose/schemas/aggregateOffer.js +258 -155
- package/lib/chevre/repo/mongoose/schemas/aggregation.d.ts +4 -56
- package/lib/chevre/repo/mongoose/schemas/aggregation.js +28 -10
- package/lib/chevre/repo/mongoose/schemas/assetTransaction.d.ts +4 -113
- package/lib/chevre/repo/mongoose/schemas/assetTransaction.js +258 -146
- package/lib/chevre/repo/mongoose/schemas/authorization.d.ts +4 -77
- package/lib/chevre/repo/mongoose/schemas/authorization.js +110 -61
- package/lib/chevre/repo/mongoose/schemas/categoryCode.d.ts +4 -86
- package/lib/chevre/repo/mongoose/schemas/categoryCode.js +85 -46
- package/lib/chevre/repo/mongoose/schemas/comments.d.ts +4 -89
- package/lib/chevre/repo/mongoose/schemas/comments.js +59 -28
- package/lib/chevre/repo/mongoose/schemas/creativeWork.d.ts +4 -104
- package/lib/chevre/repo/mongoose/schemas/creativeWork.js +121 -70
- package/lib/chevre/repo/mongoose/schemas/customer.d.ts +4 -86
- package/lib/chevre/repo/mongoose/schemas/customer.js +56 -26
- package/lib/chevre/repo/mongoose/schemas/emailMessages.d.ts +4 -80
- package/lib/chevre/repo/mongoose/schemas/emailMessages.js +41 -17
- package/lib/chevre/repo/mongoose/schemas/event.d.ts +4 -158
- package/lib/chevre/repo/mongoose/schemas/event.js +307 -193
- package/lib/chevre/repo/mongoose/schemas/member.d.ts +4 -68
- package/lib/chevre/repo/mongoose/schemas/member.js +65 -37
- package/lib/chevre/repo/mongoose/schemas/merchantReturnPolicy.d.ts +4 -80
- package/lib/chevre/repo/mongoose/schemas/merchantReturnPolicy.js +29 -11
- package/lib/chevre/repo/mongoose/schemas/offerCatalog.d.ts +4 -91
- package/lib/chevre/repo/mongoose/schemas/offerCatalog.js +85 -45
- package/lib/chevre/repo/mongoose/schemas/offerCatalogItem.d.ts +4 -91
- package/lib/chevre/repo/mongoose/schemas/offerCatalogItem.js +29 -10
- package/lib/chevre/repo/mongoose/schemas/offerItemCondition.d.ts +4 -73
- package/lib/chevre/repo/mongoose/schemas/offerItemCondition.js +37 -12
- package/lib/chevre/repo/mongoose/schemas/order.d.ts +4 -128
- package/lib/chevre/repo/mongoose/schemas/order.js +407 -259
- package/lib/chevre/repo/mongoose/schemas/ownershipInfo.d.ts +4 -86
- package/lib/chevre/repo/mongoose/schemas/ownershipInfo.js +187 -111
- package/lib/chevre/repo/mongoose/schemas/place.d.ts +4 -128
- package/lib/chevre/repo/mongoose/schemas/place.js +159 -93
- package/lib/chevre/repo/mongoose/schemas/priceSpecification.d.ts +4 -92
- package/lib/chevre/repo/mongoose/schemas/priceSpecification.js +94 -49
- package/lib/chevre/repo/mongoose/schemas/product.d.ts +4 -95
- package/lib/chevre/repo/mongoose/schemas/product.js +109 -61
- package/lib/chevre/repo/mongoose/schemas/project.d.ts +4 -83
- package/lib/chevre/repo/mongoose/schemas/project.js +20 -9
- package/lib/chevre/repo/mongoose/schemas/reservation.d.ts +4 -143
- package/lib/chevre/repo/mongoose/schemas/reservation.js +377 -229
- package/lib/chevre/repo/mongoose/schemas/role.d.ts +4 -65
- package/lib/chevre/repo/mongoose/schemas/role.js +43 -19
- package/lib/chevre/repo/mongoose/schemas/seller.d.ts +4 -95
- package/lib/chevre/repo/mongoose/schemas/seller.js +96 -51
- package/lib/chevre/repo/mongoose/schemas/serviceOutput.d.ts +4 -65
- package/lib/chevre/repo/mongoose/schemas/serviceOutput.js +112 -63
- package/lib/chevre/repo/mongoose/schemas/task.d.ts +4 -95
- package/lib/chevre/repo/mongoose/schemas/task.js +214 -126
- package/lib/chevre/repo/mongoose/schemas/telemetry.d.ts +4 -80
- package/lib/chevre/repo/mongoose/schemas/telemetry.js +44 -24
- package/lib/chevre/repo/mongoose/schemas/transaction.d.ts +4 -107
- package/lib/chevre/repo/mongoose/schemas/transaction.js +291 -176
- package/lib/chevre/repo/mongoose/schemas/trip.d.ts +4 -65
- package/lib/chevre/repo/mongoose/schemas/trip.js +20 -9
- package/lib/chevre/repo/offer.js +5 -4
- package/lib/chevre/repo/offerCatalog.d.ts +1 -1
- package/lib/chevre/repo/offerCatalog.js +2 -2
- package/lib/chevre/repo/offerCatalogItem.js +1 -1
- package/lib/chevre/repo/offerItemCondition.js +1 -1
- package/lib/chevre/repo/order.js +1 -1
- package/lib/chevre/repo/ownershipInfo.js +1 -1
- package/lib/chevre/repo/paymentServiceProvider.js +1 -1
- package/lib/chevre/repo/permit.js +1 -1
- package/lib/chevre/repo/place/hasPOS.js +1 -1
- package/lib/chevre/repo/place.js +1 -1
- package/lib/chevre/repo/priceSpecification.js +1 -1
- package/lib/chevre/repo/product.js +1 -1
- package/lib/chevre/repo/productOffer.js +1 -1
- package/lib/chevre/repo/project.js +1 -1
- package/lib/chevre/repo/reservation.js +1 -1
- package/lib/chevre/repo/role.js +1 -1
- package/lib/chevre/repo/seller.js +1 -1
- package/lib/chevre/repo/serviceOutput.js +1 -1
- package/lib/chevre/repo/task.js +1 -1
- package/lib/chevre/repo/telemetry.js +1 -1
- package/lib/chevre/repo/transaction.js +1 -1
- package/lib/chevre/repo/trip.js +1 -1
- package/lib/chevre/repository.d.ts +160 -137
- package/lib/chevre/repository.js +531 -223
- package/lib/chevre/service/account.d.ts +2 -2
- package/lib/chevre/service/accountTransaction/deposit.d.ts +2 -2
- package/lib/chevre/service/accountTransaction/transfer.d.ts +2 -2
- package/lib/chevre/service/accountTransaction/withdraw.d.ts +2 -2
- package/lib/chevre/service/accountTransaction.d.ts +1 -1
- package/lib/chevre/service/aggregation/event/aggregateScreeningEvent.d.ts +7 -7
- package/lib/chevre/service/aggregation/event/aggregateUseActionsOnEvent.d.ts +6 -6
- package/lib/chevre/service/aggregation/event/findEventOffers.d.ts +4 -4
- package/lib/chevre/service/aggregation/event/importFromCOA.d.ts +1 -1
- package/lib/chevre/service/aggregation/project.d.ts +3 -3
- package/lib/chevre/service/aggregation/system.d.ts +5 -5
- package/lib/chevre/service/assetTransaction/cancelReservation.d.ts +4 -4
- package/lib/chevre/service/assetTransaction/moneyTransfer.d.ts +4 -4
- package/lib/chevre/service/assetTransaction/moneyTransfer.js +1 -1
- package/lib/chevre/service/assetTransaction/pay/account/validation.d.ts +1 -1
- package/lib/chevre/service/assetTransaction/pay.d.ts +10 -10
- package/lib/chevre/service/assetTransaction/refund.d.ts +4 -4
- package/lib/chevre/service/assetTransaction/registerService.d.ts +8 -8
- package/lib/chevre/service/assetTransaction/reserve.d.ts +14 -14
- package/lib/chevre/service/assetTransaction.d.ts +2 -2
- package/lib/chevre/service/code.d.ts +2 -2
- package/lib/chevre/service/code.js +1 -2
- package/lib/chevre/service/delivery.d.ts +5 -5
- package/lib/chevre/service/event/createEvent.d.ts +4 -4
- package/lib/chevre/service/event.d.ts +7 -7
- package/lib/chevre/service/iam.d.ts +2 -2
- package/lib/chevre/service/moneyTransfer.d.ts +5 -5
- package/lib/chevre/service/notification.d.ts +2 -2
- package/lib/chevre/service/offer/event/authorize.d.ts +15 -15
- package/lib/chevre/service/offer/event/cancel.d.ts +7 -7
- package/lib/chevre/service/offer/event/importFromCOA.d.ts +3 -3
- package/lib/chevre/service/offer/event/searchEventTicketOffers.d.ts +7 -7
- package/lib/chevre/service/offer/event/voidTransaction.d.ts +7 -7
- package/lib/chevre/service/offer/eventServiceByCOA/validateAcceptedOffers.d.ts +1 -1
- package/lib/chevre/service/offer/eventServiceByCOA.d.ts +5 -5
- package/lib/chevre/service/offer/moneyTransfer/authorize.d.ts +6 -6
- package/lib/chevre/service/offer/moneyTransfer/returnMoneyTransfer.d.ts +5 -5
- package/lib/chevre/service/offer/moneyTransfer/settleTransaction.d.ts +2 -2
- package/lib/chevre/service/offer/moneyTransfer/voidTransaction.d.ts +3 -3
- package/lib/chevre/service/offer/product/searchProductOffers.d.ts +3 -3
- package/lib/chevre/service/offer/product.d.ts +14 -14
- package/lib/chevre/service/offer.d.ts +6 -6
- package/lib/chevre/service/order/confirmPayTransaction.d.ts +10 -10
- package/lib/chevre/service/order/deleteOrder.d.ts +5 -5
- package/lib/chevre/service/order/findPlaceOrderTransaction.d.ts +1 -1
- package/lib/chevre/service/order/onAssetTransactionStatusChanged.d.ts +5 -5
- package/lib/chevre/service/order/onOrderStatusChanged.d.ts +2 -2
- package/lib/chevre/service/order/onOrderUpdated.d.ts +1 -1
- package/lib/chevre/service/order/payOrder.d.ts +4 -4
- package/lib/chevre/service/order/placeOrder.d.ts +6 -6
- package/lib/chevre/service/order/returnOrder.d.ts +6 -6
- package/lib/chevre/service/order/sendOrder.d.ts +6 -6
- package/lib/chevre/service/payment/any/onPaid.d.ts +3 -3
- package/lib/chevre/service/payment/any/onPaymentStatusChanged/onPaid.d.ts +1 -1
- package/lib/chevre/service/payment/any/onPaymentStatusChanged/onRefunded.d.ts +1 -1
- package/lib/chevre/service/payment/any/onPaymentStatusChanged.d.ts +2 -2
- package/lib/chevre/service/payment/any/onRefund.d.ts +3 -3
- package/lib/chevre/service/payment/any.d.ts +10 -10
- package/lib/chevre/service/payment/creditCard.d.ts +6 -6
- package/lib/chevre/service/payment/faceToFace.d.ts +6 -6
- package/lib/chevre/service/payment/movieTicket/checkByIdentifier.d.ts +2 -2
- package/lib/chevre/service/payment/movieTicket/getCredentials.d.ts +1 -1
- package/lib/chevre/service/payment/movieTicket/validation.d.ts +5 -5
- package/lib/chevre/service/payment/movieTicket.d.ts +6 -6
- package/lib/chevre/service/payment/paymentCard.d.ts +7 -7
- package/lib/chevre/service/payment.d.ts +9 -9
- package/lib/chevre/service/permit.d.ts +2 -2
- package/lib/chevre/service/product.d.ts +3 -3
- package/lib/chevre/service/project.d.ts +16 -16
- package/lib/chevre/service/report/telemetry.d.ts +19 -16
- package/lib/chevre/service/reserve/cancelReservation.d.ts +3 -3
- package/lib/chevre/service/reserve/checkInReservation.d.ts +5 -5
- package/lib/chevre/service/reserve/confirmReservation.d.ts +4 -4
- package/lib/chevre/service/reserve/potentialActions/onReservationCanceled.d.ts +1 -1
- package/lib/chevre/service/reserve/potentialActions/onReservationCheckedIn.d.ts +2 -2
- package/lib/chevre/service/reserve/potentialActions/onReservationConfirmed.d.ts +1 -1
- package/lib/chevre/service/reserve/potentialActions/onReservationUsed.d.ts +1 -1
- package/lib/chevre/service/reserve/useReservation.d.ts +5 -5
- package/lib/chevre/service/reserve/verifyToken4reservation.d.ts +1 -1
- package/lib/chevre/service/task/onResourceUpdated/onHasPOSUpdated.d.ts +2 -2
- package/lib/chevre/service/task/onResourceUpdated/onOfferCatalogUpdated.d.ts +3 -3
- package/lib/chevre/service/task/onResourceUpdated/onResourceDeleted.d.ts +15 -15
- package/lib/chevre/service/task/onResourceUpdated/syncOfferCatalog.d.ts +2 -2
- package/lib/chevre/service/task.d.ts +1 -1
- package/lib/chevre/service/task.js +3 -4
- package/lib/chevre/service/transaction/deleteTransaction.d.ts +9 -9
- package/lib/chevre/service/transaction/moneyTransfer.d.ts +9 -9
- package/lib/chevre/service/transaction/orderProgramMembership/findPaymentCardPermit.d.ts +2 -2
- package/lib/chevre/service/transaction/placeOrder.d.ts +2 -2
- package/lib/chevre/service/transaction/placeOrderInProgress.d.ts +7 -7
- package/lib/chevre/service/transaction/returnOrder.d.ts +10 -10
- package/lib/chevre/service/transaction.d.ts +2 -2
- package/lib/chevre/settings.d.ts +1 -0
- package/lib/chevre/settings.js +2 -1
- package/package.json +1 -1
|
@@ -1,87 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
/// <reference types="mongoose/types/callback" />
|
|
3
|
-
/// <reference types="mongoose/types/collection" />
|
|
4
|
-
/// <reference types="mongoose/types/connection" />
|
|
5
|
-
/// <reference types="mongoose/types/cursor" />
|
|
6
|
-
/// <reference types="mongoose/types/document" />
|
|
7
|
-
/// <reference types="mongoose/types/error" />
|
|
8
|
-
/// <reference types="mongoose/types/expressions" />
|
|
9
|
-
/// <reference types="mongoose/types/helpers" />
|
|
10
|
-
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
-
/// <reference types="mongoose/types/indexes" />
|
|
12
|
-
/// <reference types="mongoose/types/models" />
|
|
13
|
-
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
-
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
-
/// <reference types="mongoose/types/populate" />
|
|
16
|
-
/// <reference types="mongoose/types/query" />
|
|
17
|
-
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
-
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
-
/// <reference types="mongoose/types/session" />
|
|
20
|
-
/// <reference types="mongoose/types/types" />
|
|
21
|
-
/// <reference types="mongoose/types/utility" />
|
|
22
|
-
/// <reference types="mongoose/types/validation" />
|
|
23
|
-
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
-
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
-
import { Schema } from 'mongoose';
|
|
1
|
+
import { IndexDefinition, IndexOptions, Schema } from 'mongoose';
|
|
26
2
|
declare const modelName = "OwnershipInfo";
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
31
|
-
collection: string;
|
|
32
|
-
id: true;
|
|
33
|
-
read: string;
|
|
34
|
-
writeConcern: import("mongodb").WriteConcern;
|
|
35
|
-
strict: true;
|
|
36
|
-
strictQuery: false;
|
|
37
|
-
useNestedStrict: boolean;
|
|
38
|
-
timestamps: {
|
|
39
|
-
createdAt: string;
|
|
40
|
-
updatedAt: string;
|
|
41
|
-
};
|
|
42
|
-
toJSON: {
|
|
43
|
-
getters: false;
|
|
44
|
-
virtuals: false;
|
|
45
|
-
minimize: false;
|
|
46
|
-
versionKey: false;
|
|
47
|
-
};
|
|
48
|
-
toObject: {
|
|
49
|
-
getters: false;
|
|
50
|
-
virtuals: true;
|
|
51
|
-
minimize: false;
|
|
52
|
-
versionKey: false;
|
|
53
|
-
};
|
|
54
|
-
}, {
|
|
55
|
-
typeOf: string;
|
|
56
|
-
_id?: string | undefined;
|
|
57
|
-
project?: any;
|
|
58
|
-
identifier?: any;
|
|
59
|
-
typeOfGood?: any;
|
|
60
|
-
ownedBy?: any;
|
|
61
|
-
acquiredFrom?: any;
|
|
62
|
-
ownedFrom?: Date | undefined;
|
|
63
|
-
ownedThrough?: Date | undefined;
|
|
64
|
-
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
65
|
-
typeOf: string;
|
|
66
|
-
_id?: string | undefined;
|
|
67
|
-
project?: any;
|
|
68
|
-
identifier?: any;
|
|
69
|
-
typeOfGood?: any;
|
|
70
|
-
ownedBy?: any;
|
|
71
|
-
acquiredFrom?: any;
|
|
72
|
-
ownedFrom?: Date | undefined;
|
|
73
|
-
ownedThrough?: Date | undefined;
|
|
74
|
-
}>> & Omit<import("mongoose").FlatRecord<{
|
|
75
|
-
typeOf: string;
|
|
76
|
-
_id?: string | undefined;
|
|
77
|
-
project?: any;
|
|
78
|
-
identifier?: any;
|
|
79
|
-
typeOfGood?: any;
|
|
80
|
-
ownedBy?: any;
|
|
81
|
-
acquiredFrom?: any;
|
|
82
|
-
ownedFrom?: Date | undefined;
|
|
83
|
-
ownedThrough?: Date | undefined;
|
|
84
|
-
}> & Required<{
|
|
85
|
-
_id: string;
|
|
86
|
-
}>, never>>;
|
|
87
|
-
export { modelName, schema };
|
|
3
|
+
declare function createSchema(): Schema;
|
|
4
|
+
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
5
|
+
export { modelName, indexes, createSchema };
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.createSchema = exports.indexes = exports.modelName = void 0;
|
|
4
4
|
const mongoose_1 = require("mongoose");
|
|
5
5
|
const writeConcern_1 = require("../writeConcern");
|
|
6
|
+
const settings_1 = require("../../../settings");
|
|
6
7
|
const modelName = 'OwnershipInfo';
|
|
7
8
|
exports.modelName = modelName;
|
|
8
|
-
|
|
9
|
-
* 所有権スキーマ
|
|
10
|
-
*/
|
|
11
|
-
const schema = new mongoose_1.Schema({
|
|
9
|
+
const schemaDefinition = {
|
|
12
10
|
project: mongoose_1.SchemaTypes.Mixed,
|
|
13
11
|
_id: String,
|
|
14
12
|
typeOf: {
|
|
@@ -21,14 +19,16 @@ const schema = new mongoose_1.Schema({
|
|
|
21
19
|
ownedFrom: Date,
|
|
22
20
|
ownedThrough: Date,
|
|
23
21
|
typeOfGood: mongoose_1.SchemaTypes.Mixed
|
|
24
|
-
}
|
|
22
|
+
};
|
|
23
|
+
const schemaOptions = {
|
|
24
|
+
autoIndex: settings_1.MONGO_AUTO_INDEX,
|
|
25
|
+
autoCreate: false,
|
|
25
26
|
collection: 'ownershipInfos',
|
|
26
27
|
id: true,
|
|
27
28
|
read: 'primary',
|
|
28
29
|
writeConcern: writeConcern_1.writeConcern,
|
|
29
30
|
strict: true,
|
|
30
31
|
strictQuery: false,
|
|
31
|
-
useNestedStrict: true,
|
|
32
32
|
timestamps: {
|
|
33
33
|
createdAt: 'createdAt',
|
|
34
34
|
updatedAt: 'updatedAt'
|
|
@@ -45,107 +45,183 @@ const schema = new mongoose_1.Schema({
|
|
|
45
45
|
minimize: false,
|
|
46
46
|
versionKey: false
|
|
47
47
|
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}
|
|
57
|
-
schema
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
'
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
'
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
}
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* 所有権スキーマ
|
|
51
|
+
*/
|
|
52
|
+
let schema;
|
|
53
|
+
function createSchema() {
|
|
54
|
+
if (schema === undefined) {
|
|
55
|
+
schema = new mongoose_1.Schema(schemaDefinition, schemaOptions);
|
|
56
|
+
}
|
|
57
|
+
return schema;
|
|
58
|
+
}
|
|
59
|
+
exports.createSchema = createSchema;
|
|
60
|
+
const indexes = [
|
|
61
|
+
[
|
|
62
|
+
{ createdAt: 1 },
|
|
63
|
+
{ name: 'searchByCreatedAt' }
|
|
64
|
+
],
|
|
65
|
+
[
|
|
66
|
+
{ updatedAt: 1 },
|
|
67
|
+
{ name: 'searchByUpdatedAt' }
|
|
68
|
+
],
|
|
69
|
+
[
|
|
70
|
+
// 識別子はユニークな前提
|
|
71
|
+
{ identifier: 1 },
|
|
72
|
+
{
|
|
73
|
+
unique: true,
|
|
74
|
+
name: 'uniqueIdentifier'
|
|
75
|
+
}
|
|
76
|
+
],
|
|
77
|
+
[
|
|
78
|
+
{ ownedFrom: -1 },
|
|
79
|
+
{ name: 'searchByOwnedFrom-v3' }
|
|
80
|
+
],
|
|
81
|
+
[
|
|
82
|
+
{ 'project.id': 1, ownedFrom: -1 },
|
|
83
|
+
{
|
|
84
|
+
name: 'searchByProjectId-v20220721'
|
|
85
|
+
}
|
|
86
|
+
],
|
|
87
|
+
[
|
|
88
|
+
{ typeOf: 1, ownedFrom: -1 },
|
|
89
|
+
{ name: 'searchByTypeOf-v2' }
|
|
90
|
+
],
|
|
91
|
+
[
|
|
92
|
+
{ identifier: 1, ownedFrom: -1 },
|
|
93
|
+
{
|
|
94
|
+
name: 'searchByIdentifier-v2',
|
|
95
|
+
partialFilterExpression: {
|
|
96
|
+
identifier: { $exists: true }
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
],
|
|
100
|
+
[
|
|
101
|
+
{ 'acquiredFrom.id': 1, ownedFrom: -1 },
|
|
102
|
+
{
|
|
103
|
+
name: 'searchByAcquiredFromId-v2',
|
|
104
|
+
partialFilterExpression: {
|
|
105
|
+
'acquiredFrom.id': { $exists: true }
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
],
|
|
109
|
+
[
|
|
110
|
+
{ 'ownedBy.typeOf': 1, ownedFrom: -1 },
|
|
111
|
+
{
|
|
112
|
+
name: 'searchByOwnedByTypeOf',
|
|
113
|
+
partialFilterExpression: {
|
|
114
|
+
'ownedBy.typeOf': { $exists: true }
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
],
|
|
118
|
+
[
|
|
119
|
+
{ 'ownedBy.id': 1, ownedFrom: -1 },
|
|
120
|
+
{
|
|
121
|
+
name: 'searchByOwnedById',
|
|
122
|
+
partialFilterExpression: {
|
|
123
|
+
'ownedBy.id': { $exists: true }
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
],
|
|
127
|
+
[
|
|
128
|
+
{ 'ownedBy.memberOf.membershipNumber': 1, ownedFrom: -1 },
|
|
129
|
+
{
|
|
130
|
+
name: 'searchByOwnedByMemberOfMembershipNumber',
|
|
131
|
+
partialFilterExpression: {
|
|
132
|
+
'ownedBy.memberOf.membershipNumber': { $exists: true }
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
],
|
|
136
|
+
[
|
|
137
|
+
{ ownedThrough: -1, ownedFrom: -1 },
|
|
138
|
+
{
|
|
139
|
+
name: 'searchByOwnedThrough-v2',
|
|
140
|
+
partialFilterExpression: {
|
|
141
|
+
ownedThrough: { $exists: true }
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
],
|
|
145
|
+
[
|
|
146
|
+
{ 'typeOfGood.typeOf': 1, ownedFrom: -1 },
|
|
147
|
+
{
|
|
148
|
+
name: 'searchByTypeOfGoodTypeOf-v2',
|
|
149
|
+
partialFilterExpression: {
|
|
150
|
+
'typeOfGood.typeOf': { $exists: true }
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
],
|
|
154
|
+
[
|
|
155
|
+
{ 'typeOfGood.reservedTicket.ticketToken': 1, ownedFrom: -1 },
|
|
156
|
+
{
|
|
157
|
+
name: 'searchByTypeOfGoofReservedTicketToken',
|
|
158
|
+
partialFilterExpression: {
|
|
159
|
+
'typeOfGood.reservedTicket.ticketToken': { $exists: true }
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
],
|
|
163
|
+
[
|
|
164
|
+
{ 'typeOfGood.id': 1, ownedFrom: -1 },
|
|
165
|
+
{
|
|
166
|
+
name: 'searchByTypeOfGoodId',
|
|
167
|
+
partialFilterExpression: {
|
|
168
|
+
'typeOfGood.id': { $exists: true }
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
],
|
|
172
|
+
[
|
|
173
|
+
{ 'typeOfGood.identifier': 1, ownedFrom: -1 },
|
|
174
|
+
{
|
|
175
|
+
name: 'searchByTypeOfGoodIdentifier',
|
|
176
|
+
partialFilterExpression: {
|
|
177
|
+
'typeOfGood.identifier': { $exists: true }
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
],
|
|
181
|
+
[
|
|
182
|
+
{ 'typeOfGood.membershipFor.id': 1, ownedFrom: -1 },
|
|
183
|
+
{
|
|
184
|
+
name: 'searchByTypeOfGoodMembershipForId',
|
|
185
|
+
partialFilterExpression: {
|
|
186
|
+
'typeOfGood.membershipFor.id': { $exists: true }
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
],
|
|
190
|
+
[
|
|
191
|
+
{ 'typeOfGood.issuedThrough.id': 1, ownedFrom: -1 },
|
|
192
|
+
{
|
|
193
|
+
name: 'searchByTypeOfGoodIssuedThroughId',
|
|
194
|
+
partialFilterExpression: {
|
|
195
|
+
'typeOfGood.issuedThrough.id': { $exists: true }
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
],
|
|
199
|
+
[
|
|
200
|
+
{ 'typeOfGood.issuedThrough.typeOf': 1, ownedFrom: -1 },
|
|
201
|
+
{
|
|
202
|
+
name: 'searchByTypeOfGoodIssuedThroughTypeOf',
|
|
203
|
+
partialFilterExpression: {
|
|
204
|
+
'typeOfGood.issuedThrough.typeOf': { $exists: true }
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
],
|
|
208
|
+
[
|
|
209
|
+
{ 'typeOfGood.accountNumber': 1, ownedFrom: -1 },
|
|
210
|
+
{
|
|
211
|
+
name: 'searchByTypeOfGoodAccountNumber',
|
|
212
|
+
partialFilterExpression: {
|
|
213
|
+
'typeOfGood.accountNumber': { $exists: true }
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
],
|
|
217
|
+
[
|
|
218
|
+
{ 'typeOfGood.reservationNumber': 1, ownedFrom: -1 },
|
|
219
|
+
{
|
|
220
|
+
name: 'searchByTypeOfGoodReservationNumber',
|
|
221
|
+
partialFilterExpression: {
|
|
222
|
+
'typeOfGood.reservationNumber': { $exists: true }
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
]
|
|
226
|
+
];
|
|
227
|
+
exports.indexes = indexes;
|
|
@@ -1,129 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
/// <reference types="mongoose/types/callback" />
|
|
3
|
-
/// <reference types="mongoose/types/collection" />
|
|
4
|
-
/// <reference types="mongoose/types/connection" />
|
|
5
|
-
/// <reference types="mongoose/types/cursor" />
|
|
6
|
-
/// <reference types="mongoose/types/document" />
|
|
7
|
-
/// <reference types="mongoose/types/error" />
|
|
8
|
-
/// <reference types="mongoose/types/expressions" />
|
|
9
|
-
/// <reference types="mongoose/types/helpers" />
|
|
10
|
-
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
-
/// <reference types="mongoose/types/indexes" />
|
|
12
|
-
/// <reference types="mongoose/types/models" />
|
|
13
|
-
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
-
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
-
/// <reference types="mongoose/types/populate" />
|
|
16
|
-
/// <reference types="mongoose/types/query" />
|
|
17
|
-
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
-
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
-
/// <reference types="mongoose/types/session" />
|
|
20
|
-
/// <reference types="mongoose/types/types" />
|
|
21
|
-
/// <reference types="mongoose/types/utility" />
|
|
22
|
-
/// <reference types="mongoose/types/validation" />
|
|
23
|
-
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
-
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
-
import { Schema } from 'mongoose';
|
|
1
|
+
import { IndexDefinition, IndexOptions, Schema } from 'mongoose';
|
|
26
2
|
declare const modelName = "Place";
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
31
|
-
collection: string;
|
|
32
|
-
id: true;
|
|
33
|
-
read: string;
|
|
34
|
-
writeConcern: import("mongodb").WriteConcern;
|
|
35
|
-
strict: true;
|
|
36
|
-
strictQuery: false;
|
|
37
|
-
useNestedStrict: boolean;
|
|
38
|
-
timestamps: {
|
|
39
|
-
createdAt: string;
|
|
40
|
-
updatedAt: string;
|
|
41
|
-
};
|
|
42
|
-
toJSON: {
|
|
43
|
-
getters: false;
|
|
44
|
-
virtuals: false;
|
|
45
|
-
minimize: false;
|
|
46
|
-
versionKey: false;
|
|
47
|
-
};
|
|
48
|
-
toObject: {
|
|
49
|
-
getters: false;
|
|
50
|
-
virtuals: true;
|
|
51
|
-
minimize: false;
|
|
52
|
-
versionKey: false;
|
|
53
|
-
};
|
|
54
|
-
}, {
|
|
55
|
-
typeOf: string;
|
|
56
|
-
project: any;
|
|
57
|
-
additionalProperty: any[];
|
|
58
|
-
parentOrganization: any;
|
|
59
|
-
containsPlace: any[];
|
|
60
|
-
hasEntranceGate: any[];
|
|
61
|
-
hasPOS: any[];
|
|
62
|
-
name?: any;
|
|
63
|
-
url?: string | undefined;
|
|
64
|
-
alternateName?: any;
|
|
65
|
-
description?: any;
|
|
66
|
-
offers?: any;
|
|
67
|
-
branchCode?: string | undefined;
|
|
68
|
-
telephone?: string | undefined;
|
|
69
|
-
maximumAttendeeCapacity?: number | undefined;
|
|
70
|
-
kanaName?: string | undefined;
|
|
71
|
-
address?: any;
|
|
72
|
-
containedInPlace?: any;
|
|
73
|
-
openingHoursSpecification?: any;
|
|
74
|
-
smokingAllowed?: boolean | undefined;
|
|
75
|
-
sameAs?: string | undefined;
|
|
76
|
-
openSeatingAllowed?: any;
|
|
77
|
-
amenityFeature?: any;
|
|
78
|
-
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
79
|
-
typeOf: string;
|
|
80
|
-
project: any;
|
|
81
|
-
additionalProperty: any[];
|
|
82
|
-
parentOrganization: any;
|
|
83
|
-
containsPlace: any[];
|
|
84
|
-
hasEntranceGate: any[];
|
|
85
|
-
hasPOS: any[];
|
|
86
|
-
name?: any;
|
|
87
|
-
url?: string | undefined;
|
|
88
|
-
alternateName?: any;
|
|
89
|
-
description?: any;
|
|
90
|
-
offers?: any;
|
|
91
|
-
branchCode?: string | undefined;
|
|
92
|
-
telephone?: string | undefined;
|
|
93
|
-
maximumAttendeeCapacity?: number | undefined;
|
|
94
|
-
kanaName?: string | undefined;
|
|
95
|
-
address?: any;
|
|
96
|
-
containedInPlace?: any;
|
|
97
|
-
openingHoursSpecification?: any;
|
|
98
|
-
smokingAllowed?: boolean | undefined;
|
|
99
|
-
sameAs?: string | undefined;
|
|
100
|
-
openSeatingAllowed?: any;
|
|
101
|
-
amenityFeature?: any;
|
|
102
|
-
}>> & Omit<import("mongoose").FlatRecord<{
|
|
103
|
-
typeOf: string;
|
|
104
|
-
project: any;
|
|
105
|
-
additionalProperty: any[];
|
|
106
|
-
parentOrganization: any;
|
|
107
|
-
containsPlace: any[];
|
|
108
|
-
hasEntranceGate: any[];
|
|
109
|
-
hasPOS: any[];
|
|
110
|
-
name?: any;
|
|
111
|
-
url?: string | undefined;
|
|
112
|
-
alternateName?: any;
|
|
113
|
-
description?: any;
|
|
114
|
-
offers?: any;
|
|
115
|
-
branchCode?: string | undefined;
|
|
116
|
-
telephone?: string | undefined;
|
|
117
|
-
maximumAttendeeCapacity?: number | undefined;
|
|
118
|
-
kanaName?: string | undefined;
|
|
119
|
-
address?: any;
|
|
120
|
-
containedInPlace?: any;
|
|
121
|
-
openingHoursSpecification?: any;
|
|
122
|
-
smokingAllowed?: boolean | undefined;
|
|
123
|
-
sameAs?: string | undefined;
|
|
124
|
-
openSeatingAllowed?: any;
|
|
125
|
-
amenityFeature?: any;
|
|
126
|
-
}> & {
|
|
127
|
-
_id: import("mongoose").Types.ObjectId;
|
|
128
|
-
}, never>>;
|
|
129
|
-
export { modelName, schema };
|
|
3
|
+
declare function createSchema(): Schema;
|
|
4
|
+
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
5
|
+
export { modelName, indexes, createSchema };
|