@chevre/domain 21.0.0-alpha.0 → 21.0.0-alpha.2
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/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/model/account.d.ts +26 -2
- package/lib/chevre/repo/mongoose/model/account.js +3 -3
- package/lib/chevre/repo/mongoose/model/accountTitle.d.ts +26 -2
- package/lib/chevre/repo/mongoose/model/accountTitle.js +9 -9
- package/lib/chevre/repo/mongoose/model/accountTransaction.d.ts +26 -2
- package/lib/chevre/repo/mongoose/model/accountTransaction.js +8 -8
- package/lib/chevre/repo/mongoose/model/accountingReport.d.ts +29 -5
- package/lib/chevre/repo/mongoose/model/accountingReport.js +6 -6
- package/lib/chevre/repo/mongoose/model/action.d.ts +26 -2
- package/lib/chevre/repo/mongoose/model/action.js +16 -16
- package/lib/chevre/repo/mongoose/model/additionalProperty.d.ts +26 -2
- package/lib/chevre/repo/mongoose/model/additionalProperty.js +6 -6
- package/lib/chevre/repo/mongoose/model/aggregation.d.ts +26 -2
- package/lib/chevre/repo/mongoose/model/aggregation.js +3 -3
- package/lib/chevre/repo/mongoose/model/assetTransaction.d.ts +26 -2
- package/lib/chevre/repo/mongoose/model/assetTransaction.js +12 -12
- package/lib/chevre/repo/mongoose/model/authorization.d.ts +26 -2
- package/lib/chevre/repo/mongoose/model/authorization.js +5 -5
- package/lib/chevre/repo/mongoose/model/categoryCode.d.ts +26 -2
- package/lib/chevre/repo/mongoose/model/categoryCode.js +8 -8
- package/lib/chevre/repo/mongoose/model/comments.d.ts +26 -2
- package/lib/chevre/repo/mongoose/model/comments.js +8 -8
- package/lib/chevre/repo/mongoose/model/creativeWork.d.ts +26 -2
- package/lib/chevre/repo/mongoose/model/creativeWork.js +9 -9
- package/lib/chevre/repo/mongoose/model/customer.d.ts +26 -2
- package/lib/chevre/repo/mongoose/model/customer.js +7 -7
- package/lib/chevre/repo/mongoose/model/emailMessages.d.ts +26 -2
- package/lib/chevre/repo/mongoose/model/emailMessages.js +7 -7
- package/lib/chevre/repo/mongoose/model/event.d.ts +26 -2
- package/lib/chevre/repo/mongoose/model/event.js +23 -23
- package/lib/chevre/repo/mongoose/model/member.d.ts +26 -2
- package/lib/chevre/repo/mongoose/model/member.js +5 -5
- package/lib/chevre/repo/mongoose/model/merchantReturnPolicy.d.ts +26 -2
- package/lib/chevre/repo/mongoose/model/merchantReturnPolicy.js +6 -6
- package/lib/chevre/repo/mongoose/model/offer.d.ts +26 -2
- package/lib/chevre/repo/mongoose/model/offer.js +27 -27
- package/lib/chevre/repo/mongoose/model/offerCatalog.d.ts +26 -2
- package/lib/chevre/repo/mongoose/model/offerCatalog.js +10 -10
- package/lib/chevre/repo/mongoose/model/order.d.ts +26 -2
- package/lib/chevre/repo/mongoose/model/order.js +14 -14
- package/lib/chevre/repo/mongoose/model/ownershipInfo.d.ts +26 -2
- package/lib/chevre/repo/mongoose/model/ownershipInfo.js +8 -8
- package/lib/chevre/repo/mongoose/model/place.d.ts +26 -2
- package/lib/chevre/repo/mongoose/model/place.js +16 -16
- package/lib/chevre/repo/mongoose/model/priceSpecification.d.ts +26 -2
- package/lib/chevre/repo/mongoose/model/priceSpecification.js +8 -8
- package/lib/chevre/repo/mongoose/model/product.d.ts +26 -2
- package/lib/chevre/repo/mongoose/model/product.js +13 -13
- package/lib/chevre/repo/mongoose/model/project.d.ts +26 -2
- package/lib/chevre/repo/mongoose/model/project.js +6 -6
- package/lib/chevre/repo/mongoose/model/reservation.d.ts +26 -2
- package/lib/chevre/repo/mongoose/model/reservation.js +14 -14
- package/lib/chevre/repo/mongoose/model/role.d.ts +26 -2
- package/lib/chevre/repo/mongoose/model/role.js +3 -3
- package/lib/chevre/repo/mongoose/model/seller.d.ts +26 -2
- package/lib/chevre/repo/mongoose/model/seller.js +11 -11
- package/lib/chevre/repo/mongoose/model/serviceOutput.d.ts +26 -2
- package/lib/chevre/repo/mongoose/model/serviceOutput.js +4 -4
- package/lib/chevre/repo/mongoose/model/task.d.ts +26 -2
- package/lib/chevre/repo/mongoose/model/task.js +6 -6
- package/lib/chevre/repo/mongoose/model/telemetry.d.ts +26 -2
- package/lib/chevre/repo/mongoose/model/telemetry.js +8 -8
- package/lib/chevre/repo/mongoose/model/transaction.d.ts +26 -2
- package/lib/chevre/repo/mongoose/model/transaction.js +11 -11
- package/lib/chevre/repo/mongoose/model/trip.d.ts +26 -2
- package/lib/chevre/repo/mongoose/model/trip.js +4 -4
- package/lib/chevre/repo/offer.js +2 -2
- package/lib/chevre/repo/offerCatalog.js +1 -1
- package/lib/chevre/repo/order.js +1 -1
- package/lib/chevre/repo/ownershipInfo.js +1 -1
- package/lib/chevre/repo/permit.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/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/package.json +1 -1
|
@@ -18,7 +18,7 @@ const factory = require("../factory");
|
|
|
18
18
|
*/
|
|
19
19
|
class MongoRepository {
|
|
20
20
|
constructor(connection) {
|
|
21
|
-
this.accountModel = connection.model(account_1.modelName);
|
|
21
|
+
this.accountModel = connection.model(account_1.modelName, account_1.schema);
|
|
22
22
|
}
|
|
23
23
|
// tslint:disable-next-line:cyclomatic-complexity max-func-body-length
|
|
24
24
|
static CREATE_MONGO_CONDITIONS(params) {
|
|
@@ -17,7 +17,7 @@ const accountTitle_1 = require("./mongoose/model/accountTitle");
|
|
|
17
17
|
*/
|
|
18
18
|
class MongoRepository {
|
|
19
19
|
constructor(connection) {
|
|
20
|
-
this.accountTitleModel = connection.model(accountTitle_1.modelName);
|
|
20
|
+
this.accountTitleModel = connection.model(accountTitle_1.modelName, accountTitle_1.schema);
|
|
21
21
|
}
|
|
22
22
|
deleteByProject(params) {
|
|
23
23
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -19,7 +19,7 @@ const factory = require("../factory");
|
|
|
19
19
|
*/
|
|
20
20
|
class MongoRepository {
|
|
21
21
|
constructor(connection) {
|
|
22
|
-
this.transactionModel = connection.model(accountTransaction_1.modelName);
|
|
22
|
+
this.transactionModel = connection.model(accountTransaction_1.modelName, accountTransaction_1.schema);
|
|
23
23
|
}
|
|
24
24
|
static CREATE_MONGO_CONDITIONS(params) {
|
|
25
25
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
|
|
@@ -17,7 +17,7 @@ const errorHandler_1 = require("../errorHandler");
|
|
|
17
17
|
*/
|
|
18
18
|
class MongoRepository {
|
|
19
19
|
constructor(connection) {
|
|
20
|
-
this.accountingReportModel = connection.model(accountingReport_1.modelName);
|
|
20
|
+
this.accountingReportModel = connection.model(accountingReport_1.modelName, accountingReport_1.schema);
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
23
|
* なければ作成する
|
|
@@ -18,7 +18,7 @@ Object.defineProperty(exports, "modelName", { enumerable: true, get: function ()
|
|
|
18
18
|
*/
|
|
19
19
|
class MongoRepository {
|
|
20
20
|
constructor(connection) {
|
|
21
|
-
this.actionModel = connection.model(action_1.modelName);
|
|
21
|
+
this.actionModel = connection.model(action_1.modelName, action_1.schema);
|
|
22
22
|
}
|
|
23
23
|
// tslint:disable-next-line:cyclomatic-complexity max-func-body-length
|
|
24
24
|
static CREATE_MONGO_CONDITIONS(params) {
|
|
@@ -28,7 +28,7 @@ const factory = require("../factory");
|
|
|
28
28
|
*/
|
|
29
29
|
class MongoRepository {
|
|
30
30
|
constructor(connection) {
|
|
31
|
-
this.additionalPropertyModel = connection.model(additionalProperty_1.modelName);
|
|
31
|
+
this.additionalPropertyModel = connection.model(additionalProperty_1.modelName, additionalProperty_1.schema);
|
|
32
32
|
}
|
|
33
33
|
// tslint:disable-next-line:cyclomatic-complexity max-func-body-length
|
|
34
34
|
static CREATE_MONGO_CONDITIONS(params) {
|
|
@@ -41,7 +41,7 @@ var AggregationType;
|
|
|
41
41
|
*/
|
|
42
42
|
class MongoRepository {
|
|
43
43
|
constructor(connection) {
|
|
44
|
-
this.aggregationModel = connection.model(aggregation_1.modelName);
|
|
44
|
+
this.aggregationModel = connection.model(aggregation_1.modelName, aggregation_1.schema);
|
|
45
45
|
}
|
|
46
46
|
saveAggregation(params) {
|
|
47
47
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -19,7 +19,7 @@ const factory = require("../factory");
|
|
|
19
19
|
*/
|
|
20
20
|
class MongoRepository {
|
|
21
21
|
constructor(connection) {
|
|
22
|
-
this.transactionModel = connection.model(assetTransaction_1.modelName);
|
|
22
|
+
this.transactionModel = connection.model(assetTransaction_1.modelName, assetTransaction_1.schema);
|
|
23
23
|
}
|
|
24
24
|
// tslint:disable-next-line:cyclomatic-complexity max-func-body-length
|
|
25
25
|
static CREATE_MONGO_CONDITIONS(params) {
|
|
@@ -28,7 +28,7 @@ const factory = require("../factory");
|
|
|
28
28
|
*/
|
|
29
29
|
class MongoRepository {
|
|
30
30
|
constructor(connection) {
|
|
31
|
-
this.categoryCodeModel = connection.model(categoryCode_1.modelName);
|
|
31
|
+
this.categoryCodeModel = connection.model(categoryCode_1.modelName, categoryCode_1.schema);
|
|
32
32
|
}
|
|
33
33
|
// tslint:disable-next-line:cyclomatic-complexity max-func-body-length
|
|
34
34
|
static CREATE_MONGO_CONDITIONS(params) {
|
package/lib/chevre/repo/code.js
CHANGED
|
@@ -20,7 +20,7 @@ Object.defineProperty(exports, "modelName", { enumerable: true, get: function ()
|
|
|
20
20
|
*/
|
|
21
21
|
class MongoRepository {
|
|
22
22
|
constructor(connection) {
|
|
23
|
-
this.authorizationModel = connection.model(authorization_1.modelName);
|
|
23
|
+
this.authorizationModel = connection.model(authorization_1.modelName, authorization_1.schema);
|
|
24
24
|
}
|
|
25
25
|
// tslint:disable-next-line:max-func-body-length
|
|
26
26
|
static CREATE_MONGO_CONDITIONS(params) {
|
|
@@ -17,7 +17,7 @@ const factory = require("../factory");
|
|
|
17
17
|
*/
|
|
18
18
|
class MongoRepository {
|
|
19
19
|
constructor(connection) {
|
|
20
|
-
this.commentModel = connection.model(comments_1.modelName);
|
|
20
|
+
this.commentModel = connection.model(comments_1.modelName, comments_1.schema);
|
|
21
21
|
}
|
|
22
22
|
static CREATE_MONGO_CONDITIONS(params) {
|
|
23
23
|
var _a, _b, _c, _d, _e, _f;
|
|
@@ -29,7 +29,7 @@ const factory = require("../factory");
|
|
|
29
29
|
*/
|
|
30
30
|
class MongoRepository {
|
|
31
31
|
constructor(connection) {
|
|
32
|
-
this.creativeWorkModel = connection.model(creativeWork_1.modelName);
|
|
32
|
+
this.creativeWorkModel = connection.model(creativeWork_1.modelName, creativeWork_1.schema);
|
|
33
33
|
}
|
|
34
34
|
// tslint:disable-next-line:max-func-body-length
|
|
35
35
|
static CREATE_MONGO_CONDITIONS(params) {
|
|
@@ -28,7 +28,7 @@ const factory = require("../factory");
|
|
|
28
28
|
*/
|
|
29
29
|
class MongoRepository {
|
|
30
30
|
constructor(connection) {
|
|
31
|
-
this.customerModel = connection.model(customer_1.modelName);
|
|
31
|
+
this.customerModel = connection.model(customer_1.modelName, customer_1.schema);
|
|
32
32
|
}
|
|
33
33
|
// tslint:disable-next-line:max-func-body-length
|
|
34
34
|
static CREATE_MONGO_CONDITIONS(params) {
|
|
@@ -28,7 +28,7 @@ const factory = require("../factory");
|
|
|
28
28
|
*/
|
|
29
29
|
class MongoRepository {
|
|
30
30
|
constructor(connection) {
|
|
31
|
-
this.emailMessageModel = connection.model(emailMessages_1.modelName);
|
|
31
|
+
this.emailMessageModel = connection.model(emailMessages_1.modelName, emailMessages_1.schema);
|
|
32
32
|
}
|
|
33
33
|
static CREATE_MONGO_CONDITIONS(params) {
|
|
34
34
|
var _a, _b, _c, _d, _e;
|
package/lib/chevre/repo/event.js
CHANGED
|
@@ -45,7 +45,7 @@ exports.PROJECTION_MINIMIZED_EVENT = {
|
|
|
45
45
|
*/
|
|
46
46
|
class MongoRepository {
|
|
47
47
|
constructor(connection) {
|
|
48
|
-
this.eventModel = connection.model(event_1.modelName);
|
|
48
|
+
this.eventModel = connection.model(event_1.modelName, event_1.schema);
|
|
49
49
|
}
|
|
50
50
|
// tslint:disable-next-line:cyclomatic-complexity max-func-body-length
|
|
51
51
|
static CREATE_MONGO_CONDITIONS(conditions) {
|
|
@@ -17,7 +17,7 @@ const member_1 = require("./mongoose/model/member");
|
|
|
17
17
|
*/
|
|
18
18
|
class MongoRepository {
|
|
19
19
|
constructor(connection) {
|
|
20
|
-
this.memberModel = connection.model(member_1.modelName);
|
|
20
|
+
this.memberModel = connection.model(member_1.modelName, member_1.schema);
|
|
21
21
|
}
|
|
22
22
|
// tslint:disable-next-line:cyclomatic-complexity max-func-body-length
|
|
23
23
|
static CREATE_MONGO_CONDITIONS(params) {
|
|
@@ -29,7 +29,7 @@ const factory = require("../factory");
|
|
|
29
29
|
*/
|
|
30
30
|
class MongoRepository {
|
|
31
31
|
constructor(connection) {
|
|
32
|
-
this.merchantReturnPolicyModel = connection.model(merchantReturnPolicy_1.modelName);
|
|
32
|
+
this.merchantReturnPolicyModel = connection.model(merchantReturnPolicy_1.modelName, merchantReturnPolicy_1.schema);
|
|
33
33
|
}
|
|
34
34
|
// tslint:disable-next-line:max-func-body-length
|
|
35
35
|
static CREATE_MONGO_CONDITIONS(params) {
|
|
@@ -1,9 +1,33 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
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';
|
|
2
26
|
declare const modelName = "Account";
|
|
3
27
|
/**
|
|
4
28
|
* 口座スキーマ
|
|
5
29
|
*/
|
|
6
|
-
declare const schema:
|
|
30
|
+
declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").ResolveSchemaOptions<{
|
|
7
31
|
collection: string;
|
|
8
32
|
id: true;
|
|
9
33
|
read: string;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.schema = exports.modelName = void 0;
|
|
4
|
-
const
|
|
4
|
+
const mongoose_1 = require("mongoose");
|
|
5
5
|
const modelName = 'Account';
|
|
6
6
|
exports.modelName = modelName;
|
|
7
7
|
const writeConcern = { j: true, w: 'majority', wtimeout: 10000 };
|
|
8
8
|
/**
|
|
9
9
|
* 口座スキーマ
|
|
10
10
|
*/
|
|
11
|
-
const schema = new
|
|
11
|
+
const schema = new mongoose_1.Schema({}, {
|
|
12
12
|
collection: 'accounts',
|
|
13
13
|
id: true,
|
|
14
14
|
read: 'primaryPreferred',
|
|
@@ -58,7 +58,7 @@ 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
|
-
|
|
61
|
+
(0, mongoose_1.model)(modelName, schema)
|
|
62
62
|
.on('index',
|
|
63
63
|
// tslint:disable-next-line:no-single-line-block-comment
|
|
64
64
|
/* istanbul ignore next */
|
|
@@ -1,9 +1,33 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
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';
|
|
2
26
|
declare const modelName = "AccountTitle";
|
|
3
27
|
/**
|
|
4
28
|
* 勘定科目スキーマ
|
|
5
29
|
*/
|
|
6
|
-
declare const schema:
|
|
30
|
+
declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").ResolveSchemaOptions<{
|
|
7
31
|
collection: string;
|
|
8
32
|
id: true;
|
|
9
33
|
read: string;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.schema = exports.modelName = void 0;
|
|
4
|
-
const
|
|
4
|
+
const mongoose_1 = require("mongoose");
|
|
5
5
|
const modelName = 'AccountTitle';
|
|
6
6
|
exports.modelName = modelName;
|
|
7
7
|
const writeConcern = { j: true, w: 'majority', wtimeout: 10000 };
|
|
8
8
|
/**
|
|
9
9
|
* 勘定科目スキーマ
|
|
10
10
|
*/
|
|
11
|
-
const schema = new
|
|
12
|
-
project:
|
|
11
|
+
const schema = new mongoose_1.Schema({
|
|
12
|
+
project: mongoose_1.SchemaTypes.Mixed,
|
|
13
13
|
typeOf: {
|
|
14
14
|
type: String,
|
|
15
15
|
required: true
|
|
@@ -18,11 +18,11 @@ const schema = new mongoose.Schema({
|
|
|
18
18
|
alternateName: String,
|
|
19
19
|
name: String,
|
|
20
20
|
description: String,
|
|
21
|
-
inCodeSet:
|
|
22
|
-
hasCategoryCode:
|
|
23
|
-
inDefinedTermSet:
|
|
24
|
-
hasDefinedTerm:
|
|
25
|
-
additionalProperty:
|
|
21
|
+
inCodeSet: mongoose_1.SchemaTypes.Mixed,
|
|
22
|
+
hasCategoryCode: mongoose_1.SchemaTypes.Mixed,
|
|
23
|
+
inDefinedTermSet: mongoose_1.SchemaTypes.Mixed,
|
|
24
|
+
hasDefinedTerm: mongoose_1.SchemaTypes.Mixed,
|
|
25
|
+
additionalProperty: mongoose_1.SchemaTypes.Mixed
|
|
26
26
|
}, {
|
|
27
27
|
collection: 'accountTitles',
|
|
28
28
|
id: true,
|
|
@@ -98,7 +98,7 @@ schema.index({ 'project.id': 1, 'hasCategoryCode.codeValue': 1 }, {
|
|
|
98
98
|
// }
|
|
99
99
|
// }
|
|
100
100
|
// );
|
|
101
|
-
|
|
101
|
+
(0, mongoose_1.model)(modelName, schema)
|
|
102
102
|
.on('index',
|
|
103
103
|
// tslint:disable-next-line:no-single-line-block-comment
|
|
104
104
|
/* istanbul ignore next */
|
|
@@ -1,9 +1,33 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
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';
|
|
2
26
|
declare const modelName = "AccountTransaction";
|
|
3
27
|
/**
|
|
4
28
|
* 口座取引スキーマ
|
|
5
29
|
*/
|
|
6
|
-
declare const schema:
|
|
30
|
+
declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").ResolveSchemaOptions<{
|
|
7
31
|
collection: string;
|
|
8
32
|
id: true;
|
|
9
33
|
read: string;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.schema = exports.modelName = void 0;
|
|
4
|
-
const
|
|
4
|
+
const mongoose_1 = require("mongoose");
|
|
5
5
|
const modelName = 'AccountTransaction';
|
|
6
6
|
exports.modelName = modelName;
|
|
7
7
|
const writeConcern = { j: true, w: 'majority', wtimeout: 10000 };
|
|
8
8
|
/**
|
|
9
9
|
* 口座取引スキーマ
|
|
10
10
|
*/
|
|
11
|
-
const schema = new
|
|
12
|
-
project:
|
|
11
|
+
const schema = new mongoose_1.Schema({
|
|
12
|
+
project: mongoose_1.SchemaTypes.Mixed,
|
|
13
13
|
status: {
|
|
14
14
|
type: String,
|
|
15
15
|
required: true
|
|
@@ -23,13 +23,13 @@ const schema = new mongoose.Schema({
|
|
|
23
23
|
type: String,
|
|
24
24
|
required: true
|
|
25
25
|
},
|
|
26
|
-
agent:
|
|
27
|
-
recipient:
|
|
28
|
-
object:
|
|
26
|
+
agent: mongoose_1.SchemaTypes.Mixed,
|
|
27
|
+
recipient: mongoose_1.SchemaTypes.Mixed,
|
|
28
|
+
object: mongoose_1.SchemaTypes.Mixed,
|
|
29
29
|
expires: Date,
|
|
30
30
|
startDate: Date,
|
|
31
31
|
endDate: Date,
|
|
32
|
-
potentialActions:
|
|
32
|
+
potentialActions: mongoose_1.SchemaTypes.Mixed
|
|
33
33
|
}, {
|
|
34
34
|
collection: 'accountTransactions',
|
|
35
35
|
id: true,
|
|
@@ -109,7 +109,7 @@ schema.index({ tasksExportationStatus: 1, updatedAt: 1 }, {
|
|
|
109
109
|
schema.index({ status: 1, expires: 1 }, {
|
|
110
110
|
name: 'makeExpired'
|
|
111
111
|
});
|
|
112
|
-
|
|
112
|
+
(0, mongoose_1.model)(modelName, schema)
|
|
113
113
|
.on('index',
|
|
114
114
|
// tslint:disable-next-line:no-single-line-block-comment
|
|
115
115
|
/* istanbul ignore next */
|
|
@@ -1,9 +1,33 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
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';
|
|
2
26
|
declare const modelName = "AccountingReport";
|
|
3
27
|
/**
|
|
4
28
|
* 経理レポートスキーマ
|
|
5
29
|
*/
|
|
6
|
-
declare const schema:
|
|
30
|
+
declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").ResolveSchemaOptions<{
|
|
7
31
|
collection: string;
|
|
8
32
|
id: true;
|
|
9
33
|
read: string;
|
|
@@ -27,8 +51,8 @@ declare const schema: mongoose.Schema<any, mongoose.Model<any, any, any, any, an
|
|
|
27
51
|
versionKey: false;
|
|
28
52
|
};
|
|
29
53
|
}>, {
|
|
30
|
-
hasPart: (typeof
|
|
31
|
-
mainEntity: typeof
|
|
32
|
-
project: typeof
|
|
54
|
+
hasPart: (typeof Schema.Types.Mixed)[];
|
|
55
|
+
mainEntity: typeof Schema.Types.Mixed;
|
|
56
|
+
project: typeof Schema.Types.Mixed;
|
|
33
57
|
}>;
|
|
34
58
|
export { modelName, schema };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.schema = exports.modelName = void 0;
|
|
4
|
-
const
|
|
4
|
+
const mongoose_1 = require("mongoose");
|
|
5
5
|
const modelName = 'AccountingReport';
|
|
6
6
|
exports.modelName = modelName;
|
|
7
7
|
const writeConcern = { j: true, w: 'majority', wtimeout: 10000 };
|
|
8
8
|
/**
|
|
9
9
|
* 経理レポートスキーマ
|
|
10
10
|
*/
|
|
11
|
-
const schema = new
|
|
12
|
-
hasPart: [
|
|
13
|
-
mainEntity:
|
|
14
|
-
project:
|
|
11
|
+
const schema = new mongoose_1.Schema({
|
|
12
|
+
hasPart: [mongoose_1.SchemaTypes.Mixed],
|
|
13
|
+
mainEntity: mongoose_1.SchemaTypes.Mixed,
|
|
14
|
+
project: mongoose_1.SchemaTypes.Mixed
|
|
15
15
|
}, {
|
|
16
16
|
collection: 'accountingReports',
|
|
17
17
|
id: true,
|
|
@@ -92,7 +92,7 @@ schema.index({ 'mainEntity.acceptedOffers.itemOffered.reservationFor.startDate':
|
|
|
92
92
|
'mainEntity.acceptedOffers.itemOffered.reservationFor.startDate': { $exists: true }
|
|
93
93
|
}
|
|
94
94
|
});
|
|
95
|
-
|
|
95
|
+
(0, mongoose_1.model)(modelName, schema)
|
|
96
96
|
.on('index',
|
|
97
97
|
// tslint:disable-next-line:no-single-line-block-comment
|
|
98
98
|
/* istanbul ignore next */
|
|
@@ -1,9 +1,33 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
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';
|
|
2
26
|
declare const modelName = "Action";
|
|
3
27
|
/**
|
|
4
28
|
* アクションスキーマ
|
|
5
29
|
*/
|
|
6
|
-
declare const schema:
|
|
30
|
+
declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").ResolveSchemaOptions<{
|
|
7
31
|
collection: string;
|
|
8
32
|
id: true;
|
|
9
33
|
read: string;
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.schema = exports.modelName = void 0;
|
|
4
|
-
const
|
|
4
|
+
const mongoose_1 = require("mongoose");
|
|
5
5
|
const modelName = 'Action';
|
|
6
6
|
exports.modelName = modelName;
|
|
7
7
|
const writeConcern = { j: true, w: 'majority', wtimeout: 10000 };
|
|
8
8
|
/**
|
|
9
9
|
* アクションスキーマ
|
|
10
10
|
*/
|
|
11
|
-
const schema = new
|
|
12
|
-
project:
|
|
11
|
+
const schema = new mongoose_1.Schema({
|
|
12
|
+
project: mongoose_1.SchemaTypes.Mixed,
|
|
13
13
|
actionStatus: String,
|
|
14
14
|
typeOf: String,
|
|
15
15
|
description: String,
|
|
16
|
-
agent:
|
|
17
|
-
recipient:
|
|
18
|
-
result:
|
|
19
|
-
error:
|
|
20
|
-
object:
|
|
16
|
+
agent: mongoose_1.SchemaTypes.Mixed,
|
|
17
|
+
recipient: mongoose_1.SchemaTypes.Mixed,
|
|
18
|
+
result: mongoose_1.SchemaTypes.Mixed,
|
|
19
|
+
error: mongoose_1.SchemaTypes.Mixed,
|
|
20
|
+
object: mongoose_1.SchemaTypes.Mixed,
|
|
21
21
|
startDate: Date,
|
|
22
22
|
endDate: Date,
|
|
23
|
-
purpose:
|
|
24
|
-
potentialActions:
|
|
25
|
-
amount:
|
|
26
|
-
fromLocation:
|
|
27
|
-
toLocation:
|
|
28
|
-
instrument:
|
|
23
|
+
purpose: mongoose_1.SchemaTypes.Mixed,
|
|
24
|
+
potentialActions: mongoose_1.SchemaTypes.Mixed,
|
|
25
|
+
amount: mongoose_1.SchemaTypes.Mixed,
|
|
26
|
+
fromLocation: mongoose_1.SchemaTypes.Mixed,
|
|
27
|
+
toLocation: mongoose_1.SchemaTypes.Mixed,
|
|
28
|
+
instrument: mongoose_1.SchemaTypes.Mixed,
|
|
29
29
|
// add location(2022-11-11~)
|
|
30
|
-
location:
|
|
30
|
+
location: mongoose_1.SchemaTypes.Mixed
|
|
31
31
|
}, {
|
|
32
32
|
collection: 'actions',
|
|
33
33
|
id: true,
|
|
@@ -242,7 +242,7 @@ schema.index({ 'toLocation.accountType': 1, startDate: -1 }, {
|
|
|
242
242
|
'toLocation.accountType': { $exists: true }
|
|
243
243
|
}
|
|
244
244
|
});
|
|
245
|
-
|
|
245
|
+
(0, mongoose_1.model)(modelName, schema)
|
|
246
246
|
.on('index',
|
|
247
247
|
// tslint:disable-next-line:no-single-line-block-comment
|
|
248
248
|
/* istanbul ignore next */
|
|
@@ -1,9 +1,33 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
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';
|
|
2
26
|
declare const modelName = "AdditionalProperty";
|
|
3
27
|
/**
|
|
4
28
|
* 追加特性スキーマ
|
|
5
29
|
*/
|
|
6
|
-
declare const schema:
|
|
30
|
+
declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").ResolveSchemaOptions<{
|
|
7
31
|
collection: string;
|
|
8
32
|
id: true;
|
|
9
33
|
read: string;
|