@chevre/domain 20.1.0-alpha.25 → 20.1.0-alpha.26
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.
|
@@ -11,19 +11,27 @@ const EXCLUDED_PROJECT_ID = process.env.EXCLUDED_PROJECT_ID;
|
|
|
11
11
|
async function main() {
|
|
12
12
|
await mongoose.connect(<string>process.env.MONGOLAB_URI);
|
|
13
13
|
|
|
14
|
-
// const
|
|
14
|
+
// const customerRepo = new chevre.repository.Customer(mongoose.connection);
|
|
15
|
+
// const sellerRepo = new chevre.repository.Seller(mongoose.connection);
|
|
16
|
+
// const eventRepo = new chevre.repository.Event(mongoose.connection);
|
|
17
|
+
const creativeWorkRepo = new chevre.repository.CreativeWork(mongoose.connection);
|
|
15
18
|
// const placeRepo = new chevre.repository.Place(mongoose.connection);
|
|
16
19
|
// const offerRepo = new chevre.repository.Offer(mongoose.connection);
|
|
17
|
-
const categoryCodeRepo = new chevre.repository.CategoryCode(mongoose.connection);
|
|
20
|
+
// const categoryCodeRepo = new chevre.repository.CategoryCode(mongoose.connection);
|
|
18
21
|
// const additionalPropertyRepo = new chevre.repository.AdditionalProperty(mongoose.connection);
|
|
19
22
|
|
|
20
|
-
const cursor =
|
|
21
|
-
|
|
22
|
-
|
|
23
|
+
// const cursor = customerRepo.getCursor(
|
|
24
|
+
// const cursor = sellerRepo.getCursor(
|
|
25
|
+
// const cursor = eventRepo.getCursor(
|
|
26
|
+
// const cursor = categoryCodeRepo.getCursor(
|
|
27
|
+
// const cursor = offerRepo.getCursor(
|
|
28
|
+
const cursor = creativeWorkRepo.getCursor(
|
|
23
29
|
// const cursor = placeRepo.getCursor(
|
|
24
30
|
{
|
|
25
31
|
// 'project.id': { $eq: project.id },
|
|
26
|
-
'project.id': { $ne: EXCLUDED_PROJECT_ID }
|
|
32
|
+
'project.id': { $ne: EXCLUDED_PROJECT_ID },
|
|
33
|
+
// typeOf: { $eq: chevre.factory.eventType.ScreeningEventSeries },
|
|
34
|
+
// starDate: { $gte: new Date() }
|
|
27
35
|
// _id: { $eq: 'al6aff83w' }
|
|
28
36
|
},
|
|
29
37
|
{
|
|
@@ -43,7 +51,12 @@ async function main() {
|
|
|
43
51
|
|
|
44
52
|
const additionalPropertyNamesOnEvent = creativeWork.additionalProperty?.map((p) => p.name);
|
|
45
53
|
if (Array.isArray(additionalPropertyNamesOnEvent) && additionalPropertyNamesOnEvent.length > 0) {
|
|
46
|
-
console.log(
|
|
54
|
+
console.log(
|
|
55
|
+
additionalPropertyNamesOnEvent.length,
|
|
56
|
+
'additionalPropertyNamesOnEvent found',
|
|
57
|
+
creativeWork.project.id,
|
|
58
|
+
creativeWork.id
|
|
59
|
+
);
|
|
47
60
|
additionalPropertyNames.push(...additionalPropertyNamesOnEvent);
|
|
48
61
|
projectIds.push(creativeWork.project.id);
|
|
49
62
|
additionalPropertyNamesOnEvent.forEach((name) => {
|
|
@@ -130,5 +130,10 @@ class MongoRepository {
|
|
|
130
130
|
.exec();
|
|
131
131
|
});
|
|
132
132
|
}
|
|
133
|
+
getCursor(conditions, projection) {
|
|
134
|
+
return this.customerModel.find(conditions, projection)
|
|
135
|
+
.sort({ branchCode: factory.sortType.Ascending })
|
|
136
|
+
.cursor();
|
|
137
|
+
}
|
|
133
138
|
}
|
|
134
139
|
exports.MongoRepository = MongoRepository;
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* リポジトリ
|
|
3
3
|
*/
|
|
4
4
|
import { MongoRepository as AccountRepo } from './repo/account';
|
|
5
|
-
import { MongoRepository as AccountActionRepo } from './repo/accountAction';
|
|
6
5
|
import { MongoRepository as AccountingReportRepo } from './repo/accountingReport';
|
|
7
6
|
import { MongoRepository as AccountTitleRepo } from './repo/accountTitle';
|
|
8
7
|
import { MongoRepository as AccountTransactionRepo } from './repo/accountTransaction';
|
|
@@ -50,8 +49,6 @@ export declare class Account extends AccountRepo {
|
|
|
50
49
|
/**
|
|
51
50
|
* 口座アクションリポジトリ
|
|
52
51
|
*/
|
|
53
|
-
export declare class AccountAction extends AccountActionRepo {
|
|
54
|
-
}
|
|
55
52
|
/**
|
|
56
53
|
* 経理レポートリポジトリ
|
|
57
54
|
*/
|
package/lib/chevre/repository.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.rateLimit = exports.itemAvailability = exports.TransactionNumber = exports.Transaction = exports.Telemetry = exports.Task = exports.ServiceOutputIdentifier = exports.ServiceOutput = exports.Seller = exports.Role = exports.Reservation = exports.Project = exports.Product = exports.PriceSpecification = exports.Place = exports.Permit = exports.Person = exports.paymentMethod = exports.OwnershipInfo = exports.OrderNumber = exports.Order = exports.OfferCatalog = exports.Offer = exports.MerchantReturnPolicy = exports.Member = exports.Event = exports.EmailMessage = exports.Customer = exports.CreativeWork = exports.ConfirmationNumber = exports.Code = exports.CategoryCode = exports.AssetTransaction = exports.action = exports.AdditionalProperty = exports.Action = exports.AccountTransaction = exports.AccountTitle = exports.AccountingReport = exports.
|
|
3
|
+
exports.rateLimit = exports.itemAvailability = exports.TransactionNumber = exports.Transaction = exports.Telemetry = exports.Task = exports.ServiceOutputIdentifier = exports.ServiceOutput = exports.Seller = exports.Role = exports.Reservation = exports.Project = exports.Product = exports.PriceSpecification = exports.Place = exports.Permit = exports.Person = exports.paymentMethod = exports.OwnershipInfo = exports.OrderNumber = exports.Order = exports.OfferCatalog = exports.Offer = exports.MerchantReturnPolicy = exports.Member = exports.Event = exports.EmailMessage = exports.Customer = exports.CreativeWork = exports.ConfirmationNumber = exports.Code = exports.CategoryCode = exports.AssetTransaction = exports.action = exports.AdditionalProperty = exports.Action = exports.AccountTransaction = exports.AccountTitle = exports.AccountingReport = exports.Account = void 0;
|
|
4
4
|
// tslint:disable:max-classes-per-file completed-docs
|
|
5
5
|
/**
|
|
6
6
|
* リポジトリ
|
|
7
7
|
*/
|
|
8
8
|
const account_1 = require("./repo/account");
|
|
9
|
-
|
|
9
|
+
// import { MongoRepository as AccountActionRepo } from './repo/accountAction';
|
|
10
10
|
const accountingReport_1 = require("./repo/accountingReport");
|
|
11
11
|
const accountTitle_1 = require("./repo/accountTitle");
|
|
12
12
|
const accountTransaction_1 = require("./repo/accountTransaction");
|
|
@@ -55,9 +55,7 @@ exports.Account = Account;
|
|
|
55
55
|
/**
|
|
56
56
|
* 口座アクションリポジトリ
|
|
57
57
|
*/
|
|
58
|
-
class AccountAction extends
|
|
59
|
-
}
|
|
60
|
-
exports.AccountAction = AccountAction;
|
|
58
|
+
// export class AccountAction extends AccountActionRepo { }
|
|
61
59
|
/**
|
|
62
60
|
* 経理レポートリポジトリ
|
|
63
61
|
*/
|
package/package.json
CHANGED