@chevre/domain 21.12.0 → 21.13.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/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.js +1 -1
- 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 +3 -3
- package/lib/chevre/repo/offerCatalog.js +1 -1
- 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/settings.d.ts +1 -0
- package/lib/chevre/settings.js +2 -1
- package/package.json +1 -1
|
@@ -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 = 'Action';
|
|
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
|
actionStatus: String,
|
|
14
12
|
typeOf: String,
|
|
@@ -28,7 +26,10 @@ const schema = new mongoose_1.Schema({
|
|
|
28
26
|
instrument: mongoose_1.SchemaTypes.Mixed,
|
|
29
27
|
// add location(2022-11-11~)
|
|
30
28
|
location: mongoose_1.SchemaTypes.Mixed
|
|
31
|
-
}
|
|
29
|
+
};
|
|
30
|
+
const schemaOptions = {
|
|
31
|
+
autoIndex: settings_1.MONGO_AUTO_INDEX,
|
|
32
|
+
autoCreate: false,
|
|
32
33
|
collection: 'actions',
|
|
33
34
|
id: true,
|
|
34
35
|
read: 'primary',
|
|
@@ -36,7 +37,6 @@ const schema = new mongoose_1.Schema({
|
|
|
36
37
|
// true化(2022-11-12~)
|
|
37
38
|
strict: true,
|
|
38
39
|
strictQuery: false,
|
|
39
|
-
useNestedStrict: true,
|
|
40
40
|
timestamps: {
|
|
41
41
|
createdAt: 'createdAt',
|
|
42
42
|
updatedAt: 'updatedAt'
|
|
@@ -53,211 +53,341 @@ const schema = new mongoose_1.Schema({
|
|
|
53
53
|
minimize: false,
|
|
54
54
|
versionKey: false
|
|
55
55
|
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
schema
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
schema
|
|
64
|
-
|
|
65
|
-
schema
|
|
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
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
'object.
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
'object.
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
'object.
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
'
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
'
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
'
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
}
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* アクションスキーマ
|
|
59
|
+
*/
|
|
60
|
+
let schema;
|
|
61
|
+
function createSchema() {
|
|
62
|
+
if (schema === undefined) {
|
|
63
|
+
schema = new mongoose_1.Schema(schemaDefinition, schemaOptions);
|
|
64
|
+
}
|
|
65
|
+
return schema;
|
|
66
|
+
}
|
|
67
|
+
exports.createSchema = createSchema;
|
|
68
|
+
const indexes = [
|
|
69
|
+
[
|
|
70
|
+
{ createdAt: 1 },
|
|
71
|
+
{ name: 'searchByCreatedAt' }
|
|
72
|
+
],
|
|
73
|
+
[
|
|
74
|
+
{ updatedAt: 1 },
|
|
75
|
+
{ name: 'searchByUpdatedAt' }
|
|
76
|
+
],
|
|
77
|
+
[
|
|
78
|
+
{ 'project.id': 1, startDate: -1 },
|
|
79
|
+
{
|
|
80
|
+
name: 'searchByProjectId-v20220721'
|
|
81
|
+
}
|
|
82
|
+
],
|
|
83
|
+
[
|
|
84
|
+
{ typeOf: 1, startDate: -1 },
|
|
85
|
+
{ name: 'searchByTypeOf-v2' }
|
|
86
|
+
],
|
|
87
|
+
[
|
|
88
|
+
{ actionStatus: 1, startDate: -1 },
|
|
89
|
+
{ name: 'searchByActionStatus-v2' }
|
|
90
|
+
],
|
|
91
|
+
[
|
|
92
|
+
{ startDate: -1 },
|
|
93
|
+
{ name: 'searchByStartDate-v2' }
|
|
94
|
+
],
|
|
95
|
+
[
|
|
96
|
+
{ endDate: -1, startDate: -1 },
|
|
97
|
+
{
|
|
98
|
+
name: 'searchByEndDate-v2',
|
|
99
|
+
partialFilterExpression: {
|
|
100
|
+
endDate: { $exists: true }
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
],
|
|
104
|
+
[
|
|
105
|
+
{ 'location.id': 1, startDate: -1 },
|
|
106
|
+
{
|
|
107
|
+
name: 'searchByLocationId',
|
|
108
|
+
partialFilterExpression: {
|
|
109
|
+
'location.id': { $exists: true }
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
],
|
|
113
|
+
[
|
|
114
|
+
{ 'location.identifier': 1, startDate: -1 },
|
|
115
|
+
{
|
|
116
|
+
name: 'searchByLocationIdentifier',
|
|
117
|
+
partialFilterExpression: {
|
|
118
|
+
'location.identifier': { $exists: true }
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
],
|
|
122
|
+
[
|
|
123
|
+
{ 'agent.typeOf': 1, startDate: -1 },
|
|
124
|
+
{
|
|
125
|
+
name: 'searchByAgentTypeOf',
|
|
126
|
+
partialFilterExpression: {
|
|
127
|
+
'agent.typeOf': { $exists: true }
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
],
|
|
131
|
+
[
|
|
132
|
+
{ 'agent.id': 1, startDate: -1 },
|
|
133
|
+
{
|
|
134
|
+
name: 'searchByAgentId',
|
|
135
|
+
partialFilterExpression: {
|
|
136
|
+
'agent.id': { $exists: true }
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
],
|
|
140
|
+
[
|
|
141
|
+
{ 'purpose.typeOf': 1, startDate: -1 },
|
|
142
|
+
{
|
|
143
|
+
name: 'searchByPurposeTypeOf-v2',
|
|
144
|
+
partialFilterExpression: {
|
|
145
|
+
'purpose.typeOf': { $exists: true }
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
],
|
|
149
|
+
[
|
|
150
|
+
{ 'purpose.id': 1, startDate: -1 },
|
|
151
|
+
{
|
|
152
|
+
name: 'searchByPurposeId-v2',
|
|
153
|
+
partialFilterExpression: {
|
|
154
|
+
'purpose.id': { $exists: true }
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
],
|
|
158
|
+
[
|
|
159
|
+
{ 'object.typeOf': 1, startDate: -1 },
|
|
160
|
+
{
|
|
161
|
+
name: 'searchByObjectTypeOf-v2',
|
|
162
|
+
partialFilterExpression: {
|
|
163
|
+
'object.typeOf': { $exists: true }
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
],
|
|
167
|
+
[
|
|
168
|
+
{ 'object.id': 1, startDate: -1 },
|
|
169
|
+
{
|
|
170
|
+
name: 'searchByObjectId',
|
|
171
|
+
partialFilterExpression: {
|
|
172
|
+
'object.id': { $exists: true }
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
],
|
|
176
|
+
[
|
|
177
|
+
{ 'object.movieTickets.identifier': 1, startDate: -1 },
|
|
178
|
+
{
|
|
179
|
+
name: 'searchByObjectMovieTicketsIdentifier',
|
|
180
|
+
partialFilterExpression: {
|
|
181
|
+
'object.movieTickets.identifier': { $exists: true }
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
],
|
|
185
|
+
[
|
|
186
|
+
{ 'object.movieTickets.serviceOutput.reservationFor.id': 1, startDate: -1 },
|
|
187
|
+
{
|
|
188
|
+
name: 'searchByObjectMovieTicketsServiceOutputReservationForId',
|
|
189
|
+
partialFilterExpression: {
|
|
190
|
+
'object.movieTickets.serviceOutput.reservationFor.id': { $exists: true }
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
],
|
|
194
|
+
[
|
|
195
|
+
{ 'object.paymentMethod.accountId': 1, startDate: -1 },
|
|
196
|
+
{
|
|
197
|
+
name: 'searchByObjectPaymentMethodAccountId',
|
|
198
|
+
partialFilterExpression: {
|
|
199
|
+
'object.paymentMethod.accountId': { $exists: true }
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
],
|
|
203
|
+
[
|
|
204
|
+
{ 'object.paymentMethod.paymentMethodId': 1, startDate: -1 },
|
|
205
|
+
{
|
|
206
|
+
name: 'searchByObjectPaymentMethodPaymentMethodId',
|
|
207
|
+
partialFilterExpression: {
|
|
208
|
+
'object.paymentMethod.paymentMethodId': { $exists: true }
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
],
|
|
212
|
+
[
|
|
213
|
+
{ 'object.paymentMethod.typeOf': 1, startDate: -1 },
|
|
214
|
+
{
|
|
215
|
+
name: 'searchByObjectPaymentMethodTypeOf',
|
|
216
|
+
partialFilterExpression: {
|
|
217
|
+
'object.paymentMethod.typeOf': { $exists: true }
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
],
|
|
221
|
+
[
|
|
222
|
+
{ 'object.paymentMethodId': 1, startDate: -1 },
|
|
223
|
+
{
|
|
224
|
+
name: 'searchByObjectPaymentMethodId',
|
|
225
|
+
partialFilterExpression: {
|
|
226
|
+
'object.paymentMethodId': { $exists: true }
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
],
|
|
230
|
+
[
|
|
231
|
+
{ 'object.object.paymentMethodId': 1, startDate: -1 },
|
|
232
|
+
{
|
|
233
|
+
name: 'searchByObjectObjectPaymentMethodId',
|
|
234
|
+
partialFilterExpression: {
|
|
235
|
+
'object.object.paymentMethodId': { $exists: true }
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
],
|
|
239
|
+
[
|
|
240
|
+
{ 'object.event.id': 1, startDate: -1 },
|
|
241
|
+
{
|
|
242
|
+
name: 'searchByObjectEventId',
|
|
243
|
+
partialFilterExpression: {
|
|
244
|
+
'object.event.id': { $exists: true }
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
],
|
|
248
|
+
[
|
|
249
|
+
{ 'object.acceptedOffer.itemOffered.serviceOutput.reservedTicket.ticketedSeat.seatNumber': 1, startDate: -1 },
|
|
250
|
+
{
|
|
251
|
+
name: 'searchByObjectAcceptedOfferItemOfferedServiceOutputSeatNumber',
|
|
252
|
+
partialFilterExpression: {
|
|
253
|
+
'object.acceptedOffer.itemOffered.serviceOutput.reservedTicket.ticketedSeat.seatNumber': { $exists: true }
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
],
|
|
257
|
+
[
|
|
258
|
+
{ 'object.orderNumber': 1, startDate: -1 },
|
|
259
|
+
{
|
|
260
|
+
name: 'searchByObjectOrderNumber-v2',
|
|
261
|
+
partialFilterExpression: {
|
|
262
|
+
'object.orderNumber': { $exists: true }
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
],
|
|
266
|
+
[
|
|
267
|
+
{ 'purpose.orderNumber': 1, startDate: -1 },
|
|
268
|
+
{
|
|
269
|
+
name: 'searchByPurposeOrderNumber-v2',
|
|
270
|
+
partialFilterExpression: {
|
|
271
|
+
'purpose.orderNumber': { $exists: true }
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
],
|
|
275
|
+
[
|
|
276
|
+
{ 'object.reservationFor.id': 1, startDate: -1 },
|
|
277
|
+
{
|
|
278
|
+
name: 'searchByObjectReservationForId',
|
|
279
|
+
partialFilterExpression: {
|
|
280
|
+
'object.reservationFor.id': { $exists: true }
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
],
|
|
284
|
+
[
|
|
285
|
+
{ 'object.reservationNumber': 1, startDate: -1 },
|
|
286
|
+
{
|
|
287
|
+
name: 'searchByObjectReservationNumber',
|
|
288
|
+
partialFilterExpression: {
|
|
289
|
+
'object.reservationNumber': { $exists: true }
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
],
|
|
293
|
+
[
|
|
294
|
+
{ 'object.reservedTicket.ticketType.id': 1, startDate: -1 },
|
|
295
|
+
{
|
|
296
|
+
name: 'searchByObjectReservedTicketTicketTypeId',
|
|
297
|
+
partialFilterExpression: {
|
|
298
|
+
'object.reservedTicket.ticketType.id': { $exists: true }
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
],
|
|
302
|
+
[
|
|
303
|
+
{ 'result.typeOf': 1, startDate: -1 },
|
|
304
|
+
{
|
|
305
|
+
name: 'searchByResultTypeOf',
|
|
306
|
+
partialFilterExpression: {
|
|
307
|
+
'result.typeOf': { $exists: true }
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
],
|
|
311
|
+
[
|
|
312
|
+
{ 'result.id': 1, startDate: -1 },
|
|
313
|
+
{
|
|
314
|
+
name: 'searchByResultId',
|
|
315
|
+
partialFilterExpression: {
|
|
316
|
+
'result.id': { $exists: true }
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
],
|
|
320
|
+
[
|
|
321
|
+
{ 'result.code': 1, startDate: -1 },
|
|
322
|
+
{
|
|
323
|
+
name: 'searchByResultCode',
|
|
324
|
+
partialFilterExpression: {
|
|
325
|
+
'result.code': { $exists: true }
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
],
|
|
329
|
+
[
|
|
330
|
+
{ 'result.orderNumber': 1, startDate: -1 },
|
|
331
|
+
{
|
|
332
|
+
name: 'searchByResultOrderNumber',
|
|
333
|
+
partialFilterExpression: {
|
|
334
|
+
'result.orderNumber': { $exists: true }
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
],
|
|
338
|
+
[
|
|
339
|
+
{ 'fromLocation.typeOf': 1, startDate: -1 },
|
|
340
|
+
{
|
|
341
|
+
name: 'searchByFromLocationTypeOf',
|
|
342
|
+
partialFilterExpression: {
|
|
343
|
+
'fromLocation.typeOf': { $exists: true }
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
],
|
|
347
|
+
[
|
|
348
|
+
{ 'fromLocation.accountNumber': 1, startDate: -1 },
|
|
349
|
+
{
|
|
350
|
+
name: 'searchByFromLocationAccountNumber',
|
|
351
|
+
partialFilterExpression: {
|
|
352
|
+
'fromLocation.accountNumber': { $exists: true }
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
],
|
|
356
|
+
[
|
|
357
|
+
{ 'fromLocation.accountType': 1, startDate: -1 },
|
|
358
|
+
{
|
|
359
|
+
name: 'searchByFromLocationAccountType',
|
|
360
|
+
partialFilterExpression: {
|
|
361
|
+
'fromLocation.accountType': { $exists: true }
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
],
|
|
365
|
+
[
|
|
366
|
+
{ 'toLocation.typeOf': 1, startDate: -1 },
|
|
367
|
+
{
|
|
368
|
+
name: 'searchByToLocationTypeOf',
|
|
369
|
+
partialFilterExpression: {
|
|
370
|
+
'toLocation.typeOf': { $exists: true }
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
],
|
|
374
|
+
[
|
|
375
|
+
{ 'toLocation.accountNumber': 1, startDate: -1 },
|
|
376
|
+
{
|
|
377
|
+
name: 'searchByToLocationAccountNumber',
|
|
378
|
+
partialFilterExpression: {
|
|
379
|
+
'toLocation.accountNumber': { $exists: true }
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
],
|
|
383
|
+
[
|
|
384
|
+
{ 'toLocation.accountType': 1, startDate: -1 },
|
|
385
|
+
{
|
|
386
|
+
name: 'searchByToLocationAccountType',
|
|
387
|
+
partialFilterExpression: {
|
|
388
|
+
'toLocation.accountType': { $exists: true }
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
]
|
|
392
|
+
];
|
|
393
|
+
exports.indexes = indexes;
|
|
@@ -1,75 +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 = "AdditionalProperty";
|
|
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
|
-
codeValue: string;
|
|
57
|
-
name?: any;
|
|
58
|
-
project?: any;
|
|
59
|
-
inCodeSet?: any;
|
|
60
|
-
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
61
|
-
typeOf: string;
|
|
62
|
-
codeValue: string;
|
|
63
|
-
name?: any;
|
|
64
|
-
project?: any;
|
|
65
|
-
inCodeSet?: any;
|
|
66
|
-
}>> & Omit<import("mongoose").FlatRecord<{
|
|
67
|
-
typeOf: string;
|
|
68
|
-
codeValue: string;
|
|
69
|
-
name?: any;
|
|
70
|
-
project?: any;
|
|
71
|
-
inCodeSet?: any;
|
|
72
|
-
}> & {
|
|
73
|
-
_id: import("mongoose").Types.ObjectId;
|
|
74
|
-
}, never>>;
|
|
75
|
-
export { modelName, schema };
|
|
3
|
+
declare function createSchema(): Schema;
|
|
4
|
+
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
5
|
+
export { modelName, indexes, createSchema };
|