@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
|
@@ -0,0 +1,65 @@
|
|
|
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 = "Comment";
|
|
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
|
+
text: string;
|
|
55
|
+
typeOf: string;
|
|
56
|
+
additionalProperty: any[];
|
|
57
|
+
commentCount: number;
|
|
58
|
+
mentions: any[];
|
|
59
|
+
project?: any;
|
|
60
|
+
about?: any;
|
|
61
|
+
author?: any;
|
|
62
|
+
dateCreated?: Date | undefined;
|
|
63
|
+
dateModified?: Date | undefined;
|
|
64
|
+
}>;
|
|
65
|
+
export { modelName, schema };
|
|
@@ -1,27 +1,27 @@
|
|
|
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 = 'Comment';
|
|
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
|
-
about:
|
|
18
|
-
additionalProperty: [
|
|
19
|
-
author:
|
|
17
|
+
about: mongoose_1.SchemaTypes.Mixed,
|
|
18
|
+
additionalProperty: [mongoose_1.SchemaTypes.Mixed],
|
|
19
|
+
author: mongoose_1.SchemaTypes.Mixed,
|
|
20
20
|
// commnet: Comment[]
|
|
21
21
|
commentCount: { type: Number, default: 0 },
|
|
22
22
|
dateCreated: Date,
|
|
23
23
|
dateModified: Date,
|
|
24
|
-
mentions: [
|
|
24
|
+
mentions: [mongoose_1.SchemaTypes.Mixed],
|
|
25
25
|
text: {
|
|
26
26
|
type: String,
|
|
27
27
|
required: true
|
|
@@ -30,7 +30,7 @@ const schema = new mongoose.Schema({
|
|
|
30
30
|
collection: 'comments',
|
|
31
31
|
id: true,
|
|
32
32
|
read: 'primaryPreferred',
|
|
33
|
-
writeConcern: writeConcern,
|
|
33
|
+
writeConcern: writeConcern_1.writeConcern,
|
|
34
34
|
strict: true,
|
|
35
35
|
useNestedStrict: true,
|
|
36
36
|
timestamps: {
|
|
@@ -71,13 +71,3 @@ schema.index({ additionalProperty: 1, dateCreated: 1 }, {
|
|
|
71
71
|
additionalProperty: { $exists: true }
|
|
72
72
|
}
|
|
73
73
|
});
|
|
74
|
-
mongoose.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
|
-
});
|
|
@@ -0,0 +1,73 @@
|
|
|
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 = "CreativeWork";
|
|
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
|
+
name?: any;
|
|
56
|
+
project?: any;
|
|
57
|
+
alternateName?: string | undefined;
|
|
58
|
+
description?: string | undefined;
|
|
59
|
+
additionalProperty?: any;
|
|
60
|
+
identifier?: string | undefined;
|
|
61
|
+
duration?: string | undefined;
|
|
62
|
+
alternativeHeadline?: string | undefined;
|
|
63
|
+
copyrightHolder?: any;
|
|
64
|
+
copyrightYear?: number | undefined;
|
|
65
|
+
datePublished?: Date | undefined;
|
|
66
|
+
distributor?: any;
|
|
67
|
+
headline?: string | undefined;
|
|
68
|
+
license?: string | undefined;
|
|
69
|
+
thumbnailUrl?: string | undefined;
|
|
70
|
+
contentRating?: string | undefined;
|
|
71
|
+
offers?: any;
|
|
72
|
+
}>;
|
|
73
|
+
export { modelName, schema };
|
|
@@ -1,40 +1,40 @@
|
|
|
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 = 'CreativeWork';
|
|
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
17
|
identifier: String,
|
|
18
|
-
name:
|
|
18
|
+
name: mongoose_1.SchemaTypes.Mixed,
|
|
19
19
|
alternateName: String,
|
|
20
20
|
alternativeHeadline: String,
|
|
21
21
|
description: String,
|
|
22
|
-
copyrightHolder:
|
|
22
|
+
copyrightHolder: mongoose_1.SchemaTypes.Mixed,
|
|
23
23
|
copyrightYear: Number,
|
|
24
24
|
datePublished: Date,
|
|
25
|
-
distributor:
|
|
25
|
+
distributor: mongoose_1.SchemaTypes.Mixed,
|
|
26
26
|
headline: String,
|
|
27
27
|
license: String,
|
|
28
28
|
thumbnailUrl: String,
|
|
29
29
|
duration: String,
|
|
30
30
|
contentRating: String,
|
|
31
|
-
offers:
|
|
32
|
-
additionalProperty:
|
|
31
|
+
offers: mongoose_1.SchemaTypes.Mixed,
|
|
32
|
+
additionalProperty: mongoose_1.SchemaTypes.Mixed
|
|
33
33
|
}, {
|
|
34
34
|
collection: 'creativeWorks',
|
|
35
35
|
id: true,
|
|
36
36
|
read: 'primaryPreferred',
|
|
37
|
-
writeConcern: writeConcern,
|
|
37
|
+
writeConcern: writeConcern_1.writeConcern,
|
|
38
38
|
strict: true,
|
|
39
39
|
useNestedStrict: true,
|
|
40
40
|
timestamps: {
|
|
@@ -117,13 +117,3 @@ schema.index({ additionalProperty: 1, identifier: 1 }, {
|
|
|
117
117
|
additionalProperty: { $exists: true }
|
|
118
118
|
}
|
|
119
119
|
});
|
|
120
|
-
mongoose.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
|
-
});
|
|
@@ -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 = "Customer";
|
|
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
|
+
additionalProperty: any[];
|
|
56
|
+
contactPoint: any[];
|
|
57
|
+
name?: any;
|
|
58
|
+
url?: string | undefined;
|
|
59
|
+
project?: any;
|
|
60
|
+
email?: string | undefined;
|
|
61
|
+
branchCode?: string | undefined;
|
|
62
|
+
telephone?: string | undefined;
|
|
63
|
+
}>;
|
|
64
|
+
export { modelName, schema };
|
|
@@ -1,20 +1,20 @@
|
|
|
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 = 'Customer';
|
|
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
|
-
additionalProperty: [
|
|
13
|
-
contactPoint: [
|
|
11
|
+
const schema = new mongoose_1.Schema({
|
|
12
|
+
additionalProperty: [mongoose_1.SchemaTypes.Mixed],
|
|
13
|
+
contactPoint: [mongoose_1.SchemaTypes.Mixed],
|
|
14
14
|
email: String,
|
|
15
15
|
branchCode: String,
|
|
16
|
-
name:
|
|
17
|
-
project:
|
|
16
|
+
name: mongoose_1.SchemaTypes.Mixed,
|
|
17
|
+
project: mongoose_1.SchemaTypes.Mixed,
|
|
18
18
|
typeOf: {
|
|
19
19
|
type: String,
|
|
20
20
|
required: true
|
|
@@ -25,7 +25,7 @@ const schema = new mongoose.Schema({
|
|
|
25
25
|
collection: 'customers',
|
|
26
26
|
id: true,
|
|
27
27
|
read: 'primaryPreferred',
|
|
28
|
-
writeConcern: writeConcern,
|
|
28
|
+
writeConcern: writeConcern_1.writeConcern,
|
|
29
29
|
strict: true,
|
|
30
30
|
useNestedStrict: true,
|
|
31
31
|
timestamps: {
|
|
@@ -64,13 +64,3 @@ schema.index({ 'name.en': 1, branchCode: 1 }, {
|
|
|
64
64
|
'name.en': { $exists: true }
|
|
65
65
|
}
|
|
66
66
|
});
|
|
67
|
-
mongoose.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
|
-
});
|
|
@@ -0,0 +1,62 @@
|
|
|
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 = "EmailMessage";
|
|
27
|
+
/**
|
|
28
|
+
* Eメールメッセージスキーマ
|
|
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
|
+
text?: string | undefined;
|
|
56
|
+
name?: any;
|
|
57
|
+
project?: any;
|
|
58
|
+
identifier?: string | undefined;
|
|
59
|
+
about?: any;
|
|
60
|
+
sender?: any;
|
|
61
|
+
}>;
|
|
62
|
+
export { modelName, schema };
|
|
@@ -1,29 +1,29 @@
|
|
|
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 = 'EmailMessage';
|
|
6
7
|
exports.modelName = modelName;
|
|
7
|
-
const writeConcern = { j: true, w: 'majority', wtimeout: 10000 };
|
|
8
8
|
/**
|
|
9
9
|
* Eメールメッセージスキーマ
|
|
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
17
|
identifier: String,
|
|
18
|
-
name:
|
|
19
|
-
about:
|
|
20
|
-
sender:
|
|
18
|
+
name: mongoose_1.SchemaTypes.Mixed,
|
|
19
|
+
about: mongoose_1.SchemaTypes.Mixed,
|
|
20
|
+
sender: mongoose_1.SchemaTypes.Mixed,
|
|
21
21
|
text: String
|
|
22
22
|
}, {
|
|
23
23
|
collection: 'emailMessages',
|
|
24
24
|
id: true,
|
|
25
25
|
read: 'primaryPreferred',
|
|
26
|
-
writeConcern: writeConcern,
|
|
26
|
+
writeConcern: writeConcern_1.writeConcern,
|
|
27
27
|
strict: true,
|
|
28
28
|
useNestedStrict: true,
|
|
29
29
|
timestamps: {
|
|
@@ -52,13 +52,3 @@ schema.index({ identifier: 1 }, {
|
|
|
52
52
|
schema.index({ 'project.id': 1, identifier: 1 }, {
|
|
53
53
|
name: 'searchByProjectId'
|
|
54
54
|
});
|
|
55
|
-
mongoose.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
|
-
});
|
|
@@ -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 = "Event";
|
|
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,56 +1,56 @@
|
|
|
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 = 'Event';
|
|
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
|
_id: String,
|
|
14
14
|
typeOf: {
|
|
15
15
|
type: String,
|
|
16
16
|
required: true
|
|
17
17
|
},
|
|
18
18
|
identifier: String,
|
|
19
|
-
name:
|
|
20
|
-
additionalProperty:
|
|
21
|
-
alternateName:
|
|
22
|
-
alternativeHeadline:
|
|
23
|
-
description:
|
|
19
|
+
name: mongoose_1.SchemaTypes.Mixed,
|
|
20
|
+
additionalProperty: mongoose_1.SchemaTypes.Mixed,
|
|
21
|
+
alternateName: mongoose_1.SchemaTypes.Mixed,
|
|
22
|
+
alternativeHeadline: mongoose_1.SchemaTypes.Mixed,
|
|
23
|
+
description: mongoose_1.SchemaTypes.Mixed,
|
|
24
24
|
doorTime: Date,
|
|
25
25
|
duration: String,
|
|
26
26
|
endDate: Date,
|
|
27
27
|
eventStatus: String,
|
|
28
|
-
headline:
|
|
29
|
-
location:
|
|
28
|
+
headline: mongoose_1.SchemaTypes.Mixed,
|
|
29
|
+
location: mongoose_1.SchemaTypes.Mixed,
|
|
30
30
|
startDate: Date,
|
|
31
|
-
workPerformed:
|
|
32
|
-
superEvent:
|
|
33
|
-
videoFormat:
|
|
34
|
-
soundFormat:
|
|
35
|
-
subtitleLanguage:
|
|
36
|
-
dubLanguage:
|
|
31
|
+
workPerformed: mongoose_1.SchemaTypes.Mixed,
|
|
32
|
+
superEvent: mongoose_1.SchemaTypes.Mixed,
|
|
33
|
+
videoFormat: mongoose_1.SchemaTypes.Mixed,
|
|
34
|
+
soundFormat: mongoose_1.SchemaTypes.Mixed,
|
|
35
|
+
subtitleLanguage: mongoose_1.SchemaTypes.Mixed,
|
|
36
|
+
dubLanguage: mongoose_1.SchemaTypes.Mixed,
|
|
37
37
|
kanaName: String,
|
|
38
38
|
// 不要なので廃止(2023-01-23~)
|
|
39
|
-
// hasOfferCatalog:
|
|
40
|
-
offers:
|
|
39
|
+
// hasOfferCatalog: SchemaTypes.Mixed,
|
|
40
|
+
offers: mongoose_1.SchemaTypes.Mixed,
|
|
41
41
|
maximumAttendeeCapacity: { type: Number },
|
|
42
42
|
remainingAttendeeCapacity: { type: Number },
|
|
43
43
|
checkInCount: { type: Number, default: 0 },
|
|
44
44
|
attendeeCount: { type: Number, default: 0 },
|
|
45
|
-
aggregateEntranceGate:
|
|
46
|
-
aggregateReservation:
|
|
47
|
-
aggregateOffer:
|
|
48
|
-
coaInfo:
|
|
45
|
+
aggregateEntranceGate: mongoose_1.SchemaTypes.Mixed,
|
|
46
|
+
aggregateReservation: mongoose_1.SchemaTypes.Mixed,
|
|
47
|
+
aggregateOffer: mongoose_1.SchemaTypes.Mixed,
|
|
48
|
+
coaInfo: mongoose_1.SchemaTypes.Mixed
|
|
49
49
|
}, {
|
|
50
50
|
collection: 'events',
|
|
51
51
|
id: true,
|
|
52
52
|
read: 'primaryPreferred',
|
|
53
|
-
writeConcern: writeConcern,
|
|
53
|
+
writeConcern: writeConcern_1.writeConcern,
|
|
54
54
|
strict: true,
|
|
55
55
|
useNestedStrict: true,
|
|
56
56
|
timestamps: {
|
|
@@ -228,13 +228,3 @@ schema.index({ additionalProperty: 1, startDate: 1 }, {
|
|
|
228
228
|
additionalProperty: { $exists: true }
|
|
229
229
|
}
|
|
230
230
|
});
|
|
231
|
-
mongoose.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
|
-
});
|