@chevre/domain 21.0.0-alpha.6 → 21.0.0-alpha.7
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/mongoose/model/account.js +0 -10
- package/lib/chevre/repo/mongoose/model/accountTitle.js +0 -25
- package/lib/chevre/repo/mongoose/model/accountTransaction.js +0 -10
- package/lib/chevre/repo/mongoose/model/accountingReport.js +0 -10
- package/lib/chevre/repo/mongoose/model/action.js +0 -10
- package/lib/chevre/repo/mongoose/model/additionalProperty.js +0 -10
- package/lib/chevre/repo/mongoose/model/aggregation.js +0 -10
- package/lib/chevre/repo/mongoose/model/assetTransaction.d.ts +1 -1
- package/lib/chevre/repo/mongoose/model/assetTransaction.js +0 -10
- package/lib/chevre/repo/mongoose/model/authorization.js +0 -10
- package/lib/chevre/repo/mongoose/model/categoryCode.js +0 -10
- package/lib/chevre/repo/mongoose/model/comments.js +0 -10
- package/lib/chevre/repo/mongoose/model/creativeWork.js +0 -10
- package/lib/chevre/repo/mongoose/model/customer.js +0 -10
- package/lib/chevre/repo/mongoose/model/emailMessages.js +0 -10
- package/lib/chevre/repo/mongoose/model/event.js +0 -10
- package/lib/chevre/repo/mongoose/model/member.js +0 -10
- package/lib/chevre/repo/mongoose/model/merchantReturnPolicy.js +0 -10
- package/lib/chevre/repo/mongoose/model/offer.js +0 -10
- package/lib/chevre/repo/mongoose/model/offerCatalog.js +0 -10
- package/lib/chevre/repo/mongoose/model/order.js +0 -10
- package/lib/chevre/repo/mongoose/model/ownershipInfo.js +0 -10
- package/lib/chevre/repo/mongoose/model/place.js +0 -10
- package/lib/chevre/repo/mongoose/model/priceSpecification.js +0 -10
- package/lib/chevre/repo/mongoose/model/product.js +0 -10
- package/lib/chevre/repo/mongoose/model/project.js +0 -10
- package/lib/chevre/repo/mongoose/model/reservation.js +0 -10
- package/lib/chevre/repo/mongoose/model/role.js +0 -10
- package/lib/chevre/repo/mongoose/model/seller.js +0 -10
- package/lib/chevre/repo/mongoose/model/serviceOutput.js +0 -10
- package/lib/chevre/repo/mongoose/model/task.js +0 -10
- package/lib/chevre/repo/mongoose/model/telemetry.js +0 -10
- package/lib/chevre/repo/mongoose/model/transaction.d.ts +1 -1
- package/lib/chevre/repo/mongoose/model/trip.js +0 -10
- package/package.json +1 -1
|
@@ -58,13 +58,3 @@ schema.index({ name: 1, openDate: -1 }, { name: 'searchByName-v2' });
|
|
|
58
58
|
schema.index({ openDate: -1 }, { name: 'searchByOpenDate-v2' });
|
|
59
59
|
schema.index({ status: 1, openDate: -1 }, { name: 'searchByStatus-v2' });
|
|
60
60
|
schema.index({ accountType: 1, accountNumber: 1, status: 1 }, { name: 'authorizeAmount' });
|
|
61
|
-
(0, mongoose_1.model)(modelName, schema)
|
|
62
|
-
.on('index',
|
|
63
|
-
// tslint:disable-next-line:no-single-line-block-comment
|
|
64
|
-
/* istanbul ignore next */
|
|
65
|
-
(error) => {
|
|
66
|
-
if (error !== undefined) {
|
|
67
|
-
// tslint:disable-next-line:no-console
|
|
68
|
-
console.error(error);
|
|
69
|
-
}
|
|
70
|
-
});
|
|
@@ -83,28 +83,3 @@ schema.index({ 'project.id': 1, 'hasCategoryCode.codeValue': 1 }, {
|
|
|
83
83
|
'hasCategoryCode.codeValue': { $exists: true }
|
|
84
84
|
}
|
|
85
85
|
});
|
|
86
|
-
// 'hasCategoryCode.hasCategoryCode.codeValue': null のインデックスは作成されてうまくいかないので保留
|
|
87
|
-
// schema.index(
|
|
88
|
-
// {
|
|
89
|
-
// 'project.id': 1,
|
|
90
|
-
// 'hasCategoryCode.hasCategoryCode.codeValue': 1
|
|
91
|
-
// },
|
|
92
|
-
// {
|
|
93
|
-
// name: 'uniqueHasCategoryCodeHasCategoryCodeCodeValue',
|
|
94
|
-
// unique: true,
|
|
95
|
-
// partialFilterExpression: {
|
|
96
|
-
// 'project.id': { $exists: true },
|
|
97
|
-
// 'hasCategoryCode.hasCategoryCode.codeValue': { $exists: true }
|
|
98
|
-
// }
|
|
99
|
-
// }
|
|
100
|
-
// );
|
|
101
|
-
(0, mongoose_1.model)(modelName, schema)
|
|
102
|
-
.on('index',
|
|
103
|
-
// tslint:disable-next-line:no-single-line-block-comment
|
|
104
|
-
/* istanbul ignore next */
|
|
105
|
-
(error) => {
|
|
106
|
-
if (error !== undefined) {
|
|
107
|
-
// tslint:disable-next-line:no-console
|
|
108
|
-
console.error(error);
|
|
109
|
-
}
|
|
110
|
-
});
|
|
@@ -109,13 +109,3 @@ schema.index({ tasksExportationStatus: 1, updatedAt: 1 }, {
|
|
|
109
109
|
schema.index({ status: 1, expires: 1 }, {
|
|
110
110
|
name: 'makeExpired'
|
|
111
111
|
});
|
|
112
|
-
(0, mongoose_1.model)(modelName, schema)
|
|
113
|
-
.on('index',
|
|
114
|
-
// tslint:disable-next-line:no-single-line-block-comment
|
|
115
|
-
/* istanbul ignore next */
|
|
116
|
-
(error) => {
|
|
117
|
-
if (error !== undefined) {
|
|
118
|
-
// tslint:disable-next-line:no-console
|
|
119
|
-
console.error(error);
|
|
120
|
-
}
|
|
121
|
-
});
|
|
@@ -92,13 +92,3 @@ schema.index({ 'mainEntity.acceptedOffers.itemOffered.reservationFor.startDate':
|
|
|
92
92
|
'mainEntity.acceptedOffers.itemOffered.reservationFor.startDate': { $exists: true }
|
|
93
93
|
}
|
|
94
94
|
});
|
|
95
|
-
(0, mongoose_1.model)(modelName, schema)
|
|
96
|
-
.on('index',
|
|
97
|
-
// tslint:disable-next-line:no-single-line-block-comment
|
|
98
|
-
/* istanbul ignore next */
|
|
99
|
-
(error) => {
|
|
100
|
-
if (error !== undefined) {
|
|
101
|
-
// tslint:disable-next-line:no-console
|
|
102
|
-
console.error(error);
|
|
103
|
-
}
|
|
104
|
-
});
|
|
@@ -242,13 +242,3 @@ schema.index({ 'toLocation.accountType': 1, startDate: -1 }, {
|
|
|
242
242
|
'toLocation.accountType': { $exists: true }
|
|
243
243
|
}
|
|
244
244
|
});
|
|
245
|
-
(0, mongoose_1.model)(modelName, schema)
|
|
246
|
-
.on('index',
|
|
247
|
-
// tslint:disable-next-line:no-single-line-block-comment
|
|
248
|
-
/* istanbul ignore next */
|
|
249
|
-
(error) => {
|
|
250
|
-
if (error !== undefined) {
|
|
251
|
-
// tslint:disable-next-line:no-console
|
|
252
|
-
console.error(error);
|
|
253
|
-
}
|
|
254
|
-
});
|
|
@@ -69,13 +69,3 @@ schema.index({ 'name.en': 1, codeValue: 1 }, {
|
|
|
69
69
|
'name.en': { $exists: true }
|
|
70
70
|
}
|
|
71
71
|
});
|
|
72
|
-
(0, mongoose_1.model)(modelName, schema)
|
|
73
|
-
.on('index',
|
|
74
|
-
// tslint:disable-next-line:no-single-line-block-comment
|
|
75
|
-
/* istanbul ignore next */
|
|
76
|
-
(error) => {
|
|
77
|
-
if (error !== undefined) {
|
|
78
|
-
// tslint:disable-next-line:no-console
|
|
79
|
-
console.error(error);
|
|
80
|
-
}
|
|
81
|
-
});
|
|
@@ -35,13 +35,3 @@ const schema = new mongoose_1.Schema({}, {
|
|
|
35
35
|
exports.schema = schema;
|
|
36
36
|
schema.index({ createdAt: 1 }, { name: 'searchByCreatedAt' });
|
|
37
37
|
schema.index({ updatedAt: 1 }, { name: 'searchByUpdatedAt' });
|
|
38
|
-
(0, mongoose_1.model)(modelName, schema)
|
|
39
|
-
.on('index',
|
|
40
|
-
// tslint:disable-next-line:no-single-line-block-comment
|
|
41
|
-
/* istanbul ignore next */
|
|
42
|
-
(error) => {
|
|
43
|
-
if (error !== undefined) {
|
|
44
|
-
// tslint:disable-next-line:no-console
|
|
45
|
-
console.error(error);
|
|
46
|
-
}
|
|
47
|
-
});
|
|
@@ -54,8 +54,8 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
|
|
|
54
54
|
object?: any;
|
|
55
55
|
typeOf?: string | undefined;
|
|
56
56
|
status?: string | undefined;
|
|
57
|
-
expires?: Date | undefined;
|
|
58
57
|
error?: any;
|
|
58
|
+
expires?: Date | undefined;
|
|
59
59
|
project?: any;
|
|
60
60
|
agent?: any;
|
|
61
61
|
recipient?: any;
|
|
@@ -172,13 +172,3 @@ schema.index({ 'object.itemOffered.serviceOutput.identifier': 1, startDate: -1 }
|
|
|
172
172
|
schema.index({ typeOf: 1, status: 1, tasksExportationStatus: 1 }, { name: 'startExportTasks' });
|
|
173
173
|
schema.index({ tasksExportationStatus: 1, updatedAt: 1 }, { name: 'reexportTasks' });
|
|
174
174
|
schema.index({ status: 1, expires: 1 }, { name: 'makeExpired' });
|
|
175
|
-
(0, mongoose_1.model)(modelName, schema)
|
|
176
|
-
.on('index',
|
|
177
|
-
// tslint:disable-next-line:no-single-line-block-comment
|
|
178
|
-
/* istanbul ignore next */
|
|
179
|
-
(error) => {
|
|
180
|
-
if (error !== undefined) {
|
|
181
|
-
// tslint:disable-next-line:no-console
|
|
182
|
-
console.error(error);
|
|
183
|
-
}
|
|
184
|
-
});
|
|
@@ -93,13 +93,3 @@ schema.index({ 'object.typeOfGood.id': 1, validFrom: 1 }, {
|
|
|
93
93
|
'object.typeOfGood.id': { $exists: true }
|
|
94
94
|
}
|
|
95
95
|
});
|
|
96
|
-
(0, mongoose_1.model)(modelName, schema)
|
|
97
|
-
.on('index',
|
|
98
|
-
// tslint:disable-next-line:no-single-line-block-comment
|
|
99
|
-
/* istanbul ignore next */
|
|
100
|
-
(error) => {
|
|
101
|
-
if (error !== undefined) {
|
|
102
|
-
// tslint:disable-next-line:no-console
|
|
103
|
-
console.error(error);
|
|
104
|
-
}
|
|
105
|
-
});
|
|
@@ -87,13 +87,3 @@ schema.index({ additionalProperty: 1, codeValue: 1 }, {
|
|
|
87
87
|
additionalProperty: { $exists: true }
|
|
88
88
|
}
|
|
89
89
|
});
|
|
90
|
-
(0, mongoose_1.model)(modelName, schema)
|
|
91
|
-
.on('index',
|
|
92
|
-
// tslint:disable-next-line:no-single-line-block-comment
|
|
93
|
-
/* istanbul ignore next */
|
|
94
|
-
(error) => {
|
|
95
|
-
if (error !== undefined) {
|
|
96
|
-
// tslint:disable-next-line:no-console
|
|
97
|
-
console.error(error);
|
|
98
|
-
}
|
|
99
|
-
});
|
|
@@ -71,13 +71,3 @@ schema.index({ additionalProperty: 1, dateCreated: 1 }, {
|
|
|
71
71
|
additionalProperty: { $exists: true }
|
|
72
72
|
}
|
|
73
73
|
});
|
|
74
|
-
(0, mongoose_1.model)(modelName, schema)
|
|
75
|
-
.on('index',
|
|
76
|
-
// tslint:disable-next-line:no-single-line-block-comment
|
|
77
|
-
/* istanbul ignore next */
|
|
78
|
-
(error) => {
|
|
79
|
-
if (error !== undefined) {
|
|
80
|
-
// tslint:disable-next-line:no-console
|
|
81
|
-
console.error(error);
|
|
82
|
-
}
|
|
83
|
-
});
|
|
@@ -117,13 +117,3 @@ schema.index({ additionalProperty: 1, identifier: 1 }, {
|
|
|
117
117
|
additionalProperty: { $exists: true }
|
|
118
118
|
}
|
|
119
119
|
});
|
|
120
|
-
(0, mongoose_1.model)(modelName, schema)
|
|
121
|
-
.on('index',
|
|
122
|
-
// tslint:disable-next-line:no-single-line-block-comment
|
|
123
|
-
/* istanbul ignore next */
|
|
124
|
-
(error) => {
|
|
125
|
-
if (error !== undefined) {
|
|
126
|
-
// tslint:disable-next-line:no-console
|
|
127
|
-
console.error(error);
|
|
128
|
-
}
|
|
129
|
-
});
|
|
@@ -64,13 +64,3 @@ schema.index({ 'name.en': 1, branchCode: 1 }, {
|
|
|
64
64
|
'name.en': { $exists: true }
|
|
65
65
|
}
|
|
66
66
|
});
|
|
67
|
-
(0, mongoose_1.model)(modelName, schema)
|
|
68
|
-
.on('index',
|
|
69
|
-
// tslint:disable-next-line:no-single-line-block-comment
|
|
70
|
-
/* istanbul ignore next */
|
|
71
|
-
(error) => {
|
|
72
|
-
if (error !== undefined) {
|
|
73
|
-
// tslint:disable-next-line:no-console
|
|
74
|
-
console.error(error);
|
|
75
|
-
}
|
|
76
|
-
});
|
|
@@ -52,13 +52,3 @@ schema.index({ identifier: 1 }, {
|
|
|
52
52
|
schema.index({ 'project.id': 1, identifier: 1 }, {
|
|
53
53
|
name: 'searchByProjectId'
|
|
54
54
|
});
|
|
55
|
-
(0, mongoose_1.model)(modelName, schema)
|
|
56
|
-
.on('index',
|
|
57
|
-
// tslint:disable-next-line:no-single-line-block-comment
|
|
58
|
-
/* istanbul ignore next */
|
|
59
|
-
(error) => {
|
|
60
|
-
if (error !== undefined) {
|
|
61
|
-
// tslint:disable-next-line:no-console
|
|
62
|
-
console.error(error);
|
|
63
|
-
}
|
|
64
|
-
});
|
|
@@ -228,13 +228,3 @@ schema.index({ additionalProperty: 1, startDate: 1 }, {
|
|
|
228
228
|
additionalProperty: { $exists: true }
|
|
229
229
|
}
|
|
230
230
|
});
|
|
231
|
-
(0, mongoose_1.model)(modelName, schema)
|
|
232
|
-
.on('index',
|
|
233
|
-
// tslint:disable-next-line:no-single-line-block-comment
|
|
234
|
-
/* istanbul ignore next */
|
|
235
|
-
(error) => {
|
|
236
|
-
if (error !== undefined) {
|
|
237
|
-
// tslint:disable-next-line:no-console
|
|
238
|
-
console.error(error);
|
|
239
|
-
}
|
|
240
|
-
});
|
|
@@ -61,13 +61,3 @@ schema.index({ 'member.hasRole.roleName': 1, 'member.id': 1 }, {
|
|
|
61
61
|
'member.hasRole.roleName': { $exists: true }
|
|
62
62
|
}
|
|
63
63
|
});
|
|
64
|
-
(0, mongoose_1.model)(modelName, schema)
|
|
65
|
-
.on('index',
|
|
66
|
-
// tslint:disable-next-line:no-single-line-block-comment
|
|
67
|
-
/* istanbul ignore next */
|
|
68
|
-
(error) => {
|
|
69
|
-
if (error !== undefined) {
|
|
70
|
-
// tslint:disable-next-line:no-console
|
|
71
|
-
console.error(error);
|
|
72
|
-
}
|
|
73
|
-
});
|
|
@@ -46,13 +46,3 @@ const schema = new mongoose_1.Schema({
|
|
|
46
46
|
exports.schema = schema;
|
|
47
47
|
schema.index({ createdAt: 1 }, { name: 'searchByCreatedAt' });
|
|
48
48
|
schema.index({ updatedAt: 1 }, { name: 'searchByUpdatedAt' });
|
|
49
|
-
(0, mongoose_1.model)(modelName, schema)
|
|
50
|
-
.on('index',
|
|
51
|
-
// tslint:disable-next-line:no-single-line-block-comment
|
|
52
|
-
/* istanbul ignore next */
|
|
53
|
-
(error) => {
|
|
54
|
-
if (error !== undefined) {
|
|
55
|
-
// tslint:disable-next-line:no-console
|
|
56
|
-
console.error(error);
|
|
57
|
-
}
|
|
58
|
-
});
|
|
@@ -206,13 +206,3 @@ schema.index({ validThrough: 1, 'priceSpecification.price': 1 }, {
|
|
|
206
206
|
validThrough: { $exists: true }
|
|
207
207
|
}
|
|
208
208
|
});
|
|
209
|
-
(0, mongoose_1.model)(modelName, schema)
|
|
210
|
-
.on('index',
|
|
211
|
-
// tslint:disable-next-line:no-single-line-block-comment
|
|
212
|
-
/* istanbul ignore next */
|
|
213
|
-
(error) => {
|
|
214
|
-
if (error !== undefined) {
|
|
215
|
-
// tslint:disable-next-line:no-console
|
|
216
|
-
console.error(error);
|
|
217
|
-
}
|
|
218
|
-
});
|
|
@@ -81,13 +81,3 @@ schema.index({ additionalProperty: 1, identifier: 1 }, {
|
|
|
81
81
|
additionalProperty: { $exists: true }
|
|
82
82
|
}
|
|
83
83
|
});
|
|
84
|
-
(0, mongoose_1.model)(modelName, schema)
|
|
85
|
-
.on('index',
|
|
86
|
-
// tslint:disable-next-line:no-single-line-block-comment
|
|
87
|
-
/* istanbul ignore next */
|
|
88
|
-
(error) => {
|
|
89
|
-
if (error !== undefined) {
|
|
90
|
-
// tslint:disable-next-line:no-console
|
|
91
|
-
console.error(error);
|
|
92
|
-
}
|
|
93
|
-
});
|
|
@@ -303,13 +303,3 @@ schema.index({ additionalProperty: 1, orderDate: -1 }, {
|
|
|
303
303
|
additionalProperty: { $exists: true }
|
|
304
304
|
}
|
|
305
305
|
});
|
|
306
|
-
(0, mongoose_1.model)(modelName, schema)
|
|
307
|
-
.on('index',
|
|
308
|
-
// tslint:disable-next-line:no-single-line-block-comment
|
|
309
|
-
/* istanbul ignore next */
|
|
310
|
-
(error) => {
|
|
311
|
-
if (error !== undefined) {
|
|
312
|
-
// tslint:disable-next-line:no-console
|
|
313
|
-
console.error(error);
|
|
314
|
-
}
|
|
315
|
-
});
|
|
@@ -148,13 +148,3 @@ schema.index({ 'typeOfGood.reservationNumber': 1, ownedFrom: -1 }, {
|
|
|
148
148
|
'typeOfGood.reservationNumber': { $exists: true }
|
|
149
149
|
}
|
|
150
150
|
});
|
|
151
|
-
(0, mongoose_1.model)(modelName, schema)
|
|
152
|
-
.on('index',
|
|
153
|
-
// tslint:disable-next-line:no-single-line-block-comment
|
|
154
|
-
/* istanbul ignore next */
|
|
155
|
-
(error) => {
|
|
156
|
-
if (error !== undefined) {
|
|
157
|
-
// tslint:disable-next-line:no-console
|
|
158
|
-
console.error(error);
|
|
159
|
-
}
|
|
160
|
-
});
|
|
@@ -131,13 +131,3 @@ schema.index({ 'containsPlace.containsPlace.containsPlace.additionalProperty': 1
|
|
|
131
131
|
'containsPlace.containsPlace.containsPlace.additionalProperty': { $exists: true }
|
|
132
132
|
}
|
|
133
133
|
});
|
|
134
|
-
(0, mongoose_1.model)(modelName, schema)
|
|
135
|
-
.on('index',
|
|
136
|
-
// tslint:disable-next-line:no-single-line-block-comment
|
|
137
|
-
/* istanbul ignore next */
|
|
138
|
-
(error) => {
|
|
139
|
-
if (error !== undefined) {
|
|
140
|
-
// tslint:disable-next-line:no-console
|
|
141
|
-
console.error(error);
|
|
142
|
-
}
|
|
143
|
-
});
|
|
@@ -88,13 +88,3 @@ schema.index({ 'appliesToCategoryCode.inCodeSet.identifier': 1, price: 1 }, {
|
|
|
88
88
|
'appliesToCategoryCode.inCodeSet.identifier': { $exists: true }
|
|
89
89
|
}
|
|
90
90
|
});
|
|
91
|
-
(0, mongoose_1.model)(modelName, schema)
|
|
92
|
-
.on('index',
|
|
93
|
-
// tslint:disable-next-line:no-single-line-block-comment
|
|
94
|
-
/* istanbul ignore next */
|
|
95
|
-
(error) => {
|
|
96
|
-
if (error !== undefined) {
|
|
97
|
-
// tslint:disable-next-line:no-console
|
|
98
|
-
console.error(error);
|
|
99
|
-
}
|
|
100
|
-
});
|
|
@@ -99,13 +99,3 @@ schema.index({ 'name.en': 1, productID: 1 }, {
|
|
|
99
99
|
'name.en': { $exists: true }
|
|
100
100
|
}
|
|
101
101
|
});
|
|
102
|
-
(0, mongoose_1.model)(modelName, schema)
|
|
103
|
-
.on('index',
|
|
104
|
-
// tslint:disable-next-line:no-single-line-block-comment
|
|
105
|
-
/* istanbul ignore next */
|
|
106
|
-
(error) => {
|
|
107
|
-
if (error !== undefined) {
|
|
108
|
-
// tslint:disable-next-line:no-console
|
|
109
|
-
console.error(error);
|
|
110
|
-
}
|
|
111
|
-
});
|
|
@@ -45,13 +45,3 @@ const schema = new mongoose_1.Schema({
|
|
|
45
45
|
}
|
|
46
46
|
});
|
|
47
47
|
exports.schema = schema;
|
|
48
|
-
(0, mongoose_1.model)(modelName, schema)
|
|
49
|
-
.on('index',
|
|
50
|
-
// tslint:disable-next-line:no-single-line-block-comment
|
|
51
|
-
/* istanbul ignore next */
|
|
52
|
-
(error) => {
|
|
53
|
-
if (error !== undefined) {
|
|
54
|
-
// tslint:disable-next-line:no-console
|
|
55
|
-
console.error(error);
|
|
56
|
-
}
|
|
57
|
-
});
|
|
@@ -291,13 +291,3 @@ schema.index({ 'underName.identifier': 1, bookingTime: -1 }, {
|
|
|
291
291
|
'underName.identifier': { $exists: true }
|
|
292
292
|
}
|
|
293
293
|
});
|
|
294
|
-
(0, mongoose_1.model)(modelName, schema)
|
|
295
|
-
.on('index',
|
|
296
|
-
// tslint:disable-next-line:no-single-line-block-comment
|
|
297
|
-
/* istanbul ignore next */
|
|
298
|
-
(error) => {
|
|
299
|
-
if (error !== undefined) {
|
|
300
|
-
// tslint:disable-next-line:no-console
|
|
301
|
-
console.error(error);
|
|
302
|
-
}
|
|
303
|
-
});
|
|
@@ -47,13 +47,3 @@ schema.index({ permissions: 1, roleName: 1 }, {
|
|
|
47
47
|
permissions: { $exists: true }
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
|
-
(0, mongoose_1.model)(modelName, schema)
|
|
51
|
-
.on('index',
|
|
52
|
-
// tslint:disable-next-line:no-single-line-block-comment
|
|
53
|
-
/* istanbul ignore next */
|
|
54
|
-
(error) => {
|
|
55
|
-
if (error !== undefined) {
|
|
56
|
-
// tslint:disable-next-line:no-console
|
|
57
|
-
console.error(error);
|
|
58
|
-
}
|
|
59
|
-
});
|
|
@@ -74,13 +74,3 @@ schema.index({ additionalProperty: 1, branchCode: 1 }, {
|
|
|
74
74
|
additionalProperty: { $exists: true }
|
|
75
75
|
}
|
|
76
76
|
});
|
|
77
|
-
(0, mongoose_1.model)(modelName, schema)
|
|
78
|
-
.on('index',
|
|
79
|
-
// tslint:disable-next-line:no-single-line-block-comment
|
|
80
|
-
/* istanbul ignore next */
|
|
81
|
-
(error) => {
|
|
82
|
-
if (error !== undefined) {
|
|
83
|
-
// tslint:disable-next-line:no-console
|
|
84
|
-
console.error(error);
|
|
85
|
-
}
|
|
86
|
-
});
|
|
@@ -94,13 +94,3 @@ schema.index({ 'issuedThrough.serviceType.codeValue': 1, productID: 1 }, {
|
|
|
94
94
|
'issuedThrough.serviceType.codeValue': { $exists: true }
|
|
95
95
|
}
|
|
96
96
|
});
|
|
97
|
-
(0, mongoose_1.model)(modelName, schema)
|
|
98
|
-
.on('index',
|
|
99
|
-
// tslint:disable-next-line:no-single-line-block-comment
|
|
100
|
-
/* istanbul ignore next */
|
|
101
|
-
(error) => {
|
|
102
|
-
if (error !== undefined) {
|
|
103
|
-
// tslint:disable-next-line:no-console
|
|
104
|
-
console.error(error);
|
|
105
|
-
}
|
|
106
|
-
});
|
|
@@ -148,13 +148,3 @@ schema.index({ 'data.transactionId': 1, runsAt: -1 }, {
|
|
|
148
148
|
'data.transactionId': { $exists: true }
|
|
149
149
|
}
|
|
150
150
|
});
|
|
151
|
-
(0, mongoose_1.model)(modelName, schema)
|
|
152
|
-
.on('index',
|
|
153
|
-
// tslint:disable-next-line:no-single-line-block-comment
|
|
154
|
-
/* istanbul ignore next */
|
|
155
|
-
(error) => {
|
|
156
|
-
if (error !== undefined) {
|
|
157
|
-
// tslint:disable-next-line:no-console
|
|
158
|
-
console.error(error);
|
|
159
|
-
}
|
|
160
|
-
});
|
|
@@ -57,13 +57,3 @@ schema.index({ 'purpose.typeOf': 1, 'object.scope': 1, 'object.measuredAt': 1 },
|
|
|
57
57
|
'object.measuredAt': { $exists: true }
|
|
58
58
|
}
|
|
59
59
|
});
|
|
60
|
-
(0, mongoose_1.model)(modelName, schema)
|
|
61
|
-
.on('index',
|
|
62
|
-
// tslint:disable-next-line:no-single-line-block-comment
|
|
63
|
-
/* istanbul ignore next */
|
|
64
|
-
(error) => {
|
|
65
|
-
if (error !== undefined) {
|
|
66
|
-
// tslint:disable-next-line:no-console
|
|
67
|
-
console.error(error);
|
|
68
|
-
}
|
|
69
|
-
});
|
|
@@ -54,8 +54,8 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
|
|
|
54
54
|
object?: any;
|
|
55
55
|
typeOf?: string | undefined;
|
|
56
56
|
status?: string | undefined;
|
|
57
|
-
expires?: Date | undefined;
|
|
58
57
|
error?: any;
|
|
58
|
+
expires?: Date | undefined;
|
|
59
59
|
project?: any;
|
|
60
60
|
agent?: any;
|
|
61
61
|
recipient?: any;
|
|
@@ -39,13 +39,3 @@ const schema = new mongoose_1.Schema({
|
|
|
39
39
|
}
|
|
40
40
|
});
|
|
41
41
|
exports.schema = schema;
|
|
42
|
-
(0, mongoose_1.model)(modelName, schema)
|
|
43
|
-
.on('index',
|
|
44
|
-
// tslint:disable-next-line:no-single-line-block-comment
|
|
45
|
-
/* istanbul ignore next */
|
|
46
|
-
(error) => {
|
|
47
|
-
if (error !== undefined) {
|
|
48
|
-
// tslint:disable-next-line:no-console
|
|
49
|
-
console.error(error);
|
|
50
|
-
}
|
|
51
|
-
});
|
package/package.json
CHANGED