@chevre/domain 21.0.0-alpha.1 → 21.0.0-alpha.10
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/errorHandler.d.ts +1 -0
- package/lib/chevre/errorHandler.js +6 -2
- package/lib/chevre/index.d.ts +1 -2
- package/lib/chevre/index.js +1 -3
- package/lib/chevre/repo/account.d.ts +0 -2
- package/lib/chevre/repo/account.js +10 -6
- package/lib/chevre/repo/accountTitle.js +6 -2
- package/lib/chevre/repo/accountTransaction.d.ts +0 -2
- package/lib/chevre/repo/accountTransaction.js +9 -6
- package/lib/chevre/repo/accountingReport.js +7 -3
- package/lib/chevre/repo/action.d.ts +1 -2
- package/lib/chevre/repo/action.js +9 -6
- package/lib/chevre/repo/additionalProperty.js +8 -4
- package/lib/chevre/repo/aggregation.js +6 -2
- package/lib/chevre/repo/assetTransaction.d.ts +1 -2
- package/lib/chevre/repo/assetTransaction.js +9 -6
- package/lib/chevre/repo/categoryCode.js +8 -4
- package/lib/chevre/repo/code.d.ts +1 -1
- package/lib/chevre/repo/code.js +10 -5
- package/lib/chevre/repo/comment.js +8 -4
- package/lib/chevre/repo/creativeWork.d.ts +0 -2
- package/lib/chevre/repo/creativeWork.js +9 -6
- package/lib/chevre/repo/customer.js +8 -4
- package/lib/chevre/repo/emailMessage.js +8 -4
- package/lib/chevre/repo/event.js +8 -4
- package/lib/chevre/repo/member.js +16 -9
- package/lib/chevre/repo/merchantReturnPolicy.d.ts +0 -2
- package/lib/chevre/repo/merchantReturnPolicy.js +9 -6
- package/lib/chevre/repo/mongoose/onIndexCreated.d.ts +2 -0
- package/lib/chevre/repo/mongoose/onIndexCreated.js +11 -0
- package/lib/chevre/repo/mongoose/schemas/account.d.ts +54 -0
- package/lib/chevre/repo/mongoose/{model → schemas}/account.js +4 -14
- package/lib/chevre/repo/mongoose/schemas/accountTitle.d.ts +64 -0
- package/lib/chevre/repo/mongoose/{model → schemas}/accountTitle.js +10 -35
- package/lib/chevre/repo/mongoose/schemas/accountTransaction.d.ts +67 -0
- package/lib/chevre/repo/mongoose/{model → schemas}/accountTransaction.js +9 -19
- package/lib/chevre/repo/mongoose/schemas/accountingReport.d.ts +58 -0
- package/lib/chevre/repo/mongoose/{model → schemas}/accountingReport.js +7 -17
- package/lib/chevre/repo/mongoose/schemas/action.d.ts +73 -0
- package/lib/chevre/repo/mongoose/{model → schemas}/action.js +17 -27
- package/lib/chevre/repo/mongoose/schemas/additionalProperty.d.ts +60 -0
- package/lib/chevre/repo/mongoose/{model → schemas}/additionalProperty.js +7 -17
- package/lib/chevre/repo/mongoose/schemas/aggregation.d.ts +54 -0
- package/lib/chevre/repo/mongoose/{model → schemas}/aggregation.js +4 -14
- package/lib/chevre/repo/mongoose/schemas/assetTransaction.d.ts +72 -0
- package/lib/chevre/repo/mongoose/{model → schemas}/assetTransaction.js +13 -23
- package/lib/chevre/repo/mongoose/schemas/authorization.d.ts +61 -0
- package/lib/chevre/repo/mongoose/{model → schemas}/authorization.js +6 -16
- package/lib/chevre/repo/mongoose/schemas/categoryCode.d.ts +64 -0
- package/lib/chevre/repo/mongoose/{model → schemas}/categoryCode.js +9 -19
- package/lib/chevre/repo/mongoose/schemas/comments.d.ts +65 -0
- package/lib/chevre/repo/mongoose/{model → schemas}/comments.js +9 -19
- package/lib/chevre/repo/mongoose/schemas/creativeWork.d.ts +73 -0
- package/lib/chevre/repo/mongoose/{model → schemas}/creativeWork.js +10 -20
- package/lib/chevre/repo/mongoose/schemas/customer.d.ts +64 -0
- package/lib/chevre/repo/mongoose/{model → schemas}/customer.js +8 -18
- package/lib/chevre/repo/mongoose/schemas/emailMessages.d.ts +62 -0
- package/lib/chevre/repo/mongoose/{model → schemas}/emailMessages.js +8 -18
- package/lib/chevre/repo/mongoose/{model → schemas}/event.d.ts +26 -2
- package/lib/chevre/repo/mongoose/{model → schemas}/event.js +24 -34
- package/lib/chevre/repo/mongoose/schemas/member.d.ts +58 -0
- package/lib/chevre/repo/mongoose/{model → schemas}/member.js +6 -16
- package/lib/chevre/repo/mongoose/schemas/merchantReturnPolicy.d.ts +62 -0
- package/lib/chevre/repo/mongoose/{model → schemas}/merchantReturnPolicy.js +7 -17
- package/lib/chevre/repo/mongoose/schemas/offer.d.ts +83 -0
- package/lib/chevre/repo/mongoose/{model → schemas}/offer.js +28 -38
- package/lib/chevre/repo/mongoose/schemas/offerCatalog.d.ts +64 -0
- package/lib/chevre/repo/mongoose/{model → schemas}/offerCatalog.js +11 -21
- package/lib/chevre/repo/mongoose/schemas/order.d.ts +77 -0
- package/lib/chevre/repo/mongoose/{model → schemas}/order.js +15 -25
- package/lib/chevre/repo/mongoose/schemas/ownershipInfo.d.ts +64 -0
- package/lib/chevre/repo/mongoose/{model → schemas}/ownershipInfo.js +9 -19
- package/lib/chevre/repo/mongoose/schemas/place.d.ts +76 -0
- package/lib/chevre/repo/mongoose/{model → schemas}/place.js +17 -27
- package/lib/chevre/repo/mongoose/schemas/priceSpecification.d.ts +66 -0
- package/lib/chevre/repo/mongoose/{model → schemas}/priceSpecification.js +9 -19
- package/lib/chevre/repo/mongoose/schemas/product.d.ts +67 -0
- package/lib/chevre/repo/mongoose/{model → schemas}/product.js +14 -24
- package/lib/chevre/repo/mongoose/schemas/project.d.ts +63 -0
- package/lib/chevre/repo/mongoose/{model → schemas}/project.js +7 -17
- package/lib/chevre/repo/mongoose/{model → schemas}/reservation.d.ts +26 -2
- package/lib/chevre/repo/mongoose/{model → schemas}/reservation.js +15 -25
- package/lib/chevre/repo/mongoose/schemas/role.d.ts +57 -0
- package/lib/chevre/repo/mongoose/{model → schemas}/role.js +4 -14
- package/lib/chevre/repo/mongoose/schemas/seller.d.ts +67 -0
- package/lib/chevre/repo/mongoose/{model → schemas}/seller.js +12 -22
- package/lib/chevre/repo/mongoose/schemas/serviceOutput.d.ts +57 -0
- package/lib/chevre/repo/mongoose/{model → schemas}/serviceOutput.js +5 -15
- package/lib/chevre/repo/mongoose/schemas/task.d.ts +65 -0
- package/lib/chevre/repo/mongoose/{model → schemas}/task.js +7 -17
- package/lib/chevre/repo/mongoose/schemas/telemetry.d.ts +62 -0
- package/lib/chevre/repo/mongoose/{model → schemas}/telemetry.js +9 -19
- package/lib/chevre/repo/mongoose/schemas/transaction.d.ts +70 -0
- package/lib/chevre/repo/mongoose/{model → schemas}/transaction.js +12 -22
- package/lib/chevre/repo/mongoose/schemas/trip.d.ts +57 -0
- package/lib/chevre/repo/mongoose/{model → schemas}/trip.js +5 -15
- package/lib/chevre/repo/mongoose/writeConcern.d.ts +3 -0
- package/lib/chevre/repo/mongoose/writeConcern.js +5 -0
- package/lib/chevre/repo/offer.js +11 -6
- package/lib/chevre/repo/offerCatalog.js +8 -4
- package/lib/chevre/repo/order.d.ts +0 -2
- package/lib/chevre/repo/order.js +12 -9
- package/lib/chevre/repo/ownershipInfo.d.ts +0 -2
- package/lib/chevre/repo/ownershipInfo.js +10 -7
- package/lib/chevre/repo/permit.js +6 -2
- package/lib/chevre/repo/place.js +16 -12
- package/lib/chevre/repo/priceSpecification.js +8 -4
- package/lib/chevre/repo/product.js +8 -4
- package/lib/chevre/repo/project.js +7 -3
- package/lib/chevre/repo/reservation.js +8 -21
- package/lib/chevre/repo/role.js +8 -4
- package/lib/chevre/repo/seller.js +8 -4
- package/lib/chevre/repo/serviceOutput.js +8 -4
- package/lib/chevre/repo/task.js +8 -4
- package/lib/chevre/repo/telemetry.js +6 -2
- package/lib/chevre/repo/transaction.d.ts +1 -2
- package/lib/chevre/repo/transaction.js +9 -6
- package/lib/chevre/repo/trip.js +8 -4
- package/lib/chevre/service/accountTransaction/deposit.js +0 -5
- package/lib/chevre/service/accountTransaction/transfer.js +0 -5
- package/lib/chevre/service/accountTransaction/withdraw.js +0 -5
- package/lib/chevre/service/assetTransaction/moneyTransfer.js +0 -5
- package/lib/chevre/service/assetTransaction/refund.js +0 -5
- package/lib/chevre/service/assetTransaction/registerService.js +0 -5
- package/lib/chevre/service/assetTransaction/reserve.js +0 -10
- package/lib/chevre/service/code.js +6 -1
- package/lib/chevre/service/order/onOrderStatusChanged/factory.js +6 -1
- package/lib/chevre/service/report/ownershipInfo.js +4 -0
- package/lib/chevre/service/transaction/moneyTransfer.js +0 -5
- package/lib/chevre/service/transaction/placeOrderInProgress.js +2 -2
- package/lib/chevre/service/transaction/returnOrder.js +1 -1
- package/package.json +7 -7
- package/lib/chevre/repo/mongoose/model/account.d.ts +0 -30
- package/lib/chevre/repo/mongoose/model/accountTitle.d.ts +0 -40
- package/lib/chevre/repo/mongoose/model/accountTransaction.d.ts +0 -43
- package/lib/chevre/repo/mongoose/model/accountingReport.d.ts +0 -34
- package/lib/chevre/repo/mongoose/model/action.d.ts +0 -49
- package/lib/chevre/repo/mongoose/model/additionalProperty.d.ts +0 -36
- package/lib/chevre/repo/mongoose/model/aggregation.d.ts +0 -30
- package/lib/chevre/repo/mongoose/model/assetTransaction.d.ts +0 -48
- package/lib/chevre/repo/mongoose/model/authorization.d.ts +0 -37
- package/lib/chevre/repo/mongoose/model/categoryCode.d.ts +0 -40
- package/lib/chevre/repo/mongoose/model/comments.d.ts +0 -41
- package/lib/chevre/repo/mongoose/model/creativeWork.d.ts +0 -49
- package/lib/chevre/repo/mongoose/model/customer.d.ts +0 -40
- package/lib/chevre/repo/mongoose/model/emailMessages.d.ts +0 -38
- package/lib/chevre/repo/mongoose/model/member.d.ts +0 -34
- package/lib/chevre/repo/mongoose/model/merchantReturnPolicy.d.ts +0 -38
- package/lib/chevre/repo/mongoose/model/offer.d.ts +0 -59
- package/lib/chevre/repo/mongoose/model/offerCatalog.d.ts +0 -40
- package/lib/chevre/repo/mongoose/model/order.d.ts +0 -53
- package/lib/chevre/repo/mongoose/model/ownershipInfo.d.ts +0 -40
- package/lib/chevre/repo/mongoose/model/place.d.ts +0 -52
- package/lib/chevre/repo/mongoose/model/priceSpecification.d.ts +0 -42
- package/lib/chevre/repo/mongoose/model/product.d.ts +0 -43
- package/lib/chevre/repo/mongoose/model/project.d.ts +0 -39
- package/lib/chevre/repo/mongoose/model/role.d.ts +0 -33
- package/lib/chevre/repo/mongoose/model/seller.d.ts +0 -43
- package/lib/chevre/repo/mongoose/model/serviceOutput.d.ts +0 -33
- package/lib/chevre/repo/mongoose/model/task.d.ts +0 -41
- package/lib/chevre/repo/mongoose/model/telemetry.d.ts +0 -38
- package/lib/chevre/repo/mongoose/model/transaction.d.ts +0 -46
- package/lib/chevre/repo/mongoose/model/trip.d.ts +0 -33
|
@@ -1,38 +1,38 @@
|
|
|
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
|
+
const writeConcern_1 = require("../writeConcern");
|
|
5
6
|
const modelName = 'Action';
|
|
6
7
|
exports.modelName = modelName;
|
|
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,
|
|
34
34
|
read: 'primaryPreferred',
|
|
35
|
-
writeConcern: writeConcern,
|
|
35
|
+
writeConcern: writeConcern_1.writeConcern,
|
|
36
36
|
// true化(2022-11-12~)
|
|
37
37
|
strict: true,
|
|
38
38
|
useNestedStrict: true,
|
|
@@ -242,13 +242,3 @@ schema.index({ 'toLocation.accountType': 1, startDate: -1 }, {
|
|
|
242
242
|
'toLocation.accountType': { $exists: true }
|
|
243
243
|
}
|
|
244
244
|
});
|
|
245
|
-
mongoose.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
|
-
});
|
|
@@ -0,0 +1,60 @@
|
|
|
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';
|
|
26
|
+
declare const modelName = "AdditionalProperty";
|
|
27
|
+
/**
|
|
28
|
+
* 追加特性スキーマ
|
|
29
|
+
*/
|
|
30
|
+
declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").ResolveSchemaOptions<{
|
|
31
|
+
collection: string;
|
|
32
|
+
id: true;
|
|
33
|
+
read: string;
|
|
34
|
+
writeConcern: import("mongodb").WriteConcern;
|
|
35
|
+
strict: true;
|
|
36
|
+
useNestedStrict: boolean;
|
|
37
|
+
timestamps: {
|
|
38
|
+
createdAt: string;
|
|
39
|
+
updatedAt: string;
|
|
40
|
+
};
|
|
41
|
+
toJSON: {
|
|
42
|
+
getters: false;
|
|
43
|
+
virtuals: false;
|
|
44
|
+
minimize: false;
|
|
45
|
+
versionKey: false;
|
|
46
|
+
};
|
|
47
|
+
toObject: {
|
|
48
|
+
getters: false;
|
|
49
|
+
virtuals: true;
|
|
50
|
+
minimize: false;
|
|
51
|
+
versionKey: false;
|
|
52
|
+
};
|
|
53
|
+
}>, {
|
|
54
|
+
typeOf: string;
|
|
55
|
+
codeValue: string;
|
|
56
|
+
name?: any;
|
|
57
|
+
project?: any;
|
|
58
|
+
inCodeSet?: any;
|
|
59
|
+
}>;
|
|
60
|
+
export { modelName, schema };
|
|
@@ -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
|
+
const writeConcern_1 = require("../writeConcern");
|
|
5
6
|
const modelName = 'AdditionalProperty';
|
|
6
7
|
exports.modelName = modelName;
|
|
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,13 +18,13 @@ const schema = new mongoose.Schema({
|
|
|
18
18
|
type: String,
|
|
19
19
|
required: true
|
|
20
20
|
},
|
|
21
|
-
inCodeSet:
|
|
22
|
-
name:
|
|
21
|
+
inCodeSet: mongoose_1.SchemaTypes.Mixed,
|
|
22
|
+
name: mongoose_1.SchemaTypes.Mixed
|
|
23
23
|
}, {
|
|
24
24
|
collection: 'additionalProperties',
|
|
25
25
|
id: true,
|
|
26
26
|
read: 'primaryPreferred',
|
|
27
|
-
writeConcern: writeConcern,
|
|
27
|
+
writeConcern: writeConcern_1.writeConcern,
|
|
28
28
|
strict: true,
|
|
29
29
|
useNestedStrict: true,
|
|
30
30
|
timestamps: {
|
|
@@ -69,13 +69,3 @@ schema.index({ 'name.en': 1, codeValue: 1 }, {
|
|
|
69
69
|
'name.en': { $exists: true }
|
|
70
70
|
}
|
|
71
71
|
});
|
|
72
|
-
mongoose.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
|
-
});
|
|
@@ -0,0 +1,54 @@
|
|
|
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';
|
|
26
|
+
declare const modelName = "Aggregation";
|
|
27
|
+
/**
|
|
28
|
+
* 集計スキーマ
|
|
29
|
+
*/
|
|
30
|
+
declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").ResolveSchemaOptions<{
|
|
31
|
+
collection: string;
|
|
32
|
+
id: true;
|
|
33
|
+
read: string;
|
|
34
|
+
writeConcern: import("mongodb").WriteConcern;
|
|
35
|
+
strict: false;
|
|
36
|
+
useNestedStrict: boolean;
|
|
37
|
+
timestamps: {
|
|
38
|
+
createdAt: string;
|
|
39
|
+
updatedAt: string;
|
|
40
|
+
};
|
|
41
|
+
toJSON: {
|
|
42
|
+
getters: false;
|
|
43
|
+
virtuals: false;
|
|
44
|
+
minimize: false;
|
|
45
|
+
versionKey: false;
|
|
46
|
+
};
|
|
47
|
+
toObject: {
|
|
48
|
+
getters: false;
|
|
49
|
+
virtuals: true;
|
|
50
|
+
minimize: false;
|
|
51
|
+
versionKey: false;
|
|
52
|
+
};
|
|
53
|
+
}>, {}>;
|
|
54
|
+
export { modelName, schema };
|
|
@@ -1,18 +1,18 @@
|
|
|
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
|
+
const writeConcern_1 = require("../writeConcern");
|
|
5
6
|
const modelName = 'Aggregation';
|
|
6
7
|
exports.modelName = modelName;
|
|
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: 'aggregations',
|
|
13
13
|
id: true,
|
|
14
14
|
read: 'primaryPreferred',
|
|
15
|
-
writeConcern: writeConcern,
|
|
15
|
+
writeConcern: writeConcern_1.writeConcern,
|
|
16
16
|
strict: false,
|
|
17
17
|
useNestedStrict: true,
|
|
18
18
|
timestamps: {
|
|
@@ -35,13 +35,3 @@ const schema = new mongoose.Schema({}, {
|
|
|
35
35
|
exports.schema = schema;
|
|
36
36
|
schema.index({ createdAt: 1 }, { name: 'searchByCreatedAt' });
|
|
37
37
|
schema.index({ updatedAt: 1 }, { name: 'searchByUpdatedAt' });
|
|
38
|
-
mongoose.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
|
-
});
|
|
@@ -0,0 +1,72 @@
|
|
|
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';
|
|
26
|
+
declare const modelName = "AssetTransaction";
|
|
27
|
+
/**
|
|
28
|
+
* 資産取引スキーマ
|
|
29
|
+
*/
|
|
30
|
+
declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").ResolveSchemaOptions<{
|
|
31
|
+
collection: string;
|
|
32
|
+
id: true;
|
|
33
|
+
read: string;
|
|
34
|
+
writeConcern: import("mongodb").WriteConcern;
|
|
35
|
+
strict: true;
|
|
36
|
+
useNestedStrict: boolean;
|
|
37
|
+
timestamps: {
|
|
38
|
+
createdAt: string;
|
|
39
|
+
updatedAt: string;
|
|
40
|
+
};
|
|
41
|
+
toJSON: {
|
|
42
|
+
getters: false;
|
|
43
|
+
virtuals: false;
|
|
44
|
+
minimize: false;
|
|
45
|
+
versionKey: false;
|
|
46
|
+
};
|
|
47
|
+
toObject: {
|
|
48
|
+
getters: false;
|
|
49
|
+
virtuals: true;
|
|
50
|
+
minimize: false;
|
|
51
|
+
versionKey: false;
|
|
52
|
+
};
|
|
53
|
+
}>, {
|
|
54
|
+
object?: any;
|
|
55
|
+
typeOf?: string | undefined;
|
|
56
|
+
status?: string | undefined;
|
|
57
|
+
error?: any;
|
|
58
|
+
expires?: Date | undefined;
|
|
59
|
+
project?: any;
|
|
60
|
+
agent?: any;
|
|
61
|
+
recipient?: any;
|
|
62
|
+
startDate?: Date | undefined;
|
|
63
|
+
endDate?: Date | undefined;
|
|
64
|
+
potentialActions?: any;
|
|
65
|
+
transactionNumber?: string | undefined;
|
|
66
|
+
tasksExportationStatus?: string | undefined;
|
|
67
|
+
tasksExportedAt?: Date | undefined;
|
|
68
|
+
result?: any;
|
|
69
|
+
location?: any;
|
|
70
|
+
seller?: any;
|
|
71
|
+
}>;
|
|
72
|
+
export { modelName, schema };
|
|
@@ -1,37 +1,37 @@
|
|
|
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
|
+
const writeConcern_1 = require("../writeConcern");
|
|
5
6
|
const modelName = 'AssetTransaction';
|
|
6
7
|
exports.modelName = modelName;
|
|
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: String,
|
|
14
14
|
typeOf: String,
|
|
15
15
|
transactionNumber: String,
|
|
16
|
-
agent:
|
|
17
|
-
recipient:
|
|
18
|
-
seller:
|
|
19
|
-
error:
|
|
20
|
-
result:
|
|
21
|
-
object:
|
|
16
|
+
agent: mongoose_1.SchemaTypes.Mixed,
|
|
17
|
+
recipient: mongoose_1.SchemaTypes.Mixed,
|
|
18
|
+
seller: mongoose_1.SchemaTypes.Mixed,
|
|
19
|
+
error: mongoose_1.SchemaTypes.Mixed,
|
|
20
|
+
result: mongoose_1.SchemaTypes.Mixed,
|
|
21
|
+
object: mongoose_1.SchemaTypes.Mixed,
|
|
22
22
|
expires: Date,
|
|
23
23
|
startDate: Date,
|
|
24
24
|
endDate: Date,
|
|
25
25
|
tasksExportedAt: Date,
|
|
26
26
|
tasksExportationStatus: String,
|
|
27
|
-
potentialActions:
|
|
27
|
+
potentialActions: mongoose_1.SchemaTypes.Mixed,
|
|
28
28
|
// add location(2022-11-11~)
|
|
29
|
-
location:
|
|
29
|
+
location: mongoose_1.SchemaTypes.Mixed
|
|
30
30
|
}, {
|
|
31
31
|
collection: 'assetTransactions',
|
|
32
32
|
id: true,
|
|
33
33
|
read: 'primaryPreferred',
|
|
34
|
-
writeConcern: writeConcern,
|
|
34
|
+
writeConcern: writeConcern_1.writeConcern,
|
|
35
35
|
strict: true,
|
|
36
36
|
useNestedStrict: true,
|
|
37
37
|
timestamps: {
|
|
@@ -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
|
-
mongoose.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
|
-
});
|
|
@@ -0,0 +1,61 @@
|
|
|
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';
|
|
26
|
+
declare const modelName = "Authorization";
|
|
27
|
+
/**
|
|
28
|
+
* 認可スキーマ
|
|
29
|
+
*/
|
|
30
|
+
declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").ResolveSchemaOptions<{
|
|
31
|
+
collection: string;
|
|
32
|
+
id: true;
|
|
33
|
+
read: string;
|
|
34
|
+
writeConcern: import("mongodb").WriteConcern;
|
|
35
|
+
strict: true;
|
|
36
|
+
useNestedStrict: boolean;
|
|
37
|
+
timestamps: {
|
|
38
|
+
createdAt: string;
|
|
39
|
+
updatedAt: string;
|
|
40
|
+
};
|
|
41
|
+
toJSON: {
|
|
42
|
+
getters: false;
|
|
43
|
+
virtuals: false;
|
|
44
|
+
minimize: false;
|
|
45
|
+
versionKey: false;
|
|
46
|
+
};
|
|
47
|
+
toObject: {
|
|
48
|
+
getters: false;
|
|
49
|
+
virtuals: true;
|
|
50
|
+
minimize: false;
|
|
51
|
+
versionKey: false;
|
|
52
|
+
};
|
|
53
|
+
}>, {
|
|
54
|
+
object?: any;
|
|
55
|
+
typeOf?: string | undefined;
|
|
56
|
+
project?: any;
|
|
57
|
+
code?: string | undefined;
|
|
58
|
+
validFrom?: Date | undefined;
|
|
59
|
+
validUntil?: Date | undefined;
|
|
60
|
+
}>;
|
|
61
|
+
export { modelName, schema };
|
|
@@ -1,25 +1,25 @@
|
|
|
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
|
+
const writeConcern_1 = require("../writeConcern");
|
|
5
6
|
const modelName = 'Authorization';
|
|
6
7
|
exports.modelName = modelName;
|
|
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: String,
|
|
14
14
|
code: String,
|
|
15
|
-
object:
|
|
15
|
+
object: mongoose_1.SchemaTypes.Mixed,
|
|
16
16
|
validFrom: Date,
|
|
17
17
|
validUntil: Date
|
|
18
18
|
}, {
|
|
19
19
|
collection: 'authorizations',
|
|
20
20
|
id: true,
|
|
21
21
|
read: 'primaryPreferred',
|
|
22
|
-
writeConcern: writeConcern,
|
|
22
|
+
writeConcern: writeConcern_1.writeConcern,
|
|
23
23
|
strict: true,
|
|
24
24
|
useNestedStrict: true,
|
|
25
25
|
timestamps: {
|
|
@@ -93,13 +93,3 @@ schema.index({ 'object.typeOfGood.id': 1, validFrom: 1 }, {
|
|
|
93
93
|
'object.typeOfGood.id': { $exists: true }
|
|
94
94
|
}
|
|
95
95
|
});
|
|
96
|
-
mongoose.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
|
-
});
|
|
@@ -0,0 +1,64 @@
|
|
|
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';
|
|
26
|
+
declare const modelName = "CategoryCode";
|
|
27
|
+
/**
|
|
28
|
+
* カテゴリーコードスキーマ
|
|
29
|
+
*/
|
|
30
|
+
declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").ResolveSchemaOptions<{
|
|
31
|
+
collection: string;
|
|
32
|
+
id: true;
|
|
33
|
+
read: string;
|
|
34
|
+
writeConcern: import("mongodb").WriteConcern;
|
|
35
|
+
strict: true;
|
|
36
|
+
useNestedStrict: boolean;
|
|
37
|
+
timestamps: {
|
|
38
|
+
createdAt: string;
|
|
39
|
+
updatedAt: string;
|
|
40
|
+
};
|
|
41
|
+
toJSON: {
|
|
42
|
+
getters: false;
|
|
43
|
+
virtuals: false;
|
|
44
|
+
minimize: false;
|
|
45
|
+
versionKey: false;
|
|
46
|
+
};
|
|
47
|
+
toObject: {
|
|
48
|
+
getters: false;
|
|
49
|
+
virtuals: true;
|
|
50
|
+
minimize: false;
|
|
51
|
+
versionKey: false;
|
|
52
|
+
};
|
|
53
|
+
}>, {
|
|
54
|
+
typeOf: string;
|
|
55
|
+
codeValue: string;
|
|
56
|
+
additionalProperty: any[];
|
|
57
|
+
name?: any;
|
|
58
|
+
project?: any;
|
|
59
|
+
inCodeSet?: any;
|
|
60
|
+
paymentMethod?: any;
|
|
61
|
+
color?: string | undefined;
|
|
62
|
+
image?: string | undefined;
|
|
63
|
+
}>;
|
|
64
|
+
export { modelName, schema };
|
|
@@ -1,34 +1,34 @@
|
|
|
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
|
+
const writeConcern_1 = require("../writeConcern");
|
|
5
6
|
const modelName = 'CategoryCode';
|
|
6
7
|
exports.modelName = modelName;
|
|
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
|
|
16
16
|
},
|
|
17
|
-
additionalProperty: [
|
|
17
|
+
additionalProperty: [mongoose_1.SchemaTypes.Mixed],
|
|
18
18
|
color: String,
|
|
19
19
|
image: String,
|
|
20
20
|
codeValue: {
|
|
21
21
|
type: String,
|
|
22
22
|
required: true
|
|
23
23
|
},
|
|
24
|
-
inCodeSet:
|
|
25
|
-
name:
|
|
26
|
-
paymentMethod:
|
|
24
|
+
inCodeSet: mongoose_1.SchemaTypes.Mixed,
|
|
25
|
+
name: mongoose_1.SchemaTypes.Mixed,
|
|
26
|
+
paymentMethod: mongoose_1.SchemaTypes.Mixed
|
|
27
27
|
}, {
|
|
28
28
|
collection: 'categoryCodes',
|
|
29
29
|
id: true,
|
|
30
30
|
read: 'primaryPreferred',
|
|
31
|
-
writeConcern: writeConcern,
|
|
31
|
+
writeConcern: writeConcern_1.writeConcern,
|
|
32
32
|
strict: true,
|
|
33
33
|
useNestedStrict: true,
|
|
34
34
|
timestamps: {
|
|
@@ -87,13 +87,3 @@ schema.index({ additionalProperty: 1, codeValue: 1 }, {
|
|
|
87
87
|
additionalProperty: { $exists: true }
|
|
88
88
|
}
|
|
89
89
|
});
|
|
90
|
-
mongoose.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
|
-
});
|