@chevre/domain 22.3.0-alpha.14 → 22.3.0-alpha.16
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.d.ts +25 -1
- package/lib/chevre/repo/accountTitle.d.ts +4 -4
- package/lib/chevre/repo/accountingReport.d.ts +25 -1
- package/lib/chevre/repo/action.d.ts +11 -11
- package/lib/chevre/repo/action.js +4 -1
- package/lib/chevre/repo/additionalProperty.d.ts +25 -1
- package/lib/chevre/repo/aggregateOffer.d.ts +26 -2
- package/lib/chevre/repo/aggregateReservation.d.ts +25 -1
- package/lib/chevre/repo/aggregation.d.ts +26 -2
- package/lib/chevre/repo/assetTransaction.d.ts +5 -5
- package/lib/chevre/repo/authorization.d.ts +25 -1
- package/lib/chevre/repo/categoryCode.d.ts +1 -1
- package/lib/chevre/repo/comment.d.ts +3 -3
- package/lib/chevre/repo/creativeWork.d.ts +5 -5
- package/lib/chevre/repo/customer.d.ts +4 -4
- package/lib/chevre/repo/event.d.ts +4 -4
- package/lib/chevre/repo/eventSeries.d.ts +3 -3
- package/lib/chevre/repo/member.d.ts +4 -4
- package/lib/chevre/repo/merchantReturnPolicy.d.ts +3 -3
- package/lib/chevre/repo/message.d.ts +25 -1
- package/lib/chevre/repo/note.d.ts +25 -1
- package/lib/chevre/repo/offer.d.ts +8 -8
- package/lib/chevre/repo/offerCatalog.d.ts +4 -4
- package/lib/chevre/repo/offerCatalogItem.d.ts +25 -1
- package/lib/chevre/repo/offerItemCondition.d.ts +25 -1
- package/lib/chevre/repo/order.d.ts +5 -5
- package/lib/chevre/repo/orderInTransaction.d.ts +27 -3
- package/lib/chevre/repo/ownershipInfo.d.ts +5 -5
- package/lib/chevre/repo/paymentService.d.ts +25 -1
- package/lib/chevre/repo/paymentServiceProvider.d.ts +26 -2
- package/lib/chevre/repo/place/movieTheater.d.ts +5 -5
- package/lib/chevre/repo/priceSpecification.d.ts +4 -4
- package/lib/chevre/repo/product.d.ts +4 -4
- package/lib/chevre/repo/productModel.d.ts +25 -1
- package/lib/chevre/repo/productOffer.d.ts +25 -1
- package/lib/chevre/repo/project.d.ts +5 -5
- package/lib/chevre/repo/reservation.d.ts +5 -5
- package/lib/chevre/repo/reservation.js +6 -28
- package/lib/chevre/repo/seller.d.ts +5 -5
- package/lib/chevre/repo/serviceOutput.d.ts +25 -1
- package/lib/chevre/repo/task.d.ts +8 -8
- package/lib/chevre/repo/transaction.d.ts +4 -4
- package/lib/chevre/repo/trip.d.ts +25 -1
- package/lib/chevre/service/event.d.ts +3 -0
- package/lib/chevre/service/event.js +21 -2
- package/lib/chevre/service/report/telemetry.js +1 -1
- package/package.json +3 -3
|
@@ -1,3 +1,27 @@
|
|
|
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" />
|
|
1
25
|
import type { Connection } from 'mongoose';
|
|
2
26
|
import * as factory from '../factory';
|
|
3
27
|
/**
|
|
@@ -125,5 +149,5 @@ export declare class AccountRepo {
|
|
|
125
149
|
unsetUnnecessaryFields(params: {
|
|
126
150
|
filter: any;
|
|
127
151
|
$unset: any;
|
|
128
|
-
}): Promise<import("
|
|
152
|
+
}): Promise<import("mongoose").UpdateWriteOpResult>;
|
|
129
153
|
}
|
|
@@ -36,13 +36,13 @@ export declare class AccountTitleRepo {
|
|
|
36
36
|
id: string;
|
|
37
37
|
};
|
|
38
38
|
}): Promise<void>;
|
|
39
|
-
getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, factory.accountTitle.IAccountTitle> &
|
|
39
|
+
getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, factory.accountTitle.IAccountTitle> & factory.accountTitle.IAccountTitle & {
|
|
40
40
|
_id: import("mongoose").Types.ObjectId;
|
|
41
|
-
},
|
|
41
|
+
}, import("mongoose").QueryOptions<import("mongoose").Document<unknown, {}, factory.accountTitle.IAccountTitle> & factory.accountTitle.IAccountTitle & {
|
|
42
42
|
_id: import("mongoose").Types.ObjectId;
|
|
43
|
-
}
|
|
43
|
+
}>>;
|
|
44
44
|
unsetUnnecessaryFields(params: {
|
|
45
45
|
filter: any;
|
|
46
46
|
$unset: any;
|
|
47
|
-
}): Promise<import("
|
|
47
|
+
}): Promise<import("mongoose").UpdateWriteOpResult>;
|
|
48
48
|
}
|
|
@@ -1,3 +1,27 @@
|
|
|
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" />
|
|
1
25
|
import type { Connection, PipelineStage } from 'mongoose';
|
|
2
26
|
import { IAccountingReport, IChildReport, IOrder4report } from './mongoose/schemas/accountingReport';
|
|
3
27
|
import * as factory from '../factory';
|
|
@@ -44,5 +68,5 @@ export declare class AccountingReportRepo {
|
|
|
44
68
|
unsetUnnecessaryFields(params: {
|
|
45
69
|
filter: any;
|
|
46
70
|
$unset: any;
|
|
47
|
-
}): Promise<import("
|
|
71
|
+
}): Promise<import("mongoose").UpdateWriteOpResult>;
|
|
48
72
|
}
|
|
@@ -284,8 +284,8 @@ export declare class ActionRepo {
|
|
|
284
284
|
} | null>;
|
|
285
285
|
saveRecipeWithDateCreated(savingRecipe: IRecipeAsDocument & {
|
|
286
286
|
dateModified: Date;
|
|
287
|
-
}): Promise<import("
|
|
288
|
-
saveActionWithEndDate(savingAction: Omit<factory.action.authorize.invoice.IAction, 'id'>): Promise<import("
|
|
287
|
+
}): Promise<import("mongoose").UpdateWriteOpResult>;
|
|
288
|
+
saveActionWithEndDate(savingAction: Omit<factory.action.authorize.invoice.IAction, 'id'>): Promise<import("mongoose").UpdateWriteOpResult>;
|
|
289
289
|
findRecipeByAction<T extends factory.recipe.RecipeCategory>(params: {
|
|
290
290
|
project: {
|
|
291
291
|
id: string;
|
|
@@ -381,6 +381,7 @@ export declare class ActionRepo {
|
|
|
381
381
|
location?: any;
|
|
382
382
|
description?: string | undefined;
|
|
383
383
|
result?: any;
|
|
384
|
+
toLocation?: any;
|
|
384
385
|
actionStatus: factory.actionStatusType;
|
|
385
386
|
endDate?: Date | undefined;
|
|
386
387
|
purpose?: import("@chevre/factory/lib/action").IPurpose | undefined;
|
|
@@ -391,11 +392,10 @@ export declare class ActionRepo {
|
|
|
391
392
|
recipient?: import("@chevre/factory/lib/action").IParticipant | undefined;
|
|
392
393
|
sameAs?: import("@chevre/factory/lib/action").ISameAs | undefined;
|
|
393
394
|
fromLocation?: any;
|
|
394
|
-
toLocation?: any;
|
|
395
395
|
replacer?: any;
|
|
396
396
|
targetCollection?: any;
|
|
397
397
|
cancelAction?: any;
|
|
398
|
-
}> &
|
|
398
|
+
}> & {
|
|
399
399
|
object: any;
|
|
400
400
|
error?: any;
|
|
401
401
|
project: Pick<factory.project.IProject, "id" | "typeOf">;
|
|
@@ -404,6 +404,7 @@ export declare class ActionRepo {
|
|
|
404
404
|
location?: any;
|
|
405
405
|
description?: string | undefined;
|
|
406
406
|
result?: any;
|
|
407
|
+
toLocation?: any;
|
|
407
408
|
actionStatus: factory.actionStatusType;
|
|
408
409
|
endDate?: Date | undefined;
|
|
409
410
|
purpose?: import("@chevre/factory/lib/action").IPurpose | undefined;
|
|
@@ -414,13 +415,12 @@ export declare class ActionRepo {
|
|
|
414
415
|
recipient?: import("@chevre/factory/lib/action").IParticipant | undefined;
|
|
415
416
|
sameAs?: import("@chevre/factory/lib/action").ISameAs | undefined;
|
|
416
417
|
fromLocation?: any;
|
|
417
|
-
toLocation?: any;
|
|
418
418
|
replacer?: any;
|
|
419
419
|
targetCollection?: any;
|
|
420
420
|
cancelAction?: any;
|
|
421
421
|
} & {
|
|
422
422
|
_id: import("mongoose").Types.ObjectId;
|
|
423
|
-
},
|
|
423
|
+
}, QueryOptions<import("mongoose").Document<unknown, {}, {
|
|
424
424
|
object: any;
|
|
425
425
|
error?: any;
|
|
426
426
|
project: Pick<factory.project.IProject, "id" | "typeOf">;
|
|
@@ -429,6 +429,7 @@ export declare class ActionRepo {
|
|
|
429
429
|
location?: any;
|
|
430
430
|
description?: string | undefined;
|
|
431
431
|
result?: any;
|
|
432
|
+
toLocation?: any;
|
|
432
433
|
actionStatus: factory.actionStatusType;
|
|
433
434
|
endDate?: Date | undefined;
|
|
434
435
|
purpose?: import("@chevre/factory/lib/action").IPurpose | undefined;
|
|
@@ -439,11 +440,10 @@ export declare class ActionRepo {
|
|
|
439
440
|
recipient?: import("@chevre/factory/lib/action").IParticipant | undefined;
|
|
440
441
|
sameAs?: import("@chevre/factory/lib/action").ISameAs | undefined;
|
|
441
442
|
fromLocation?: any;
|
|
442
|
-
toLocation?: any;
|
|
443
443
|
replacer?: any;
|
|
444
444
|
targetCollection?: any;
|
|
445
445
|
cancelAction?: any;
|
|
446
|
-
}> &
|
|
446
|
+
}> & {
|
|
447
447
|
object: any;
|
|
448
448
|
error?: any;
|
|
449
449
|
project: Pick<factory.project.IProject, "id" | "typeOf">;
|
|
@@ -452,6 +452,7 @@ export declare class ActionRepo {
|
|
|
452
452
|
location?: any;
|
|
453
453
|
description?: string | undefined;
|
|
454
454
|
result?: any;
|
|
455
|
+
toLocation?: any;
|
|
455
456
|
actionStatus: factory.actionStatusType;
|
|
456
457
|
endDate?: Date | undefined;
|
|
457
458
|
purpose?: import("@chevre/factory/lib/action").IPurpose | undefined;
|
|
@@ -462,17 +463,16 @@ export declare class ActionRepo {
|
|
|
462
463
|
recipient?: import("@chevre/factory/lib/action").IParticipant | undefined;
|
|
463
464
|
sameAs?: import("@chevre/factory/lib/action").ISameAs | undefined;
|
|
464
465
|
fromLocation?: any;
|
|
465
|
-
toLocation?: any;
|
|
466
466
|
replacer?: any;
|
|
467
467
|
targetCollection?: any;
|
|
468
468
|
cancelAction?: any;
|
|
469
469
|
} & {
|
|
470
470
|
_id: import("mongoose").Types.ObjectId;
|
|
471
|
-
}
|
|
471
|
+
}>>;
|
|
472
472
|
unsetUnnecessaryFields(params: {
|
|
473
473
|
filter: FilterQuery<factory.action.IAction<factory.action.IAttributes<factory.actionType, any, any>>>;
|
|
474
474
|
$unset: any;
|
|
475
|
-
}): Promise<import("
|
|
475
|
+
}): Promise<import("mongoose").UpdateWriteOpResult>;
|
|
476
476
|
private agggregateByStatus;
|
|
477
477
|
private upsertRecipe;
|
|
478
478
|
}
|
|
@@ -1221,7 +1221,10 @@ class ActionRepo {
|
|
|
1221
1221
|
return this.actionRecipeModel.findOne({
|
|
1222
1222
|
'project.id': { $eq: params.project.id },
|
|
1223
1223
|
'recipeFor.id': { $eq: params.recipeFor.id }
|
|
1224
|
-
}, { step: 1, recipeCategory: 1 }
|
|
1224
|
+
}, { step: 1, recipeCategory: 1 }
|
|
1225
|
+
// { lean: true }
|
|
1226
|
+
)
|
|
1227
|
+
.lean()
|
|
1225
1228
|
.exec();
|
|
1226
1229
|
// if (result === null) {
|
|
1227
1230
|
// throw new factory.errors.NotFound(this.actionRecipeModel.modelName);
|
|
@@ -1,3 +1,27 @@
|
|
|
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" />
|
|
1
25
|
import type { Connection } from 'mongoose';
|
|
2
26
|
import * as factory from '../factory';
|
|
3
27
|
/**
|
|
@@ -35,5 +59,5 @@ export declare class AdditionalPropertyRepo {
|
|
|
35
59
|
unsetUnnecessaryFields(params: {
|
|
36
60
|
filter: any;
|
|
37
61
|
$unset: any;
|
|
38
|
-
}): Promise<import("
|
|
62
|
+
}): Promise<import("mongoose").UpdateWriteOpResult>;
|
|
39
63
|
}
|
|
@@ -1,3 +1,27 @@
|
|
|
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" />
|
|
1
25
|
import type { AnyExpression, Connection, FilterQuery, PipelineStage } from 'mongoose';
|
|
2
26
|
import * as factory from '../factory';
|
|
3
27
|
type IMatchStage = PipelineStage.Match;
|
|
@@ -68,10 +92,10 @@ export declare class AggregateOfferRepo {
|
|
|
68
92
|
/**
|
|
69
93
|
* 単価オファー最適化作業における一時的な処理
|
|
70
94
|
*/
|
|
71
|
-
optimizeOffers(): Promise<import("
|
|
95
|
+
optimizeOffers(): Promise<import("mongoose").UpdateWriteOpResult>;
|
|
72
96
|
unsetUnnecessaryFields(params: {
|
|
73
97
|
filter: FilterQuery<factory.aggregateOffer.IAggregateOffer>;
|
|
74
98
|
$unset: any;
|
|
75
|
-
}): Promise<import("
|
|
99
|
+
}): Promise<import("mongoose").UpdateWriteOpResult>;
|
|
76
100
|
}
|
|
77
101
|
export {};
|
|
@@ -1,3 +1,27 @@
|
|
|
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" />
|
|
1
25
|
import type { Connection, PipelineStage } from 'mongoose';
|
|
2
26
|
import * as factory from '../factory';
|
|
3
27
|
import { IAggregateReservation } from './mongoose/schemas/aggregateReservation';
|
|
@@ -54,6 +78,6 @@ export declare class AggregateReservationRepo {
|
|
|
54
78
|
unsetUnnecessaryFields(params: {
|
|
55
79
|
filter: any;
|
|
56
80
|
$unset: any;
|
|
57
|
-
}): Promise<import("
|
|
81
|
+
}): Promise<import("mongoose").UpdateWriteOpResult>;
|
|
58
82
|
}
|
|
59
83
|
export {};
|
|
@@ -1,3 +1,27 @@
|
|
|
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" />
|
|
1
25
|
import type { Connection } from 'mongoose';
|
|
2
26
|
import * as factory from '../factory';
|
|
3
27
|
export declare enum AggregationType {
|
|
@@ -38,7 +62,7 @@ export interface IAggregation {
|
|
|
38
62
|
export declare class AggregationRepo {
|
|
39
63
|
private readonly aggregationModel;
|
|
40
64
|
constructor(connection: Connection);
|
|
41
|
-
saveAggregation(params: IAggregation): Promise<import("
|
|
65
|
+
saveAggregation(params: IAggregation): Promise<import("mongoose").UpdateWriteOpResult>;
|
|
42
66
|
search(params: {
|
|
43
67
|
limit: number;
|
|
44
68
|
page: number;
|
|
@@ -64,5 +88,5 @@ export declare class AggregationRepo {
|
|
|
64
88
|
unsetUnnecessaryFields(params: {
|
|
65
89
|
filter: any;
|
|
66
90
|
$unset: any;
|
|
67
|
-
}): Promise<import("
|
|
91
|
+
}): Promise<import("mongoose").UpdateWriteOpResult>;
|
|
68
92
|
}
|
|
@@ -268,7 +268,7 @@ export declare class AssetTransactionRepo {
|
|
|
268
268
|
}): Promise<void>;
|
|
269
269
|
getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, (import("@chevre/factory/lib/assetTransaction/cancelReservation").ITransaction | import("@chevre/factory/lib/assetTransaction/moneyTransfer").ITransaction | import("@chevre/factory/lib/assetTransaction/pay").ITransaction | import("@chevre/factory/lib/assetTransaction/refund").ITransaction | import("@chevre/factory/lib/assetTransaction/registerService").ITransaction | import("@chevre/factory/lib/assetTransaction/reserve").ITransaction) & {
|
|
270
270
|
seller?: any;
|
|
271
|
-
}> &
|
|
271
|
+
}> & ((import("@chevre/factory/lib/assetTransaction/cancelReservation").IAttributes & {
|
|
272
272
|
id: string;
|
|
273
273
|
} & {
|
|
274
274
|
seller?: any;
|
|
@@ -304,9 +304,9 @@ export declare class AssetTransactionRepo {
|
|
|
304
304
|
seller?: any;
|
|
305
305
|
} & {
|
|
306
306
|
_id: import("mongoose").Types.ObjectId;
|
|
307
|
-
}),
|
|
307
|
+
})), import("mongoose").QueryOptions<import("mongoose").Document<unknown, {}, (import("@chevre/factory/lib/assetTransaction/cancelReservation").ITransaction | import("@chevre/factory/lib/assetTransaction/moneyTransfer").ITransaction | import("@chevre/factory/lib/assetTransaction/pay").ITransaction | import("@chevre/factory/lib/assetTransaction/refund").ITransaction | import("@chevre/factory/lib/assetTransaction/registerService").ITransaction | import("@chevre/factory/lib/assetTransaction/reserve").ITransaction) & {
|
|
308
308
|
seller?: any;
|
|
309
|
-
}> &
|
|
309
|
+
}> & ((import("@chevre/factory/lib/assetTransaction/cancelReservation").IAttributes & {
|
|
310
310
|
id: string;
|
|
311
311
|
} & {
|
|
312
312
|
seller?: any;
|
|
@@ -342,11 +342,11 @@ export declare class AssetTransactionRepo {
|
|
|
342
342
|
seller?: any;
|
|
343
343
|
} & {
|
|
344
344
|
_id: import("mongoose").Types.ObjectId;
|
|
345
|
-
})
|
|
345
|
+
}))>>;
|
|
346
346
|
unsetUnnecessaryFields(params: {
|
|
347
347
|
filter: any;
|
|
348
348
|
$unset: any;
|
|
349
|
-
}): Promise<import("
|
|
349
|
+
}): Promise<import("mongoose").UpdateWriteOpResult>;
|
|
350
350
|
aggregateAssetTransaction(params: {
|
|
351
351
|
project?: {
|
|
352
352
|
id?: {
|
|
@@ -1,3 +1,27 @@
|
|
|
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" />
|
|
1
25
|
import type { Connection, FilterQuery } from 'mongoose';
|
|
2
26
|
import * as factory from '../factory';
|
|
3
27
|
type IFindValidOneResult = Pick<factory.authorization.IAuthorization, 'object' | 'typeOf' | 'audience' | 'issuedBy'> & {
|
|
@@ -48,7 +72,7 @@ export declare class AuthorizationRepo {
|
|
|
48
72
|
unsetUnnecessaryFields(params: {
|
|
49
73
|
filter: FilterQuery<factory.authorization.IAuthorization>;
|
|
50
74
|
$unset: any;
|
|
51
|
-
}): Promise<import("
|
|
75
|
+
}): Promise<import("mongoose").UpdateWriteOpResult>;
|
|
52
76
|
/**
|
|
53
77
|
* コードを保管する
|
|
54
78
|
*/
|
|
@@ -86,6 +86,6 @@ export declare class CategoryCodeRepo {
|
|
|
86
86
|
unsetUnnecessaryFields(params: {
|
|
87
87
|
filter: FilterQuery<factory.categoryCode.ICategoryCode>;
|
|
88
88
|
$unset: any;
|
|
89
|
-
}): Promise<import("
|
|
89
|
+
}): Promise<import("mongoose").UpdateWriteOpResult>;
|
|
90
90
|
}
|
|
91
91
|
export {};
|
|
@@ -54,9 +54,9 @@ export declare class CommentRepo {
|
|
|
54
54
|
deleteById(params: {
|
|
55
55
|
id: string;
|
|
56
56
|
}): Promise<void>;
|
|
57
|
-
getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, import("@chevre/factory/lib/creativeWork/comment").IComment> &
|
|
57
|
+
getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, import("@chevre/factory/lib/creativeWork/comment").IComment> & import("@chevre/factory/lib/creativeWork/comment").IComment & {
|
|
58
58
|
_id: import("mongoose").Types.ObjectId;
|
|
59
|
-
},
|
|
59
|
+
}, import("mongoose").QueryOptions<import("mongoose").Document<unknown, {}, import("@chevre/factory/lib/creativeWork/comment").IComment> & import("@chevre/factory/lib/creativeWork/comment").IComment & {
|
|
60
60
|
_id: import("mongoose").Types.ObjectId;
|
|
61
|
-
}
|
|
61
|
+
}>>;
|
|
62
62
|
}
|
|
@@ -74,20 +74,20 @@ export declare class CreativeWorkRepo {
|
|
|
74
74
|
}): Promise<void>;
|
|
75
75
|
getCursor(conditions: FilterQuery<factory.creativeWork.movie.ICreativeWork>, projection: any): import("mongoose").Cursor<Document<unknown, {}, import("@chevre/factory/lib/creativeWork/movie").ICreativeWork & {
|
|
76
76
|
description?: string | undefined;
|
|
77
|
-
}> &
|
|
77
|
+
}> & import("@chevre/factory/lib/creativeWork/movie").ICreativeWork & {
|
|
78
78
|
description?: string | undefined;
|
|
79
79
|
} & {
|
|
80
80
|
_id: Types.ObjectId;
|
|
81
|
-
},
|
|
81
|
+
}, import("mongoose").QueryOptions<Document<unknown, {}, import("@chevre/factory/lib/creativeWork/movie").ICreativeWork & {
|
|
82
82
|
description?: string | undefined;
|
|
83
|
-
}> &
|
|
83
|
+
}> & import("@chevre/factory/lib/creativeWork/movie").ICreativeWork & {
|
|
84
84
|
description?: string | undefined;
|
|
85
85
|
} & {
|
|
86
86
|
_id: Types.ObjectId;
|
|
87
|
-
}
|
|
87
|
+
}>>;
|
|
88
88
|
unsetUnnecessaryFields(params: {
|
|
89
89
|
filter: FilterQuery<factory.creativeWork.movie.ICreativeWork>;
|
|
90
90
|
$unset: any;
|
|
91
|
-
}): Promise<import("
|
|
91
|
+
}): Promise<import("mongoose").UpdateWriteOpResult>;
|
|
92
92
|
}
|
|
93
93
|
export {};
|
|
@@ -51,14 +51,14 @@ export declare class CustomerRepo {
|
|
|
51
51
|
deleteById(params: {
|
|
52
52
|
id: string;
|
|
53
53
|
}): Promise<void>;
|
|
54
|
-
getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, factory.customer.ICustomer> &
|
|
54
|
+
getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, factory.customer.ICustomer> & factory.customer.ICustomer & {
|
|
55
55
|
_id: import("mongoose").Types.ObjectId;
|
|
56
|
-
},
|
|
56
|
+
}, import("mongoose").QueryOptions<import("mongoose").Document<unknown, {}, factory.customer.ICustomer> & factory.customer.ICustomer & {
|
|
57
57
|
_id: import("mongoose").Types.ObjectId;
|
|
58
|
-
}
|
|
58
|
+
}>>;
|
|
59
59
|
unsetUnnecessaryFields(params: {
|
|
60
60
|
filter: any;
|
|
61
61
|
$unset: any;
|
|
62
|
-
}): Promise<import("
|
|
62
|
+
}): Promise<import("mongoose").UpdateWriteOpResult>;
|
|
63
63
|
}
|
|
64
64
|
export {};
|
|
@@ -294,7 +294,7 @@ export declare class EventRepo {
|
|
|
294
294
|
validationErrors: import("mongoose").Error[];
|
|
295
295
|
} | undefined;
|
|
296
296
|
}>;
|
|
297
|
-
getCursor(conditions: FilterQuery<any>, projection: any): import("mongoose").Cursor<Document<unknown, {}, import("./mongoose/schemas/event").IDocType> &
|
|
297
|
+
getCursor(conditions: FilterQuery<any>, projection: any): import("mongoose").Cursor<Document<unknown, {}, import("./mongoose/schemas/event").IDocType> & ((import("@chevre/factory/lib/event/anyEvent").IAttributes & {
|
|
298
298
|
_id: string;
|
|
299
299
|
} & Required<{
|
|
300
300
|
_id: string;
|
|
@@ -308,7 +308,7 @@ export declare class EventRepo {
|
|
|
308
308
|
_id: string;
|
|
309
309
|
} & Required<{
|
|
310
310
|
_id: string;
|
|
311
|
-
}>),
|
|
311
|
+
}>)), import("mongoose").QueryOptions<Document<unknown, {}, import("./mongoose/schemas/event").IDocType> & ((import("@chevre/factory/lib/event/anyEvent").IAttributes & {
|
|
312
312
|
_id: string;
|
|
313
313
|
} & Required<{
|
|
314
314
|
_id: string;
|
|
@@ -322,7 +322,7 @@ export declare class EventRepo {
|
|
|
322
322
|
_id: string;
|
|
323
323
|
} & Required<{
|
|
324
324
|
_id: string;
|
|
325
|
-
}>)
|
|
325
|
+
}>))>>;
|
|
326
326
|
addAvailableAtOrFrom(params: {
|
|
327
327
|
id: string;
|
|
328
328
|
offers: {
|
|
@@ -334,7 +334,7 @@ export declare class EventRepo {
|
|
|
334
334
|
unsetUnnecessaryFields<T extends AvailableEventType>(params: {
|
|
335
335
|
filter: FilterQuery<factory.event.IEvent<T>>;
|
|
336
336
|
$unset: IUnset<T>;
|
|
337
|
-
}): Promise<import("
|
|
337
|
+
}): Promise<import("mongoose").UpdateWriteOpResult>;
|
|
338
338
|
aggregateEvent(params: {
|
|
339
339
|
project?: {
|
|
340
340
|
id?: {
|
|
@@ -132,7 +132,7 @@ export declare class EventSeriesRepo {
|
|
|
132
132
|
sync2secondary(params: {
|
|
133
133
|
id: string;
|
|
134
134
|
}): Promise<void>;
|
|
135
|
-
getCursor(conditions: FilterQuery<any>, projection: any): import("mongoose").Cursor<Document<unknown, {}, IDocType> &
|
|
135
|
+
getCursor(conditions: FilterQuery<any>, projection: any): import("mongoose").Cursor<Document<unknown, {}, IDocType> & ((import("@chevre/factory/lib/event/anyEvent").IAttributes & {
|
|
136
136
|
_id: string;
|
|
137
137
|
} & Required<{
|
|
138
138
|
_id: string;
|
|
@@ -146,7 +146,7 @@ export declare class EventSeriesRepo {
|
|
|
146
146
|
_id: string;
|
|
147
147
|
} & Required<{
|
|
148
148
|
_id: string;
|
|
149
|
-
}>),
|
|
149
|
+
}>)), import("mongoose").QueryOptions<Document<unknown, {}, IDocType> & ((import("@chevre/factory/lib/event/anyEvent").IAttributes & {
|
|
150
150
|
_id: string;
|
|
151
151
|
} & Required<{
|
|
152
152
|
_id: string;
|
|
@@ -160,6 +160,6 @@ export declare class EventSeriesRepo {
|
|
|
160
160
|
_id: string;
|
|
161
161
|
} & Required<{
|
|
162
162
|
_id: string;
|
|
163
|
-
}>)
|
|
163
|
+
}>))>>;
|
|
164
164
|
}
|
|
165
165
|
export {};
|
|
@@ -153,13 +153,13 @@ export declare class MemberRepo {
|
|
|
153
153
|
id: string;
|
|
154
154
|
};
|
|
155
155
|
}): Promise<string[]>;
|
|
156
|
-
getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, factory.iam.IMember> &
|
|
156
|
+
getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, factory.iam.IMember> & factory.iam.IMember & {
|
|
157
157
|
_id: import("mongoose").Types.ObjectId;
|
|
158
|
-
},
|
|
158
|
+
}, import("mongoose").QueryOptions<import("mongoose").Document<unknown, {}, factory.iam.IMember> & factory.iam.IMember & {
|
|
159
159
|
_id: import("mongoose").Types.ObjectId;
|
|
160
|
-
}
|
|
160
|
+
}>>;
|
|
161
161
|
unsetUnnecessaryFields(params: {
|
|
162
162
|
filter: any;
|
|
163
163
|
$unset: any;
|
|
164
|
-
}): Promise<import("
|
|
164
|
+
}): Promise<import("mongoose").UpdateWriteOpResult>;
|
|
165
165
|
}
|
|
@@ -44,7 +44,7 @@ export declare class MerchantReturnPolicyRepo {
|
|
|
44
44
|
id: string;
|
|
45
45
|
};
|
|
46
46
|
}): Promise<void>;
|
|
47
|
-
getCursor(conditions: any, projection: any): import("mongoose").Cursor<Document<unknown, {}, factory.unitPriceOffer.IOfferMerchantReturnPolicy> &
|
|
47
|
+
getCursor(conditions: any, projection: any): import("mongoose").Cursor<Document<unknown, {}, factory.unitPriceOffer.IOfferMerchantReturnPolicy> & Pick<factory.merchantReturnPolicy.IMerchantReturnPolicy, "typeOf" | "customerRemorseReturnFees" | "customerRemorseReturnFeesMovieTicket"> & {
|
|
48
48
|
customerRemorseReturnFees: factory.merchantReturnPolicy.ReturnFeesEnumeration;
|
|
49
49
|
customerRemorseReturnFeesMovieTicket: factory.merchantReturnPolicy.ICustomerRemorseReturnFeesMovieTicket;
|
|
50
50
|
project: Pick<factory.project.IProject, "id" | "typeOf">;
|
|
@@ -54,7 +54,7 @@ export declare class MerchantReturnPolicyRepo {
|
|
|
54
54
|
name?: import("@chevre/factory/lib/multilingualString").IMultilingualString | undefined;
|
|
55
55
|
} & {
|
|
56
56
|
_id: import("mongoose").Types.ObjectId;
|
|
57
|
-
},
|
|
57
|
+
}, import("mongoose").QueryOptions<Document<unknown, {}, factory.unitPriceOffer.IOfferMerchantReturnPolicy> & Pick<factory.merchantReturnPolicy.IMerchantReturnPolicy, "typeOf" | "customerRemorseReturnFees" | "customerRemorseReturnFeesMovieTicket"> & {
|
|
58
58
|
customerRemorseReturnFees: factory.merchantReturnPolicy.ReturnFeesEnumeration;
|
|
59
59
|
customerRemorseReturnFeesMovieTicket: factory.merchantReturnPolicy.ICustomerRemorseReturnFeesMovieTicket;
|
|
60
60
|
project: Pick<factory.project.IProject, "id" | "typeOf">;
|
|
@@ -64,5 +64,5 @@ export declare class MerchantReturnPolicyRepo {
|
|
|
64
64
|
name?: import("@chevre/factory/lib/multilingualString").IMultilingualString | undefined;
|
|
65
65
|
} & {
|
|
66
66
|
_id: import("mongoose").Types.ObjectId;
|
|
67
|
-
}
|
|
67
|
+
}>>;
|
|
68
68
|
}
|