@chevre/domain 24.0.0-alpha.27 → 24.0.0-alpha.28
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.js +1 -1
- package/lib/chevre/repo/accountTitle.d.ts +7 -3
- package/lib/chevre/repo/action/acceptCOAOffer.js +0 -2
- package/lib/chevre/repo/action/actionProcess.d.ts +1 -1
- package/lib/chevre/repo/action/actionProcess.js +3 -3
- package/lib/chevre/repo/action.d.ts +8 -7
- package/lib/chevre/repo/action.js +0 -2
- package/lib/chevre/repo/aggregateOffer.d.ts +7 -3
- package/lib/chevre/repo/assetTransaction.d.ts +48 -22
- package/lib/chevre/repo/categoryCode.d.ts +8 -3
- package/lib/chevre/repo/comment.d.ts +7 -3
- package/lib/chevre/repo/creativeWork.d.ts +8 -7
- package/lib/chevre/repo/customer.d.ts +8 -3
- package/lib/chevre/repo/event.d.ts +11 -23
- package/lib/chevre/repo/event.js +22 -23
- package/lib/chevre/repo/eventSeries.d.ts +10 -4
- package/lib/chevre/repo/identity.d.ts +12 -3
- package/lib/chevre/repo/identityProvider.d.ts +7 -18
- package/lib/chevre/repo/issuer.d.ts +8 -8
- package/lib/chevre/repo/member.d.ts +7 -3
- package/lib/chevre/repo/merchantReturnPolicy.d.ts +7 -3
- package/lib/chevre/repo/message.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/acceptedPaymentMethod.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/action.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/additionalProperty.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/aggregateOffer.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/authorization.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/categoryCode.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/creativeWork.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/customer.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/customerType.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/eventOffer.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/identity.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/identityProvider.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/issuer.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/member/global.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/message.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/movieTicketTypes.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/offerCatalog.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/offerCatalogItem.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/offerItemCondition.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/ownershipInfo.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/paymentService.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/paymentServiceChannel.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/potentialAction.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/priceSpecification.d.ts +3 -1
- package/lib/chevre/repo/mongoose/schemas/product.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/productModel.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/project.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/schedule.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/seller.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/sellerReturnPolicy.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/serviceOutput.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/setting.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/task.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/ticket.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/transaction.d.ts +5 -2
- package/lib/chevre/repo/mongoose/schemas/webSite.d.ts +1 -1
- package/lib/chevre/repo/movieTicketType.d.ts +2 -1
- package/lib/chevre/repo/offerCatalog.d.ts +8 -4
- package/lib/chevre/repo/order.d.ts +10 -4
- package/lib/chevre/repo/ownershipInfo.d.ts +8 -7
- package/lib/chevre/repo/paymentService.d.ts +8 -8
- package/lib/chevre/repo/place/movieTheater.d.ts +7 -3
- package/lib/chevre/repo/place/screeningRoom.d.ts +7 -3
- package/lib/chevre/repo/potentialAction.d.ts +7 -26
- package/lib/chevre/repo/priceSpecification.d.ts +47 -22
- package/lib/chevre/repo/priceSpecification.js +0 -6
- package/lib/chevre/repo/product.d.ts +7 -3
- package/lib/chevre/repo/project.d.ts +8 -11
- package/lib/chevre/repo/reservation.d.ts +18 -6
- package/lib/chevre/repo/reserveInterface.js +4 -4
- package/lib/chevre/repo/role.d.ts +39 -3
- package/lib/chevre/repo/schedule.js +1 -1
- package/lib/chevre/repo/seller.d.ts +7 -50
- package/lib/chevre/repo/task.d.ts +7 -67
- package/lib/chevre/repo/transaction.d.ts +103 -13
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Connection, FilterQuery } from 'mongoose';
|
|
2
2
|
import * as factory from '../factory';
|
|
3
|
-
import { IModel } from './mongoose/schemas/paymentService';
|
|
3
|
+
import { IModel, IDocType } from './mongoose/schemas/paymentService';
|
|
4
4
|
type IUnsetKey = keyof Pick<factory.service.paymentService.IService, 'additionalProperty' | 'availableChannel' | 'serviceOutput' | 'serviceType'>;
|
|
5
5
|
type IKeyOfProjection4paymentService = keyof factory.service.paymentService.IService;
|
|
6
6
|
/**
|
|
@@ -73,19 +73,19 @@ export declare class PaymentServiceRepo {
|
|
|
73
73
|
filter: any;
|
|
74
74
|
$unset: any;
|
|
75
75
|
}): Promise<import("mongoose").UpdateWriteOpResult>;
|
|
76
|
-
getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, Omit<import("@chevre/factory/lib/service/paymentService").IService, "id"> & {
|
|
77
|
-
provider?: factory.service.paymentService.IProvider[];
|
|
78
|
-
}> & Omit<import("@chevre/factory/lib/service/paymentService").IService, "id"> & {
|
|
76
|
+
getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, IDocType, {}, {}> & Omit<import("@chevre/factory/lib/service/paymentService").IService, "id"> & {
|
|
79
77
|
provider?: factory.service.paymentService.IProvider[];
|
|
80
78
|
} & {
|
|
81
79
|
_id: import("mongoose").Types.ObjectId;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
}> & Omit<import("@chevre/factory/lib/service/paymentService").IService, "id"> & {
|
|
80
|
+
} & {
|
|
81
|
+
__v: number;
|
|
82
|
+
}, import("mongoose").QueryOptions<IDocType>, (import("mongoose").Document<unknown, {}, IDocType, {}, {}> & Omit<import("@chevre/factory/lib/service/paymentService").IService, "id"> & {
|
|
85
83
|
provider?: factory.service.paymentService.IProvider[];
|
|
86
84
|
} & {
|
|
87
85
|
_id: import("mongoose").Types.ObjectId;
|
|
88
|
-
}
|
|
86
|
+
} & {
|
|
87
|
+
__v: number;
|
|
88
|
+
}) | null>;
|
|
89
89
|
getModel(): IModel;
|
|
90
90
|
}
|
|
91
91
|
export {};
|
|
@@ -95,15 +95,19 @@ export declare class MovieTheaterRepo {
|
|
|
95
95
|
id: string;
|
|
96
96
|
};
|
|
97
97
|
}): Promise<void>;
|
|
98
|
-
getCursor(conditions: FilterQuery<any>, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, IDocType> & Omit<import("@chevre/factory/lib/place/movieTheater").IPlace, "id"> & {
|
|
98
|
+
getCursor(conditions: FilterQuery<any>, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, IDocType, {}, {}> & Omit<import("@chevre/factory/lib/place/movieTheater").IPlace, "id"> & {
|
|
99
99
|
hasPOS?: factory.place.movieTheater.IPOS[];
|
|
100
100
|
} & {
|
|
101
101
|
_id: import("mongoose").Types.ObjectId;
|
|
102
|
-
}
|
|
102
|
+
} & {
|
|
103
|
+
__v: number;
|
|
104
|
+
}, import("mongoose").QueryOptions<IDocType>, (import("mongoose").Document<unknown, {}, IDocType, {}, {}> & Omit<import("@chevre/factory/lib/place/movieTheater").IPlace, "id"> & {
|
|
103
105
|
hasPOS?: factory.place.movieTheater.IPOS[];
|
|
104
106
|
} & {
|
|
105
107
|
_id: import("mongoose").Types.ObjectId;
|
|
106
|
-
}
|
|
108
|
+
} & {
|
|
109
|
+
__v: number;
|
|
110
|
+
}) | null>;
|
|
107
111
|
unsetUnnecessaryFields(params: {
|
|
108
112
|
filter: any;
|
|
109
113
|
$unset: any;
|
|
@@ -124,7 +124,7 @@ export declare class ScreeningRoomRepo {
|
|
|
124
124
|
id: string;
|
|
125
125
|
};
|
|
126
126
|
}): Promise<void>;
|
|
127
|
-
getCursor(conditions: FilterQuery<any>, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, IDocType> & Omit<import("@chevre/factory/lib/place/screeningRoom").IPlace, "containsPlace"> & {
|
|
127
|
+
getCursor(conditions: FilterQuery<any>, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, IDocType, {}, {}> & Omit<import("@chevre/factory/lib/place/screeningRoom").IPlace, "containsPlace"> & {
|
|
128
128
|
description?: any;
|
|
129
129
|
openingHoursSpecification?: any;
|
|
130
130
|
smokingAllowed?: boolean;
|
|
@@ -133,7 +133,9 @@ export declare class ScreeningRoomRepo {
|
|
|
133
133
|
})[];
|
|
134
134
|
} & {
|
|
135
135
|
_id: import("mongoose").Types.ObjectId;
|
|
136
|
-
}
|
|
136
|
+
} & {
|
|
137
|
+
__v: number;
|
|
138
|
+
}, import("mongoose").QueryOptions<IDocType>, (import("mongoose").Document<unknown, {}, IDocType, {}, {}> & Omit<import("@chevre/factory/lib/place/screeningRoom").IPlace, "containsPlace"> & {
|
|
137
139
|
description?: any;
|
|
138
140
|
openingHoursSpecification?: any;
|
|
139
141
|
smokingAllowed?: boolean;
|
|
@@ -142,6 +144,8 @@ export declare class ScreeningRoomRepo {
|
|
|
142
144
|
})[];
|
|
143
145
|
} & {
|
|
144
146
|
_id: import("mongoose").Types.ObjectId;
|
|
145
|
-
}
|
|
147
|
+
} & {
|
|
148
|
+
__v: number;
|
|
149
|
+
}) | null>;
|
|
146
150
|
}
|
|
147
151
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Connection, FilterQuery, QueryOptions } from 'mongoose';
|
|
2
2
|
import * as factory from '../factory';
|
|
3
|
+
import { IDocType } from './mongoose/schemas/potentialAction';
|
|
3
4
|
export type ISavingPotentialAction = Pick<factory.potentialAction.IPotentialAction, 'target' | 'project' | 'typeOf' | 'identifier'> & {
|
|
4
5
|
id?: never;
|
|
5
6
|
};
|
|
@@ -23,34 +24,14 @@ export declare class PotentialActionRepo {
|
|
|
23
24
|
id: string;
|
|
24
25
|
}>;
|
|
25
26
|
projectFields(conditions: factory.potentialAction.ISearchConditions, inclusion: IKeyOfProjection[]): Promise<factory.potentialAction.IPotentialAction[]>;
|
|
26
|
-
getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, {
|
|
27
|
-
project: Pick<factory.project.IProject, "id" | "typeOf">;
|
|
28
|
-
identifier: string;
|
|
29
|
-
typeOf: factory.actionType.InformAction;
|
|
30
|
-
recipient: factory.potentialAction.IInformRecipient;
|
|
31
|
-
target: factory.entryPoint.IEntryPoint;
|
|
32
|
-
}> & {
|
|
33
|
-
project: Pick<factory.project.IProject, "id" | "typeOf">;
|
|
34
|
-
identifier: string;
|
|
35
|
-
typeOf: factory.actionType.InformAction;
|
|
36
|
-
recipient: factory.potentialAction.IInformRecipient;
|
|
37
|
-
target: factory.entryPoint.IEntryPoint;
|
|
38
|
-
} & {
|
|
27
|
+
getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, IDocType, {}, {}> & IDocType & {
|
|
39
28
|
_id: import("mongoose").Types.ObjectId;
|
|
40
|
-
}, QueryOptions<import("mongoose").Document<unknown, {}, {
|
|
41
|
-
project: Pick<factory.project.IProject, "id" | "typeOf">;
|
|
42
|
-
identifier: string;
|
|
43
|
-
typeOf: factory.actionType.InformAction;
|
|
44
|
-
recipient: factory.potentialAction.IInformRecipient;
|
|
45
|
-
target: factory.entryPoint.IEntryPoint;
|
|
46
|
-
}> & {
|
|
47
|
-
project: Pick<factory.project.IProject, "id" | "typeOf">;
|
|
48
|
-
identifier: string;
|
|
49
|
-
typeOf: factory.actionType.InformAction;
|
|
50
|
-
recipient: factory.potentialAction.IInformRecipient;
|
|
51
|
-
target: factory.entryPoint.IEntryPoint;
|
|
52
29
|
} & {
|
|
30
|
+
__v: number;
|
|
31
|
+
}, QueryOptions<IDocType>, (import("mongoose").Document<unknown, {}, IDocType, {}, {}> & IDocType & {
|
|
53
32
|
_id: import("mongoose").Types.ObjectId;
|
|
54
|
-
}
|
|
33
|
+
} & {
|
|
34
|
+
__v: number;
|
|
35
|
+
}) | null>;
|
|
55
36
|
}
|
|
56
37
|
export {};
|
|
@@ -34,48 +34,73 @@ export declare class PriceSpecificationRepo {
|
|
|
34
34
|
id: string;
|
|
35
35
|
};
|
|
36
36
|
}): Promise<void>;
|
|
37
|
-
getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, IDocType> & ((
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, IDocType, {}, {}> & (({
|
|
38
|
+
project?: Pick<factory.project.IProject, "id" | "typeOf"> | undefined;
|
|
39
|
+
name?: (string | import("@chevre/factory/lib/multilingualString").IMultilingualString) | undefined;
|
|
40
|
+
price: number;
|
|
41
|
+
priceCurrency: factory.priceCurrency;
|
|
42
|
+
typeOf: factory.priceSpecificationType.CategoryCodeChargeSpecification;
|
|
43
|
+
valueAddedTaxIncluded: boolean;
|
|
44
|
+
accounting?: never | undefined;
|
|
45
|
+
appliesToCategoryCode: import("@chevre/factory/lib/priceSpecification/categoryCodeChargeSpecification").IAppliesToCategoryCode[];
|
|
40
46
|
} & {
|
|
41
|
-
_id: import("mongoose").Types.ObjectId;
|
|
42
|
-
}) | (import("@chevre/factory/lib/priceSpecification/movieTicketTypeChargeSpecification").IPriceSpecification & {
|
|
43
47
|
validFrom?: Date;
|
|
44
48
|
validThrough?: Date;
|
|
45
49
|
} & {
|
|
46
50
|
_id: import("mongoose").Types.ObjectId;
|
|
47
|
-
}) | (import("@chevre/factory/lib/priceSpecification/unitPriceSpecification").IPriceSpecification & {
|
|
48
|
-
validFrom?: Date;
|
|
49
|
-
validThrough?: Date;
|
|
50
51
|
} & {
|
|
51
|
-
|
|
52
|
-
}) | (
|
|
53
|
-
|
|
54
|
-
|
|
52
|
+
__v: number;
|
|
53
|
+
}) | ({
|
|
54
|
+
project?: Pick<factory.project.IProject, "id" | "typeOf"> | undefined;
|
|
55
|
+
name?: (string | import("@chevre/factory/lib/multilingualString").IMultilingualString) | undefined;
|
|
56
|
+
price: number;
|
|
57
|
+
priceCurrency: factory.priceCurrency;
|
|
58
|
+
typeOf: factory.priceSpecificationType.MovieTicketTypeChargeSpecification;
|
|
59
|
+
valueAddedTaxIncluded: boolean;
|
|
60
|
+
accounting?: never | undefined;
|
|
61
|
+
appliesToMovieTicket: import("@chevre/factory/lib/priceSpecification/movieTicketTypeChargeSpecification").IAppliesToMovieTicket;
|
|
62
|
+
appliesToVideoFormat: string;
|
|
55
63
|
} & {
|
|
56
|
-
_id: import("mongoose").Types.ObjectId;
|
|
57
|
-
})), import("mongoose").QueryOptions<import("mongoose").Document<unknown, {}, IDocType> & ((import("@chevre/factory/lib/priceSpecification/categoryCodeChargeSpecification").IPriceSpecification & {
|
|
58
64
|
validFrom?: Date;
|
|
59
65
|
validThrough?: Date;
|
|
60
66
|
} & {
|
|
61
67
|
_id: import("mongoose").Types.ObjectId;
|
|
62
|
-
}) | (import("@chevre/factory/lib/priceSpecification/movieTicketTypeChargeSpecification").IPriceSpecification & {
|
|
63
|
-
validFrom?: Date;
|
|
64
|
-
validThrough?: Date;
|
|
65
68
|
} & {
|
|
66
|
-
|
|
67
|
-
})
|
|
69
|
+
__v: number;
|
|
70
|
+
})), import("mongoose").QueryOptions<IDocType>, (import("mongoose").Document<unknown, {}, IDocType, {}, {}> & (({
|
|
71
|
+
project?: Pick<factory.project.IProject, "id" | "typeOf"> | undefined;
|
|
72
|
+
name?: (string | import("@chevre/factory/lib/multilingualString").IMultilingualString) | undefined;
|
|
73
|
+
price: number;
|
|
74
|
+
priceCurrency: factory.priceCurrency;
|
|
75
|
+
typeOf: factory.priceSpecificationType.CategoryCodeChargeSpecification;
|
|
76
|
+
valueAddedTaxIncluded: boolean;
|
|
77
|
+
accounting?: never | undefined;
|
|
78
|
+
appliesToCategoryCode: import("@chevre/factory/lib/priceSpecification/categoryCodeChargeSpecification").IAppliesToCategoryCode[];
|
|
79
|
+
} & {
|
|
68
80
|
validFrom?: Date;
|
|
69
81
|
validThrough?: Date;
|
|
70
82
|
} & {
|
|
71
83
|
_id: import("mongoose").Types.ObjectId;
|
|
72
|
-
}
|
|
84
|
+
} & {
|
|
85
|
+
__v: number;
|
|
86
|
+
}) | ({
|
|
87
|
+
project?: Pick<factory.project.IProject, "id" | "typeOf"> | undefined;
|
|
88
|
+
name?: (string | import("@chevre/factory/lib/multilingualString").IMultilingualString) | undefined;
|
|
89
|
+
price: number;
|
|
90
|
+
priceCurrency: factory.priceCurrency;
|
|
91
|
+
typeOf: factory.priceSpecificationType.MovieTicketTypeChargeSpecification;
|
|
92
|
+
valueAddedTaxIncluded: boolean;
|
|
93
|
+
accounting?: never | undefined;
|
|
94
|
+
appliesToMovieTicket: import("@chevre/factory/lib/priceSpecification/movieTicketTypeChargeSpecification").IAppliesToMovieTicket;
|
|
95
|
+
appliesToVideoFormat: string;
|
|
96
|
+
} & {
|
|
73
97
|
validFrom?: Date;
|
|
74
98
|
validThrough?: Date;
|
|
75
99
|
} & {
|
|
76
100
|
_id: import("mongoose").Types.ObjectId;
|
|
77
|
-
}
|
|
78
|
-
|
|
101
|
+
} & {
|
|
102
|
+
__v: number;
|
|
103
|
+
}))) | null>;
|
|
79
104
|
unsetUnnecessaryFields(params: {
|
|
80
105
|
filter: any;
|
|
81
106
|
$unset: any;
|
|
@@ -260,12 +260,6 @@ class PriceSpecificationRepo {
|
|
|
260
260
|
.sort({ price: factory.sortType.Ascending })
|
|
261
261
|
.cursor();
|
|
262
262
|
}
|
|
263
|
-
async reIndex() {
|
|
264
|
-
// return this.priceSpecificationModel.collection.name;
|
|
265
|
-
return this.priceSpecificationModel.db.db.command({
|
|
266
|
-
reIndex: this.priceSpecificationModel.collection.name
|
|
267
|
-
});
|
|
268
|
-
}
|
|
269
263
|
async unsetUnnecessaryFields(params) {
|
|
270
264
|
return this.priceSpecificationModel.updateMany(params.filter, { $unset: params.$unset }, { timestamps: false })
|
|
271
265
|
.exec();
|
|
@@ -103,11 +103,15 @@ export declare class ProductRepo {
|
|
|
103
103
|
id: string;
|
|
104
104
|
};
|
|
105
105
|
}): Promise<void>;
|
|
106
|
-
getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {},
|
|
106
|
+
getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, import("./mongoose/schemas/product").IDocType, {}, {}> & IDocTypeAsProduct & import("./mongoose/schemas/product").IDocTypeAsProductOffer & {
|
|
107
107
|
_id: Types.ObjectId;
|
|
108
|
-
}
|
|
108
|
+
} & {
|
|
109
|
+
__v: number;
|
|
110
|
+
}, import("mongoose").QueryOptions<import("./mongoose/schemas/product").IDocType>, (import("mongoose").Document<unknown, {}, import("./mongoose/schemas/product").IDocType, {}, {}> & IDocTypeAsProduct & import("./mongoose/schemas/product").IDocTypeAsProductOffer & {
|
|
109
111
|
_id: Types.ObjectId;
|
|
110
|
-
}
|
|
112
|
+
} & {
|
|
113
|
+
__v: number;
|
|
114
|
+
}) | null>;
|
|
111
115
|
unsetUnnecessaryFields(params: {
|
|
112
116
|
filter: FilterQuery<factory.product.IProduct>;
|
|
113
117
|
$unset: any;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Connection, FilterQuery } from 'mongoose';
|
|
2
|
+
import { IDocType } from './mongoose/schemas/project';
|
|
2
3
|
import * as factory from '../factory';
|
|
3
4
|
type IKeyOfProjection = keyof factory.project.IProject;
|
|
4
5
|
/**
|
|
@@ -49,27 +50,23 @@ export declare class ProjectRepo {
|
|
|
49
50
|
deleteById(params: {
|
|
50
51
|
id: string;
|
|
51
52
|
}): Promise<void>;
|
|
52
|
-
getCursor(conditions: FilterQuery<factory.project.IProject>, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, Omit<factory.project.IProject, "id"> & {
|
|
53
|
-
_id: string;
|
|
54
|
-
aggregateReservation?: any;
|
|
55
|
-
makesOffer?: factory.project.IMakesOffer[];
|
|
56
|
-
}> & Omit<factory.project.IProject, "id"> & {
|
|
53
|
+
getCursor(conditions: FilterQuery<factory.project.IProject>, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, IDocType, {}, {}> & Omit<factory.project.IProject, "id"> & {
|
|
57
54
|
_id: string;
|
|
58
55
|
aggregateReservation?: any;
|
|
59
56
|
makesOffer?: factory.project.IMakesOffer[];
|
|
60
57
|
} & Required<{
|
|
61
58
|
_id: string;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
makesOffer?: factory.project.IMakesOffer[];
|
|
66
|
-
}> & Omit<factory.project.IProject, "id"> & {
|
|
59
|
+
}> & {
|
|
60
|
+
__v: number;
|
|
61
|
+
}, import("mongoose").QueryOptions<IDocType>, (import("mongoose").Document<unknown, {}, IDocType, {}, {}> & Omit<factory.project.IProject, "id"> & {
|
|
67
62
|
_id: string;
|
|
68
63
|
aggregateReservation?: any;
|
|
69
64
|
makesOffer?: factory.project.IMakesOffer[];
|
|
70
65
|
} & Required<{
|
|
71
66
|
_id: string;
|
|
72
|
-
}
|
|
67
|
+
}> & {
|
|
68
|
+
__v: number;
|
|
69
|
+
}) | null>;
|
|
73
70
|
unsetUnnecessaryFields(params: {
|
|
74
71
|
filter: any;
|
|
75
72
|
$unset: any;
|
|
@@ -129,35 +129,47 @@ export declare class ReservationRepo {
|
|
|
129
129
|
_id: string;
|
|
130
130
|
bookingAgent?: any;
|
|
131
131
|
previousReservationStatus?: factory.reservationStatusType;
|
|
132
|
-
}> & ((Omit<import("@chevre/factory/lib/reservation/busReservation").IReservation, "id"> & {
|
|
132
|
+
}, {}, {}> & ((Omit<import("@chevre/factory/lib/reservation/busReservation").IReservation, "id"> & {
|
|
133
133
|
_id: string;
|
|
134
134
|
bookingAgent?: any;
|
|
135
135
|
previousReservationStatus?: factory.reservationStatusType;
|
|
136
136
|
} & Required<{
|
|
137
137
|
_id: string;
|
|
138
|
-
}>
|
|
138
|
+
}> & {
|
|
139
|
+
__v: number;
|
|
140
|
+
}) | (Omit<import("@chevre/factory/lib/reservation/event").IReservation, "id"> & {
|
|
139
141
|
_id: string;
|
|
140
142
|
bookingAgent?: any;
|
|
141
143
|
previousReservationStatus?: factory.reservationStatusType;
|
|
142
144
|
} & Required<{
|
|
143
145
|
_id: string;
|
|
144
|
-
}>
|
|
146
|
+
}> & {
|
|
147
|
+
__v: number;
|
|
148
|
+
})), import("mongoose").QueryOptions<(Omit<import("@chevre/factory/lib/reservation/busReservation").IReservation, "id"> | Omit<import("@chevre/factory/lib/reservation/event").IReservation, "id">) & {
|
|
145
149
|
_id: string;
|
|
146
150
|
bookingAgent?: any;
|
|
147
151
|
previousReservationStatus?: factory.reservationStatusType;
|
|
148
|
-
}
|
|
152
|
+
}>, (import("mongoose").Document<unknown, {}, (Omit<import("@chevre/factory/lib/reservation/busReservation").IReservation, "id"> | Omit<import("@chevre/factory/lib/reservation/event").IReservation, "id">) & {
|
|
153
|
+
_id: string;
|
|
154
|
+
bookingAgent?: any;
|
|
155
|
+
previousReservationStatus?: factory.reservationStatusType;
|
|
156
|
+
}, {}, {}> & ((Omit<import("@chevre/factory/lib/reservation/busReservation").IReservation, "id"> & {
|
|
149
157
|
_id: string;
|
|
150
158
|
bookingAgent?: any;
|
|
151
159
|
previousReservationStatus?: factory.reservationStatusType;
|
|
152
160
|
} & Required<{
|
|
153
161
|
_id: string;
|
|
154
|
-
}>
|
|
162
|
+
}> & {
|
|
163
|
+
__v: number;
|
|
164
|
+
}) | (Omit<import("@chevre/factory/lib/reservation/event").IReservation, "id"> & {
|
|
155
165
|
_id: string;
|
|
156
166
|
bookingAgent?: any;
|
|
157
167
|
previousReservationStatus?: factory.reservationStatusType;
|
|
158
168
|
} & Required<{
|
|
159
169
|
_id: string;
|
|
160
|
-
}>
|
|
170
|
+
}> & {
|
|
171
|
+
__v: number;
|
|
172
|
+
}))) | null>;
|
|
161
173
|
unsetUnnecessaryFields(params: {
|
|
162
174
|
filter: any;
|
|
163
175
|
$unset: any;
|
|
@@ -29,9 +29,9 @@ class ReserveInterfaceRepo {
|
|
|
29
29
|
return this.reserveInterface.findOne(filterQuery, {
|
|
30
30
|
_id: 0,
|
|
31
31
|
id: { $toString: '$_id' },
|
|
32
|
-
project:
|
|
33
|
-
availableChannel:
|
|
34
|
-
typeOf:
|
|
32
|
+
project: 1,
|
|
33
|
+
availableChannel: 1,
|
|
34
|
+
typeOf: 1
|
|
35
35
|
})
|
|
36
36
|
.lean()
|
|
37
37
|
.exec();
|
|
@@ -40,7 +40,7 @@ class ReserveInterfaceRepo {
|
|
|
40
40
|
return this.reserveInterface.findOne({}, {
|
|
41
41
|
_id: 0,
|
|
42
42
|
id: { $toString: '$_id' },
|
|
43
|
-
project:
|
|
43
|
+
project: 1
|
|
44
44
|
})
|
|
45
45
|
.lean()
|
|
46
46
|
.exec();
|
|
@@ -24,19 +24,55 @@ export declare class RoleRepo {
|
|
|
24
24
|
$eq: factory.role.organizationRole.RoleName;
|
|
25
25
|
};
|
|
26
26
|
permission: string;
|
|
27
|
-
}): Promise<(import("mongoose").FlattenMaps<
|
|
27
|
+
}): Promise<(import("mongoose").FlattenMaps<{
|
|
28
|
+
typeOf: import("@chevre/factory/lib/role").RoleType;
|
|
29
|
+
memberOf: {
|
|
30
|
+
typeOf: factory.organizationType.Corporation | factory.organizationType.Project;
|
|
31
|
+
};
|
|
32
|
+
member: {
|
|
33
|
+
typeOf: import("@chevre/factory/lib/role/organizationRole").IMemberType;
|
|
34
|
+
};
|
|
35
|
+
roleName: import("@chevre/factory/lib/role/organizationRole").RoleName;
|
|
36
|
+
permissions: string[];
|
|
37
|
+
}> & {
|
|
28
38
|
_id: import("mongoose").Types.ObjectId;
|
|
39
|
+
} & {
|
|
40
|
+
__v: number;
|
|
29
41
|
}) | null>;
|
|
30
42
|
removePermissionIfExists(params: {
|
|
31
43
|
roleName: {
|
|
32
44
|
$eq: factory.role.organizationRole.RoleName;
|
|
33
45
|
};
|
|
34
46
|
permission: string;
|
|
35
|
-
}): Promise<(import("mongoose").FlattenMaps<
|
|
47
|
+
}): Promise<(import("mongoose").FlattenMaps<{
|
|
48
|
+
typeOf: import("@chevre/factory/lib/role").RoleType;
|
|
49
|
+
memberOf: {
|
|
50
|
+
typeOf: factory.organizationType.Corporation | factory.organizationType.Project;
|
|
51
|
+
};
|
|
52
|
+
member: {
|
|
53
|
+
typeOf: import("@chevre/factory/lib/role/organizationRole").IMemberType;
|
|
54
|
+
};
|
|
55
|
+
roleName: import("@chevre/factory/lib/role/organizationRole").RoleName;
|
|
56
|
+
permissions: string[];
|
|
57
|
+
}> & {
|
|
36
58
|
_id: import("mongoose").Types.ObjectId;
|
|
59
|
+
} & {
|
|
60
|
+
__v: number;
|
|
37
61
|
}) | null>;
|
|
38
|
-
addMember(params: Pick<IRole, 'member' | 'memberOf' | 'roleName'>): Promise<(import("mongoose").FlattenMaps<
|
|
62
|
+
addMember(params: Pick<IRole, 'member' | 'memberOf' | 'roleName'>): Promise<(import("mongoose").FlattenMaps<{
|
|
63
|
+
typeOf: import("@chevre/factory/lib/role").RoleType;
|
|
64
|
+
memberOf: {
|
|
65
|
+
typeOf: factory.organizationType.Corporation | factory.organizationType.Project;
|
|
66
|
+
};
|
|
67
|
+
member: {
|
|
68
|
+
typeOf: import("@chevre/factory/lib/role/organizationRole").IMemberType;
|
|
69
|
+
};
|
|
70
|
+
roleName: import("@chevre/factory/lib/role/organizationRole").RoleName;
|
|
71
|
+
permissions: string[];
|
|
72
|
+
}> & {
|
|
39
73
|
_id: import("mongoose").Types.ObjectId;
|
|
74
|
+
} & {
|
|
75
|
+
__v: number;
|
|
40
76
|
}) | null>;
|
|
41
77
|
create(params: Pick<IRole, 'member' | 'memberOf' | 'permissions' | 'roleName'>): Promise<{
|
|
42
78
|
id: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AnyExpression, Connection, FilterQuery, QueryOptions, Types } from 'mongoose';
|
|
2
|
+
import { IDocType } from './mongoose/schemas/seller';
|
|
2
3
|
import * as factory from '../factory';
|
|
3
4
|
export type ISellerWithId = Pick<factory.seller.ISeller, 'additionalProperty' | 'branchCode' | 'hasMerchantReturnPolicy' | 'id' | 'makesOffer' | 'name' | 'project' | 'telephone' | 'typeOf' | 'url'> & {
|
|
4
5
|
id: string;
|
|
@@ -75,59 +76,15 @@ export declare class SellerRepo {
|
|
|
75
76
|
id: string;
|
|
76
77
|
makesOffer: factory.seller.IMakesOffer;
|
|
77
78
|
}): Promise<void>;
|
|
78
|
-
getCursor(conditions: FilterQuery<factory.seller.ISeller>, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, {
|
|
79
|
-
url?: string | undefined;
|
|
80
|
-
project: Pick<factory.project.IProject, "id" | "typeOf">;
|
|
81
|
-
name: import("@chevre/factory/lib/multilingualString").IMultilingualString;
|
|
82
|
-
typeOf: factory.organizationType.Corporation;
|
|
83
|
-
additionalProperty?: import("@chevre/factory/lib/propertyValue").IPropertyValue<string>[] | undefined;
|
|
84
|
-
location?: factory.organization.ILocation | undefined;
|
|
85
|
-
telephone?: string | undefined;
|
|
86
|
-
branchCode: string;
|
|
87
|
-
hasMerchantReturnPolicy?: factory.seller.IHasMerchantReturnPolicy | undefined;
|
|
88
|
-
makesOffer?: factory.seller.IMakesOffer[] | undefined;
|
|
89
|
-
paymentAccepted?: factory.seller.IPaymentAccepted[] | undefined;
|
|
90
|
-
}> & {
|
|
91
|
-
url?: string | undefined;
|
|
92
|
-
project: Pick<factory.project.IProject, "id" | "typeOf">;
|
|
93
|
-
name: import("@chevre/factory/lib/multilingualString").IMultilingualString;
|
|
94
|
-
typeOf: factory.organizationType.Corporation;
|
|
95
|
-
additionalProperty?: import("@chevre/factory/lib/propertyValue").IPropertyValue<string>[] | undefined;
|
|
96
|
-
location?: factory.organization.ILocation | undefined;
|
|
97
|
-
telephone?: string | undefined;
|
|
98
|
-
branchCode: string;
|
|
99
|
-
hasMerchantReturnPolicy?: factory.seller.IHasMerchantReturnPolicy | undefined;
|
|
100
|
-
makesOffer?: factory.seller.IMakesOffer[] | undefined;
|
|
101
|
-
paymentAccepted?: factory.seller.IPaymentAccepted[] | undefined;
|
|
102
|
-
} & {
|
|
79
|
+
getCursor(conditions: FilterQuery<factory.seller.ISeller>, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, IDocType, {}, {}> & IDocType & {
|
|
103
80
|
_id: Types.ObjectId;
|
|
104
|
-
}, QueryOptions<import("mongoose").Document<unknown, {}, {
|
|
105
|
-
url?: string | undefined;
|
|
106
|
-
project: Pick<factory.project.IProject, "id" | "typeOf">;
|
|
107
|
-
name: import("@chevre/factory/lib/multilingualString").IMultilingualString;
|
|
108
|
-
typeOf: factory.organizationType.Corporation;
|
|
109
|
-
additionalProperty?: import("@chevre/factory/lib/propertyValue").IPropertyValue<string>[] | undefined;
|
|
110
|
-
location?: factory.organization.ILocation | undefined;
|
|
111
|
-
telephone?: string | undefined;
|
|
112
|
-
branchCode: string;
|
|
113
|
-
hasMerchantReturnPolicy?: factory.seller.IHasMerchantReturnPolicy | undefined;
|
|
114
|
-
makesOffer?: factory.seller.IMakesOffer[] | undefined;
|
|
115
|
-
paymentAccepted?: factory.seller.IPaymentAccepted[] | undefined;
|
|
116
|
-
}> & {
|
|
117
|
-
url?: string | undefined;
|
|
118
|
-
project: Pick<factory.project.IProject, "id" | "typeOf">;
|
|
119
|
-
name: import("@chevre/factory/lib/multilingualString").IMultilingualString;
|
|
120
|
-
typeOf: factory.organizationType.Corporation;
|
|
121
|
-
additionalProperty?: import("@chevre/factory/lib/propertyValue").IPropertyValue<string>[] | undefined;
|
|
122
|
-
location?: factory.organization.ILocation | undefined;
|
|
123
|
-
telephone?: string | undefined;
|
|
124
|
-
branchCode: string;
|
|
125
|
-
hasMerchantReturnPolicy?: factory.seller.IHasMerchantReturnPolicy | undefined;
|
|
126
|
-
makesOffer?: factory.seller.IMakesOffer[] | undefined;
|
|
127
|
-
paymentAccepted?: factory.seller.IPaymentAccepted[] | undefined;
|
|
128
81
|
} & {
|
|
82
|
+
__v: number;
|
|
83
|
+
}, QueryOptions<IDocType>, (import("mongoose").Document<unknown, {}, IDocType, {}, {}> & IDocType & {
|
|
129
84
|
_id: Types.ObjectId;
|
|
130
|
-
}
|
|
85
|
+
} & {
|
|
86
|
+
__v: number;
|
|
87
|
+
}) | null>;
|
|
131
88
|
unsetUnnecessaryFields(params: {
|
|
132
89
|
filter: any;
|
|
133
90
|
$unset: any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { AnyKeys, Connection, FilterQuery, ProjectionType, UpdateWriteOpResult } from 'mongoose';
|
|
2
2
|
import { INextFunction } from '../eventEmitter/task';
|
|
3
3
|
import * as factory from '../factory';
|
|
4
|
-
import { IModel } from './mongoose/schemas/task';
|
|
4
|
+
import { IModel, IDocType } from './mongoose/schemas/task';
|
|
5
5
|
import type { IExecutableTask } from '../taskSettings';
|
|
6
6
|
interface IAggregationByStatus {
|
|
7
7
|
taskCount: number;
|
|
@@ -229,75 +229,15 @@ export declare class TaskRepo {
|
|
|
229
229
|
}): Promise<{
|
|
230
230
|
count: number;
|
|
231
231
|
}>;
|
|
232
|
-
getCursor(conditions: FilterQuery<factory.task.ITask<factory.taskName>>, projection: ProjectionType<factory.task.ITask<factory.taskName>>): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, {
|
|
233
|
-
project: Pick<factory.project.IProject, "id" | "typeOf">;
|
|
234
|
-
identifier?: string | undefined;
|
|
235
|
-
name: factory.taskName;
|
|
236
|
-
description?: string | undefined;
|
|
237
|
-
alternateName?: string | undefined;
|
|
238
|
-
expires?: Date | undefined;
|
|
239
|
-
data: import("@chevre/factory/lib/task").IData;
|
|
240
|
-
status: factory.taskStatus;
|
|
241
|
-
runsAt: Date;
|
|
242
|
-
dateAborted?: Date | undefined;
|
|
243
|
-
remainingNumberOfTries: number;
|
|
244
|
-
lastTriedAt?: Date | undefined;
|
|
245
|
-
numberOfTried: number;
|
|
246
|
-
executionResults: import("@chevre/factory/lib/task").IExecutionResult[];
|
|
247
|
-
executor?: import("@chevre/factory/lib/task").IExecutor | undefined;
|
|
248
|
-
}> & {
|
|
249
|
-
project: Pick<factory.project.IProject, "id" | "typeOf">;
|
|
250
|
-
identifier?: string | undefined;
|
|
251
|
-
name: factory.taskName;
|
|
252
|
-
description?: string | undefined;
|
|
253
|
-
alternateName?: string | undefined;
|
|
254
|
-
expires?: Date | undefined;
|
|
255
|
-
data: import("@chevre/factory/lib/task").IData;
|
|
256
|
-
status: factory.taskStatus;
|
|
257
|
-
runsAt: Date;
|
|
258
|
-
dateAborted?: Date | undefined;
|
|
259
|
-
remainingNumberOfTries: number;
|
|
260
|
-
lastTriedAt?: Date | undefined;
|
|
261
|
-
numberOfTried: number;
|
|
262
|
-
executionResults: import("@chevre/factory/lib/task").IExecutionResult[];
|
|
263
|
-
executor?: import("@chevre/factory/lib/task").IExecutor | undefined;
|
|
264
|
-
} & {
|
|
232
|
+
getCursor(conditions: FilterQuery<factory.task.ITask<factory.taskName>>, projection: ProjectionType<factory.task.ITask<factory.taskName>>): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, IDocType, {}, {}> & IDocType & {
|
|
265
233
|
_id: import("mongoose").Types.ObjectId;
|
|
266
|
-
}, import("mongoose").QueryOptions<import("mongoose").Document<unknown, {}, {
|
|
267
|
-
project: Pick<factory.project.IProject, "id" | "typeOf">;
|
|
268
|
-
identifier?: string | undefined;
|
|
269
|
-
name: factory.taskName;
|
|
270
|
-
description?: string | undefined;
|
|
271
|
-
alternateName?: string | undefined;
|
|
272
|
-
expires?: Date | undefined;
|
|
273
|
-
data: import("@chevre/factory/lib/task").IData;
|
|
274
|
-
status: factory.taskStatus;
|
|
275
|
-
runsAt: Date;
|
|
276
|
-
dateAborted?: Date | undefined;
|
|
277
|
-
remainingNumberOfTries: number;
|
|
278
|
-
lastTriedAt?: Date | undefined;
|
|
279
|
-
numberOfTried: number;
|
|
280
|
-
executionResults: import("@chevre/factory/lib/task").IExecutionResult[];
|
|
281
|
-
executor?: import("@chevre/factory/lib/task").IExecutor | undefined;
|
|
282
|
-
}> & {
|
|
283
|
-
project: Pick<factory.project.IProject, "id" | "typeOf">;
|
|
284
|
-
identifier?: string | undefined;
|
|
285
|
-
name: factory.taskName;
|
|
286
|
-
description?: string | undefined;
|
|
287
|
-
alternateName?: string | undefined;
|
|
288
|
-
expires?: Date | undefined;
|
|
289
|
-
data: import("@chevre/factory/lib/task").IData;
|
|
290
|
-
status: factory.taskStatus;
|
|
291
|
-
runsAt: Date;
|
|
292
|
-
dateAborted?: Date | undefined;
|
|
293
|
-
remainingNumberOfTries: number;
|
|
294
|
-
lastTriedAt?: Date | undefined;
|
|
295
|
-
numberOfTried: number;
|
|
296
|
-
executionResults: import("@chevre/factory/lib/task").IExecutionResult[];
|
|
297
|
-
executor?: import("@chevre/factory/lib/task").IExecutor | undefined;
|
|
298
234
|
} & {
|
|
235
|
+
__v: number;
|
|
236
|
+
}, import("mongoose").QueryOptions<IDocType>, (import("mongoose").Document<unknown, {}, IDocType, {}, {}> & IDocType & {
|
|
299
237
|
_id: import("mongoose").Types.ObjectId;
|
|
300
|
-
}
|
|
238
|
+
} & {
|
|
239
|
+
__v: number;
|
|
240
|
+
}) | null>;
|
|
301
241
|
unsetUnnecessaryFields(params: {
|
|
302
242
|
filter: FilterQuery<factory.task.ITask<factory.taskName>>;
|
|
303
243
|
$unset: AnyKeys<factory.task.ITask<factory.taskName>>;
|