@chevre/domain 28.0.0-alpha.36 → 28.0.0-alpha.38
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/adminAccountTitle.d.ts +11 -2
- package/lib/chevre/repo/adminAccountTitle.js +0 -1
- package/lib/chevre/repo/adminAccountTitleCategory.d.ts +1 -1
- package/lib/chevre/repo/adminAccountTitleCategory.js +1 -3
- package/lib/chevre/repo/adminAccountTitleSet.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/project.d.ts +1 -1
- package/lib/chevre/repo/project.d.ts +2 -2
- package/lib/chevre/repo/projectMakesOffer.js +2 -2
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Connection } from 'mongoose';
|
|
2
2
|
import { factory } from '../factory';
|
|
3
|
-
type IFindParams = Pick<factory.accountTitle.ISearchConditions, 'codeValue' | 'limit' | 'name' | 'page' | 'project' | '
|
|
3
|
+
type IFindParams = Pick<factory.accountTitle.ISearchConditions, 'codeValue' | 'limit' | 'name' | 'page' | 'project' | 'additionalProperty' | 'inCodeSet'>;
|
|
4
4
|
/**
|
|
5
5
|
* 細目管理リポジトリ
|
|
6
6
|
*/
|
|
@@ -27,7 +27,16 @@ export declare class AdminAccountTitleRepo {
|
|
|
27
27
|
}): Promise<{
|
|
28
28
|
id: string;
|
|
29
29
|
}>;
|
|
30
|
-
findAccountTitles(params: IFindParams): Promise<Pick<factory.accountTitle.IAccountTitle, 'codeValue' | 'name' | '
|
|
30
|
+
findAccountTitles(params: IFindParams): Promise<(Pick<factory.accountTitle.IAccountTitle, 'codeValue' | 'name' | 'additionalProperty'> & {
|
|
31
|
+
inCodeSet: {
|
|
32
|
+
codeValue: string;
|
|
33
|
+
name?: string;
|
|
34
|
+
inCodeSet: {
|
|
35
|
+
codeValue: string;
|
|
36
|
+
name?: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
})[]>;
|
|
31
40
|
deleteAccountTitleByCodeValue(params: {
|
|
32
41
|
projectId: string;
|
|
33
42
|
codeValue: string;
|
|
@@ -24,7 +24,7 @@ export declare class AdminAccountTitleCategoryRepo {
|
|
|
24
24
|
updateAccountTitleCategory(params: Pick<factory.accountTitle.IAccountTitle, 'codeValue' | 'name' | 'project'>): Promise<{
|
|
25
25
|
id: string;
|
|
26
26
|
}>;
|
|
27
|
-
findAccountTitleCategories(params: IFindParams): Promise<Pick<factory.accountTitle.IAccountTitle, 'codeValue' | 'name'
|
|
27
|
+
findAccountTitleCategories(params: IFindParams): Promise<Pick<factory.accountTitle.IAccountTitle, 'codeValue' | 'name'>[]>;
|
|
28
28
|
deleteAccountTitleCategoryByCodeValue(params: {
|
|
29
29
|
projectId: string;
|
|
30
30
|
codeValue: string;
|
|
@@ -94,15 +94,13 @@ class AdminAccountTitleCategoryRepo {
|
|
|
94
94
|
_id: 0,
|
|
95
95
|
codeValue: 1,
|
|
96
96
|
name: 1,
|
|
97
|
-
project: 1,
|
|
98
|
-
typeOf: 1
|
|
99
97
|
});
|
|
100
98
|
if (typeof params.limit === 'number' && typeof params.page === 'number') {
|
|
101
99
|
query.limit(params.limit)
|
|
102
100
|
.skip(params.limit * (params.page - 1));
|
|
103
101
|
}
|
|
104
102
|
if (typeof params.sort?.codeValue === 'number') {
|
|
105
|
-
query.sort({
|
|
103
|
+
query.sort({ codeValue: params.sort.codeValue });
|
|
106
104
|
}
|
|
107
105
|
return query.setOptions({ maxTimeMS: settings_1.MONGO_MAX_TIME_MS })
|
|
108
106
|
.lean()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Connection } from 'mongoose';
|
|
2
2
|
import { factory } from '../factory';
|
|
3
|
-
type IFindParams = Pick<factory.accountTitle.ISearchConditions, 'codeValue' | 'limit' | 'name' | 'page' | 'project'
|
|
3
|
+
type IFindParams = Pick<factory.accountTitle.ISearchConditions, 'codeValue' | 'limit' | 'name' | 'page' | 'project'> & {
|
|
4
4
|
inCodeSet?: {
|
|
5
5
|
codeValue?: string | {
|
|
6
6
|
$eq?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
|
|
2
2
|
import { IVirtuals } from '../virtuals';
|
|
3
3
|
import { factory } from '../../../factory';
|
|
4
|
-
type IDocType =
|
|
4
|
+
type IDocType = Pick<factory.project.IProject, 'alternateName' | 'hasMerchantReturnPolicy' | 'logo' | 'name' | 'settings' | 'subscription' | 'typeOf'> & {
|
|
5
5
|
_id: string;
|
|
6
6
|
aggregateReservation?: any;
|
|
7
7
|
makesOffer?: factory.project.IMakesOffer[];
|
|
@@ -47,7 +47,7 @@ export declare class ProjectRepo {
|
|
|
47
47
|
deleteById(params: {
|
|
48
48
|
id: string;
|
|
49
49
|
}): Promise<void>;
|
|
50
|
-
getCursor(conditions: FilterQuery<factory.project.IProject>, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, Record<string, never>, IDocType, import("./mongoose/virtuals").IVirtuals, {}> &
|
|
50
|
+
getCursor(conditions: FilterQuery<factory.project.IProject>, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, Record<string, never>, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & Pick<factory.project.IProject, "name" | "typeOf" | "logo" | "alternateName" | "hasMerchantReturnPolicy" | "settings" | "subscription"> & {
|
|
51
51
|
_id: string;
|
|
52
52
|
aggregateReservation?: any;
|
|
53
53
|
makesOffer?: factory.project.IMakesOffer[];
|
|
@@ -55,7 +55,7 @@ export declare class ProjectRepo {
|
|
|
55
55
|
_id: string;
|
|
56
56
|
}> & {
|
|
57
57
|
__v: number;
|
|
58
|
-
}, import("mongoose").QueryOptions<IDocType>, (import("mongoose").Document<unknown, Record<string, never>, IDocType, import("./mongoose/virtuals").IVirtuals, {}> &
|
|
58
|
+
}, import("mongoose").QueryOptions<IDocType>, (import("mongoose").Document<unknown, Record<string, never>, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & Pick<factory.project.IProject, "name" | "typeOf" | "logo" | "alternateName" | "hasMerchantReturnPolicy" | "settings" | "subscription"> & {
|
|
59
59
|
_id: string;
|
|
60
60
|
aggregateReservation?: any;
|
|
61
61
|
makesOffer?: factory.project.IMakesOffer[];
|
|
@@ -42,8 +42,8 @@ class ProjectMakesOfferRepo {
|
|
|
42
42
|
]);
|
|
43
43
|
if (typeof params.limit === 'number' && params.limit > 0) {
|
|
44
44
|
const page = (typeof params.page === 'number' && params.page > 0) ? params.page : 1;
|
|
45
|
-
aggregate.
|
|
46
|
-
.
|
|
45
|
+
aggregate.skip(params.limit * (page - 1))
|
|
46
|
+
.limit(params.limit);
|
|
47
47
|
}
|
|
48
48
|
return aggregate.option({ maxTimeMS: settings_1.MONGO_MAX_TIME_MS })
|
|
49
49
|
.exec();
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@aws-sdk/client-cognito-identity-provider": "3.1090.0",
|
|
13
13
|
"@aws-sdk/credential-providers": "3.1090.0",
|
|
14
|
-
"@chevre/factory": "11.1.0-alpha.
|
|
14
|
+
"@chevre/factory": "11.1.0-alpha.8",
|
|
15
15
|
"@motionpicture/coa-service": "10.0.0",
|
|
16
16
|
"@motionpicture/gmo-service": "6.1.0-alpha.0",
|
|
17
17
|
"@sendgrid/client": "8.1.4",
|
|
@@ -88,5 +88,5 @@
|
|
|
88
88
|
"postversion": "git push origin --tags",
|
|
89
89
|
"prepublishOnly": "npm run clean && npm run build"
|
|
90
90
|
},
|
|
91
|
-
"version": "28.0.0-alpha.
|
|
91
|
+
"version": "28.0.0-alpha.38"
|
|
92
92
|
}
|