@chevre/domain 24.0.0-alpha.27 → 24.0.0-alpha.29
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/accountTransaction.js +1 -2
- 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/aggregateAction.js +0 -1
- package/lib/chevre/repo/aggregateOffer.d.ts +7 -3
- package/lib/chevre/repo/assetTransaction.d.ts +46 -25
- 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 +4 -3
- package/lib/chevre/repo/mongoose/schemas/account.d.ts +4 -3
- package/lib/chevre/repo/mongoose/schemas/accountTitle.d.ts +4 -3
- package/lib/chevre/repo/mongoose/schemas/accountTransaction.d.ts +5 -4
- package/lib/chevre/repo/mongoose/schemas/accountingReport.d.ts +3 -2
- package/lib/chevre/repo/mongoose/schemas/action.d.ts +4 -3
- package/lib/chevre/repo/mongoose/schemas/actionRecipe.d.ts +4 -3
- package/lib/chevre/repo/mongoose/schemas/additionalProperty.d.ts +5 -4
- package/lib/chevre/repo/mongoose/schemas/advanceBookingRequirement.d.ts +3 -2
- package/lib/chevre/repo/mongoose/schemas/aggregateOffer.d.ts +4 -3
- package/lib/chevre/repo/mongoose/schemas/aggregateOrder.d.ts +3 -2
- package/lib/chevre/repo/mongoose/schemas/aggregateReservation.d.ts +4 -3
- package/lib/chevre/repo/mongoose/schemas/aggregation.d.ts +4 -3
- package/lib/chevre/repo/mongoose/schemas/assetTransaction.d.ts +4 -3
- package/lib/chevre/repo/mongoose/schemas/authorization.d.ts +4 -3
- package/lib/chevre/repo/mongoose/schemas/categoryCode.d.ts +5 -4
- package/lib/chevre/repo/mongoose/schemas/civicStructure.d.ts +3 -2
- package/lib/chevre/repo/mongoose/schemas/comments.d.ts +4 -3
- package/lib/chevre/repo/mongoose/schemas/creativeWork.d.ts +5 -4
- package/lib/chevre/repo/mongoose/schemas/customer.d.ts +5 -4
- package/lib/chevre/repo/mongoose/schemas/customerType.d.ts +5 -4
- package/lib/chevre/repo/mongoose/schemas/emailMessages.d.ts +4 -3
- package/lib/chevre/repo/mongoose/schemas/event.d.ts +3 -2
- package/lib/chevre/repo/mongoose/schemas/eventOffer.d.ts +4 -3
- package/lib/chevre/repo/mongoose/schemas/eventSeries.d.ts +3 -2
- package/lib/chevre/repo/mongoose/schemas/identity.d.ts +4 -3
- package/lib/chevre/repo/mongoose/schemas/identityProvider.d.ts +4 -3
- package/lib/chevre/repo/mongoose/schemas/issuer.d.ts +4 -3
- package/lib/chevre/repo/mongoose/schemas/member/global.d.ts +4 -3
- package/lib/chevre/repo/mongoose/schemas/member.d.ts +4 -3
- package/lib/chevre/repo/mongoose/schemas/merchantReturnPolicy.d.ts +4 -3
- package/lib/chevre/repo/mongoose/schemas/message.d.ts +5 -4
- package/lib/chevre/repo/mongoose/schemas/movieTicketTypes.d.ts +4 -3
- package/lib/chevre/repo/mongoose/schemas/note.d.ts +3 -2
- package/lib/chevre/repo/mongoose/schemas/offerCatalog.d.ts +4 -3
- package/lib/chevre/repo/mongoose/schemas/offerCatalogItem.d.ts +4 -3
- package/lib/chevre/repo/mongoose/schemas/offerItemCondition.d.ts +5 -4
- package/lib/chevre/repo/mongoose/schemas/order.d.ts +4 -3
- package/lib/chevre/repo/mongoose/schemas/ownershipInfo.d.ts +5 -4
- package/lib/chevre/repo/mongoose/schemas/paymentService.d.ts +4 -3
- package/lib/chevre/repo/mongoose/schemas/paymentServiceChannel.d.ts +4 -3
- package/lib/chevre/repo/mongoose/schemas/pendingReservation.d.ts +4 -3
- package/lib/chevre/repo/mongoose/schemas/pendingReservationAggregate.d.ts +4 -3
- package/lib/chevre/repo/mongoose/schemas/place.d.ts +3 -2
- package/lib/chevre/repo/mongoose/schemas/potentialAction.d.ts +4 -3
- package/lib/chevre/repo/mongoose/schemas/priceSpecification.d.ts +6 -3
- package/lib/chevre/repo/mongoose/schemas/product.d.ts +4 -3
- package/lib/chevre/repo/mongoose/schemas/productModel.d.ts +5 -4
- package/lib/chevre/repo/mongoose/schemas/productOffer.d.ts +3 -2
- package/lib/chevre/repo/mongoose/schemas/project.d.ts +4 -3
- package/lib/chevre/repo/mongoose/schemas/reservation.d.ts +4 -3
- package/lib/chevre/repo/mongoose/schemas/reserveInterface.d.ts +4 -3
- package/lib/chevre/repo/mongoose/schemas/role.d.ts +3 -2
- package/lib/chevre/repo/mongoose/schemas/schedule.d.ts +5 -4
- package/lib/chevre/repo/mongoose/schemas/seller.d.ts +4 -3
- package/lib/chevre/repo/mongoose/schemas/sellerReturnPolicy.d.ts +4 -3
- package/lib/chevre/repo/mongoose/schemas/service/availableHour.d.ts +3 -2
- package/lib/chevre/repo/mongoose/schemas/serviceOutput.d.ts +5 -4
- package/lib/chevre/repo/mongoose/schemas/setting.d.ts +4 -3
- package/lib/chevre/repo/mongoose/schemas/task.d.ts +4 -3
- package/lib/chevre/repo/mongoose/schemas/telemetry.d.ts +4 -3
- package/lib/chevre/repo/mongoose/schemas/ticket.d.ts +4 -3
- package/lib/chevre/repo/mongoose/schemas/transaction.d.ts +8 -4
- package/lib/chevre/repo/mongoose/schemas/transactionNumber.d.ts +3 -2
- package/lib/chevre/repo/mongoose/schemas/trip.d.ts +4 -3
- package/lib/chevre/repo/mongoose/schemas/webSite.d.ts +4 -3
- package/lib/chevre/repo/mongoose/virtuals.d.ts +3 -0
- package/lib/chevre/repo/mongoose/virtuals.js +2 -0
- 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 +8 -7
- package/lib/chevre/repo/ownershipInfo.d.ts +8 -7
- package/lib/chevre/repo/paymentService.d.ts +0 -13
- package/lib/chevre/repo/paymentService.js +5 -5
- package/lib/chevre/repo/pendingReservation.js +0 -1
- 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 +51 -24
- package/lib/chevre/repo/priceSpecification.js +9 -13
- package/lib/chevre/repo/product.d.ts +8 -4
- package/lib/chevre/repo/project.d.ts +8 -11
- package/lib/chevre/repo/reservation.d.ts +14 -13
- 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 +104 -13
- package/package.json +3 -3
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
|
|
2
|
+
import { IVirtuals } from '../virtuals';
|
|
2
3
|
import * as factory from '../../../factory';
|
|
3
4
|
type IDocType = Omit<factory.task.ITask<factory.taskName>, 'id'>;
|
|
4
|
-
type IModel = Model<IDocType>;
|
|
5
|
+
type IModel = Model<IDocType, {}, {}, IVirtuals>;
|
|
5
6
|
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
6
|
-
type ISchema = Schema<IDocType, IModel, {}, {},
|
|
7
|
+
type ISchema = Schema<IDocType, IModel, {}, {}, IVirtuals, {}, ISchemaDefinition, IDocType>;
|
|
7
8
|
declare const modelName = "Task";
|
|
8
9
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
9
10
|
declare function createSchema(): ISchema;
|
|
10
|
-
export { createSchema, IModel, indexes, modelName };
|
|
11
|
+
export { createSchema, IDocType, IModel, indexes, modelName };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
|
|
2
|
+
import { IVirtuals } from '../virtuals';
|
|
2
3
|
type IDocType = any;
|
|
3
|
-
type IModel = Model<IDocType>;
|
|
4
|
+
type IModel = Model<IDocType, {}, {}, IVirtuals>;
|
|
4
5
|
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
5
|
-
type ISchema = Schema<IDocType, IModel, {}, {},
|
|
6
|
+
type ISchema = Schema<IDocType, IModel, {}, {}, IVirtuals, {}, ISchemaDefinition, IDocType>;
|
|
6
7
|
declare const modelName = "Telemetry";
|
|
7
8
|
declare function createSchema(): ISchema;
|
|
8
9
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
9
|
-
export { createSchema, IModel, indexes, modelName };
|
|
10
|
+
export { createSchema, IDocType, IModel, indexes, modelName };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
|
|
2
|
+
import { IVirtuals } from '../virtuals';
|
|
2
3
|
import * as factory from '../../../factory';
|
|
3
4
|
export interface ITicketIssuedBy {
|
|
4
5
|
id: string;
|
|
@@ -19,10 +20,10 @@ export interface ITicket {
|
|
|
19
20
|
issuedBy: ITicketIssuedBy;
|
|
20
21
|
}
|
|
21
22
|
type IDocType = Omit<ITicket, 'id'>;
|
|
22
|
-
type IModel = Model<IDocType>;
|
|
23
|
+
type IModel = Model<IDocType, {}, {}, IVirtuals>;
|
|
23
24
|
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
24
|
-
type ISchema = Schema<IDocType, IModel, {}, {},
|
|
25
|
+
type ISchema = Schema<IDocType, IModel, {}, {}, IVirtuals, {}, ISchemaDefinition, IDocType>;
|
|
25
26
|
declare const modelName = "Ticket";
|
|
26
27
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
27
28
|
declare function createSchema(): ISchema;
|
|
28
|
-
export { createSchema, IModel, indexes, modelName };
|
|
29
|
+
export { createSchema, IDocType, IModel, indexes, modelName };
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
|
|
2
|
+
import { IVirtuals } from '../virtuals';
|
|
2
3
|
import * as factory from '../../../factory';
|
|
3
|
-
type
|
|
4
|
-
type
|
|
4
|
+
type IPlaceOrder = Omit<factory.transaction.placeOrder.ITransaction, 'id'>;
|
|
5
|
+
type IReturnOrder = Omit<factory.transaction.returnOrder.ITransaction, 'id'>;
|
|
6
|
+
type IMoneyTransfer = Omit<factory.transaction.moneyTransfer.ITransaction, 'id'>;
|
|
7
|
+
type IDocType = IPlaceOrder | IReturnOrder | IMoneyTransfer;
|
|
8
|
+
type IModel = Model<IDocType, {}, {}, IVirtuals>;
|
|
5
9
|
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
6
|
-
type ISchema = Schema<IDocType, IModel, {}, {},
|
|
10
|
+
type ISchema = Schema<IDocType, IModel, {}, {}, IVirtuals, {}, ISchemaDefinition, IDocType>;
|
|
7
11
|
declare const modelName = "Transaction";
|
|
8
12
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
9
13
|
declare function createSchema(): ISchema;
|
|
10
|
-
export { createSchema, IModel, indexes, modelName };
|
|
14
|
+
export { createSchema, IDocType, IModel, indexes, modelName };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Model, Schema, SchemaDefinition } from 'mongoose';
|
|
2
|
+
import { IVirtuals } from '../virtuals';
|
|
2
3
|
import * as factory from '../../../factory';
|
|
3
4
|
declare enum DataCatalogIdentifier {
|
|
4
5
|
confirmationNumber = "confirmationNumber",
|
|
@@ -31,9 +32,9 @@ interface IDataFeed {
|
|
|
31
32
|
};
|
|
32
33
|
}
|
|
33
34
|
type IDocType = IDataFeed;
|
|
34
|
-
type IModel = Model<IDocType>;
|
|
35
|
+
type IModel = Model<IDocType, {}, {}, IVirtuals>;
|
|
35
36
|
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
36
|
-
type ISchema = Schema<IDocType, IModel, {}, {},
|
|
37
|
+
type ISchema = Schema<IDocType, IModel, {}, {}, IVirtuals, {}, ISchemaDefinition, IDocType>;
|
|
37
38
|
declare const modelName = "TransactionNumber";
|
|
38
39
|
declare function createSchema(): ISchema;
|
|
39
40
|
export { createSchema, IDocType, IModel, modelName, DataCatalogIdentifier };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
|
|
2
|
+
import { IVirtuals } from '../virtuals';
|
|
2
3
|
import * as factory from '../../../factory';
|
|
3
4
|
type IDocType = Omit<factory.trip.ITrip<factory.tripType>, 'id'>;
|
|
4
|
-
type IModel = Model<IDocType>;
|
|
5
|
+
type IModel = Model<IDocType, {}, {}, IVirtuals>;
|
|
5
6
|
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
6
|
-
type ISchema = Schema<IDocType, IModel, {}, {},
|
|
7
|
+
type ISchema = Schema<IDocType, IModel, {}, {}, IVirtuals, {}, ISchemaDefinition, IDocType>;
|
|
7
8
|
declare const modelName = "Trip";
|
|
8
9
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
9
10
|
declare function createSchema(): ISchema;
|
|
10
|
-
export { createSchema, IModel, indexes, modelName };
|
|
11
|
+
export { createSchema, IDocType, IModel, indexes, modelName };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
|
|
2
|
+
import { IVirtuals } from '../virtuals';
|
|
2
3
|
import * as factory from '../../../factory';
|
|
3
4
|
type IDocType = Omit<factory.creativeWork.certification.webSite.ICertification, 'id'>;
|
|
4
|
-
type IModel = Model<IDocType>;
|
|
5
|
+
type IModel = Model<IDocType, {}, {}, IVirtuals>;
|
|
5
6
|
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
6
|
-
type ISchema = Schema<IDocType, IModel, {}, {},
|
|
7
|
+
type ISchema = Schema<IDocType, IModel, {}, {}, IVirtuals, {}, ISchemaDefinition, IDocType>;
|
|
7
8
|
declare const modelName = "WebSite";
|
|
8
9
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
9
10
|
declare function createSchema(): ISchema;
|
|
10
|
-
export { createSchema, IModel, indexes, modelName };
|
|
11
|
+
export { createSchema, IDocType, IModel, indexes, modelName };
|
|
@@ -4,7 +4,7 @@ import * as factory from '../factory';
|
|
|
4
4
|
type IUnset = {
|
|
5
5
|
[key in keyof Pick<IDocType, 'color' | 'image'>]?: 1;
|
|
6
6
|
};
|
|
7
|
-
type IKeyOfProjection = keyof IDocType;
|
|
7
|
+
type IKeyOfProjection = keyof IDocType | 'id';
|
|
8
8
|
/**
|
|
9
9
|
* 決済カード区分リポジトリ
|
|
10
10
|
*/
|
|
@@ -35,6 +35,7 @@ export declare class MovieTicketTypeRepo {
|
|
|
35
35
|
id?: string;
|
|
36
36
|
attributes: IDocType & {
|
|
37
37
|
$unset?: IUnset;
|
|
38
|
+
id?: string;
|
|
38
39
|
};
|
|
39
40
|
}): Promise<{
|
|
40
41
|
id: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BulkWriteResult } from 'mongodb';
|
|
2
|
-
import type { Connection,
|
|
2
|
+
import type { Connection, FilterQuery } from 'mongoose';
|
|
3
3
|
import * as factory from '../factory';
|
|
4
4
|
import { IDocType } from './mongoose/schemas/offerCatalog';
|
|
5
5
|
export type IAggregatedOfferCatalog = Pick<factory.offerCatalog.IOfferCatalog, 'id' | 'name' | 'description' | 'project' | 'typeOf' | 'identifier' | 'itemOffered' | 'additionalProperty'> & {
|
|
@@ -169,19 +169,23 @@ export declare class OfferCatalogRepo {
|
|
|
169
169
|
id: string;
|
|
170
170
|
};
|
|
171
171
|
}): Promise<void>;
|
|
172
|
-
getCursor(conditions: any, projection: any): import("mongoose").Cursor<Document<unknown, {}, IDocType> & factory.offerCatalog.IOfferCatalog & {
|
|
172
|
+
getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & Omit<Omit<factory.offerCatalog.IOfferCatalog, "id"> & {
|
|
173
173
|
_id: string;
|
|
174
174
|
alternateName?: any;
|
|
175
175
|
dateSynced?: Date;
|
|
176
176
|
} & Required<{
|
|
177
177
|
_id: string;
|
|
178
|
-
}
|
|
178
|
+
}> & {
|
|
179
|
+
__v: number;
|
|
180
|
+
}, "id"> & import("./mongoose/virtuals").IVirtuals, import("mongoose").QueryOptions<IDocType>, (import("mongoose").Document<unknown, {}, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & Omit<Omit<factory.offerCatalog.IOfferCatalog, "id"> & {
|
|
179
181
|
_id: string;
|
|
180
182
|
alternateName?: any;
|
|
181
183
|
dateSynced?: Date;
|
|
182
184
|
} & Required<{
|
|
183
185
|
_id: string;
|
|
184
|
-
}
|
|
186
|
+
}> & {
|
|
187
|
+
__v: number;
|
|
188
|
+
}, "id"> & import("./mongoose/virtuals").IVirtuals) | null>;
|
|
185
189
|
unsetUnnecessaryFields(params: {
|
|
186
190
|
filter: FilterQuery<factory.offerCatalog.IOfferCatalog>;
|
|
187
191
|
$unset: any;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Connection, FilterQuery } from 'mongoose';
|
|
2
2
|
import * as factory from '../factory';
|
|
3
|
+
import { IDocType } from './mongoose/schemas/order';
|
|
3
4
|
type IOrderWithoutAcceptedOffers = factory.order.IOrder;
|
|
4
5
|
type IKeyOfProjection = Extract<keyof IOrderWithoutAcceptedOffers, 'broker' | 'confirmationNumber' | 'customer' | 'dateReturned' | 'identifier' | 'name' | 'orderDate' | 'orderNumber' | 'orderStatus' | 'orderedItem' | 'paymentMethods' | 'previousOrderStatus' | 'price' | 'priceCurrency' | 'project' | 'returner' | 'seller' | 'typeOf' | 'url'> | 'paymentMethods.accountId' | 'paymentMethods.name' | 'paymentMethods.paymentMethod' | 'paymentMethods.paymentMethodId' | 'paymentMethods.totalPaymentDue' | 'paymentMethods.additionalProperty' | 'paymentMethods.issuedThrough' | 'customer.id' | 'customer.typeOf';
|
|
5
6
|
export type IReturnedOrder = Pick<IOrderWithoutAcceptedOffers, 'project' | 'typeOf' | 'orderNumber' | 'dateReturned' | 'id' | 'customer' | 'returner' | 'seller' | 'price' | 'priceCurrency' | 'orderDate'> & {
|
|
@@ -142,19 +143,19 @@ export declare class OrderRepo {
|
|
|
142
143
|
}): Promise<(IOrderWithoutAcceptedOffers & {
|
|
143
144
|
id: string;
|
|
144
145
|
})[]>;
|
|
145
|
-
getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, Omit<factory.order.IOrder, "id"> & {
|
|
146
|
-
acceptedOffers?: factory.order.IAcceptedOffer<factory.order.IItemOffered>[];
|
|
147
|
-
}> & Omit<factory.order.IOrder, "id"> & {
|
|
146
|
+
getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & Omit<Omit<factory.order.IOrder, "id"> & {
|
|
148
147
|
acceptedOffers?: factory.order.IAcceptedOffer<factory.order.IItemOffered>[];
|
|
149
148
|
} & {
|
|
150
149
|
_id: import("mongoose").Types.ObjectId;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
}> & Omit<factory.order.IOrder, "id"> & {
|
|
150
|
+
} & {
|
|
151
|
+
__v: number;
|
|
152
|
+
}, "id"> & import("./mongoose/virtuals").IVirtuals, import("mongoose").QueryOptions<IDocType>, (import("mongoose").Document<unknown, {}, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & Omit<Omit<factory.order.IOrder, "id"> & {
|
|
154
153
|
acceptedOffers?: factory.order.IAcceptedOffer<factory.order.IItemOffered>[];
|
|
155
154
|
} & {
|
|
156
155
|
_id: import("mongoose").Types.ObjectId;
|
|
157
|
-
}
|
|
156
|
+
} & {
|
|
157
|
+
__v: number;
|
|
158
|
+
}, "id"> & import("./mongoose/virtuals").IVirtuals) | null>;
|
|
158
159
|
unsetUnnecessaryFields(params: {
|
|
159
160
|
filter: FilterQuery<factory.order.IOrder>;
|
|
160
161
|
$unset: any;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Connection } from 'mongoose';
|
|
2
|
+
import { IDocType } from './mongoose/schemas/ownershipInfo';
|
|
2
3
|
import * as factory from '../factory';
|
|
3
4
|
export type IOwnershipInfoWithId = factory.ownershipInfo.IOwnershipInfo<factory.ownershipInfo.IGood> & {
|
|
4
5
|
id: string;
|
|
@@ -73,19 +74,19 @@ export declare class OwnershipInfoRepo {
|
|
|
73
74
|
$lt: Date;
|
|
74
75
|
};
|
|
75
76
|
}): Promise<void>;
|
|
76
|
-
getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, factory.ownershipInfo.IOwnershipInfo<factory.ownershipInfo.IGood> & {
|
|
77
|
-
_id: string;
|
|
78
|
-
}> & factory.ownershipInfo.IOwnershipInfo<factory.ownershipInfo.IGood> & {
|
|
77
|
+
getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & Omit<Omit<factory.ownershipInfo.IOwnershipInfo<factory.ownershipInfo.IGood>, "id"> & {
|
|
79
78
|
_id: string;
|
|
80
79
|
} & Required<{
|
|
81
80
|
_id: string;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
}> & factory.ownershipInfo.IOwnershipInfo<factory.ownershipInfo.IGood> & {
|
|
81
|
+
}> & {
|
|
82
|
+
__v: number;
|
|
83
|
+
}, "id"> & import("./mongoose/virtuals").IVirtuals, import("mongoose").QueryOptions<IDocType>, (import("mongoose").Document<unknown, {}, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & Omit<Omit<factory.ownershipInfo.IOwnershipInfo<factory.ownershipInfo.IGood>, "id"> & {
|
|
85
84
|
_id: string;
|
|
86
85
|
} & Required<{
|
|
87
86
|
_id: string;
|
|
88
|
-
}
|
|
87
|
+
}> & {
|
|
88
|
+
__v: number;
|
|
89
|
+
}, "id"> & import("./mongoose/virtuals").IVirtuals) | null>;
|
|
89
90
|
/**
|
|
90
91
|
* 所有者を追加する
|
|
91
92
|
*/
|
|
@@ -73,19 +73,6 @@ 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"> & {
|
|
79
|
-
provider?: factory.service.paymentService.IProvider[];
|
|
80
|
-
} & {
|
|
81
|
-
_id: import("mongoose").Types.ObjectId;
|
|
82
|
-
}, import("mongoose").QueryOptions<import("mongoose").Document<unknown, {}, Omit<import("@chevre/factory/lib/service/paymentService").IService, "id"> & {
|
|
83
|
-
provider?: factory.service.paymentService.IProvider[];
|
|
84
|
-
}> & Omit<import("@chevre/factory/lib/service/paymentService").IService, "id"> & {
|
|
85
|
-
provider?: factory.service.paymentService.IProvider[];
|
|
86
|
-
} & {
|
|
87
|
-
_id: import("mongoose").Types.ObjectId;
|
|
88
|
-
}>>;
|
|
89
76
|
getModel(): IModel;
|
|
90
77
|
}
|
|
91
78
|
export {};
|
|
@@ -443,11 +443,11 @@ class PaymentServiceRepo {
|
|
|
443
443
|
return this.paymentServiceModel.updateMany(params.filter, { $unset: params.$unset }, { timestamps: false })
|
|
444
444
|
.exec();
|
|
445
445
|
}
|
|
446
|
-
getCursor(conditions, projection) {
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
}
|
|
446
|
+
// public getCursor(conditions: any, projection: any) {
|
|
447
|
+
// return this.paymentServiceModel.find(conditions, projection)
|
|
448
|
+
// .sort({ productID: factory.sortType.Ascending })
|
|
449
|
+
// .cursor();
|
|
450
|
+
// }
|
|
451
451
|
getModel() {
|
|
452
452
|
return this.paymentServiceModel;
|
|
453
453
|
}
|
|
@@ -40,7 +40,6 @@ class PendingReservationRepo {
|
|
|
40
40
|
// private readonly aggregateReservationModel: IModel;
|
|
41
41
|
pendingReservationModel;
|
|
42
42
|
constructor(connection) {
|
|
43
|
-
// this.aggregateReservationModel = connection.model(modelName, createSchema());
|
|
44
43
|
this.pendingReservationModel = connection.model(pendingReservation_1.modelName, (0, pendingReservation_1.createSchema)());
|
|
45
44
|
}
|
|
46
45
|
static CREATE_FILTER_QUERY(params) {
|
|
@@ -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, import("../mongoose/virtuals").IVirtuals, {}> & Omit<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
|
+
}, "id"> & import("../mongoose/virtuals").IVirtuals, import("mongoose").QueryOptions<IDocType>, (import("mongoose").Document<unknown, {}, IDocType, import("../mongoose/virtuals").IVirtuals, {}> & Omit<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
|
+
}, "id"> & import("../mongoose/virtuals").IVirtuals) | 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, import("../mongoose/virtuals").IVirtuals, {}> & Omit<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
|
+
}, "id"> & import("../mongoose/virtuals").IVirtuals, import("mongoose").QueryOptions<IDocType>, (import("mongoose").Document<unknown, {}, IDocType, import("../mongoose/virtuals").IVirtuals, {}> & Omit<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
|
+
}, "id"> & import("../mongoose/virtuals").IVirtuals) | 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, import("./mongoose/virtuals").IVirtuals, {}> & Omit<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
|
+
}, "id"> & import("./mongoose/virtuals").IVirtuals, QueryOptions<IDocType>, (import("mongoose").Document<unknown, {}, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & Omit<IDocType & {
|
|
53
32
|
_id: import("mongoose").Types.ObjectId;
|
|
54
|
-
}
|
|
33
|
+
} & {
|
|
34
|
+
__v: number;
|
|
35
|
+
}, "id"> & import("./mongoose/virtuals").IVirtuals) | null>;
|
|
55
36
|
}
|
|
56
37
|
export {};
|
|
@@ -13,13 +13,15 @@ export declare class PriceSpecificationRepo {
|
|
|
13
13
|
findById<T extends factory.priceSpecificationType>(params: {
|
|
14
14
|
id: string;
|
|
15
15
|
}): Promise<factory.priceSpecification.IPriceSpecification<T>>;
|
|
16
|
-
save<T extends factory.priceSpecificationType>(params: {
|
|
16
|
+
save<T extends factory.priceSpecificationType.CategoryCodeChargeSpecification | factory.priceSpecificationType.MovieTicketTypeChargeSpecification>(params: {
|
|
17
17
|
id?: string;
|
|
18
18
|
attributes: factory.priceSpecification.IPriceSpecification<T> & {
|
|
19
19
|
id?: never;
|
|
20
20
|
$unset?: never;
|
|
21
21
|
};
|
|
22
|
-
}): Promise<
|
|
22
|
+
}): Promise<{
|
|
23
|
+
id: string;
|
|
24
|
+
}>;
|
|
23
25
|
/**
|
|
24
26
|
* 削除する
|
|
25
27
|
*/
|
|
@@ -34,48 +36,73 @@ export declare class PriceSpecificationRepo {
|
|
|
34
36
|
id: string;
|
|
35
37
|
};
|
|
36
38
|
}): Promise<void>;
|
|
37
|
-
getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, IDocType
|
|
38
|
-
|
|
39
|
-
|
|
39
|
+
getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & Omit<({
|
|
40
|
+
project?: Pick<factory.project.IProject, "id" | "typeOf"> | undefined;
|
|
41
|
+
name?: (string | import("@chevre/factory/lib/multilingualString").IMultilingualString) | undefined;
|
|
42
|
+
price: number;
|
|
43
|
+
priceCurrency: factory.priceCurrency;
|
|
44
|
+
typeOf: factory.priceSpecificationType.CategoryCodeChargeSpecification;
|
|
45
|
+
valueAddedTaxIncluded: boolean;
|
|
46
|
+
accounting?: never | undefined;
|
|
47
|
+
appliesToCategoryCode: import("@chevre/factory/lib/priceSpecification/categoryCodeChargeSpecification").IAppliesToCategoryCode[];
|
|
40
48
|
} & {
|
|
41
|
-
_id: import("mongoose").Types.ObjectId;
|
|
42
|
-
}) | (import("@chevre/factory/lib/priceSpecification/movieTicketTypeChargeSpecification").IPriceSpecification & {
|
|
43
49
|
validFrom?: Date;
|
|
44
50
|
validThrough?: Date;
|
|
45
51
|
} & {
|
|
46
52
|
_id: import("mongoose").Types.ObjectId;
|
|
47
|
-
}) | (import("@chevre/factory/lib/priceSpecification/unitPriceSpecification").IPriceSpecification & {
|
|
48
|
-
validFrom?: Date;
|
|
49
|
-
validThrough?: Date;
|
|
50
53
|
} & {
|
|
51
|
-
|
|
52
|
-
}) | (
|
|
53
|
-
|
|
54
|
-
|
|
54
|
+
__v: number;
|
|
55
|
+
}) | ({
|
|
56
|
+
project?: Pick<factory.project.IProject, "id" | "typeOf"> | undefined;
|
|
57
|
+
name?: (string | import("@chevre/factory/lib/multilingualString").IMultilingualString) | undefined;
|
|
58
|
+
price: number;
|
|
59
|
+
priceCurrency: factory.priceCurrency;
|
|
60
|
+
typeOf: factory.priceSpecificationType.MovieTicketTypeChargeSpecification;
|
|
61
|
+
valueAddedTaxIncluded: boolean;
|
|
62
|
+
accounting?: never | undefined;
|
|
63
|
+
appliesToMovieTicket: import("@chevre/factory/lib/priceSpecification/movieTicketTypeChargeSpecification").IAppliesToMovieTicket;
|
|
64
|
+
appliesToVideoFormat: string;
|
|
55
65
|
} & {
|
|
56
|
-
_id: import("mongoose").Types.ObjectId;
|
|
57
|
-
})), import("mongoose").QueryOptions<import("mongoose").Document<unknown, {}, IDocType> & ((import("@chevre/factory/lib/priceSpecification/categoryCodeChargeSpecification").IPriceSpecification & {
|
|
58
66
|
validFrom?: Date;
|
|
59
67
|
validThrough?: Date;
|
|
60
68
|
} & {
|
|
61
69
|
_id: import("mongoose").Types.ObjectId;
|
|
62
|
-
}) | (import("@chevre/factory/lib/priceSpecification/movieTicketTypeChargeSpecification").IPriceSpecification & {
|
|
63
|
-
validFrom?: Date;
|
|
64
|
-
validThrough?: Date;
|
|
65
70
|
} & {
|
|
66
|
-
|
|
67
|
-
})
|
|
71
|
+
__v: number;
|
|
72
|
+
}), "id"> & import("./mongoose/virtuals").IVirtuals, import("mongoose").QueryOptions<IDocType>, (import("mongoose").Document<unknown, {}, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & Omit<({
|
|
73
|
+
project?: Pick<factory.project.IProject, "id" | "typeOf"> | undefined;
|
|
74
|
+
name?: (string | import("@chevre/factory/lib/multilingualString").IMultilingualString) | undefined;
|
|
75
|
+
price: number;
|
|
76
|
+
priceCurrency: factory.priceCurrency;
|
|
77
|
+
typeOf: factory.priceSpecificationType.CategoryCodeChargeSpecification;
|
|
78
|
+
valueAddedTaxIncluded: boolean;
|
|
79
|
+
accounting?: never | undefined;
|
|
80
|
+
appliesToCategoryCode: import("@chevre/factory/lib/priceSpecification/categoryCodeChargeSpecification").IAppliesToCategoryCode[];
|
|
81
|
+
} & {
|
|
68
82
|
validFrom?: Date;
|
|
69
83
|
validThrough?: Date;
|
|
70
84
|
} & {
|
|
71
85
|
_id: import("mongoose").Types.ObjectId;
|
|
72
|
-
}
|
|
86
|
+
} & {
|
|
87
|
+
__v: number;
|
|
88
|
+
}) | ({
|
|
89
|
+
project?: Pick<factory.project.IProject, "id" | "typeOf"> | undefined;
|
|
90
|
+
name?: (string | import("@chevre/factory/lib/multilingualString").IMultilingualString) | undefined;
|
|
91
|
+
price: number;
|
|
92
|
+
priceCurrency: factory.priceCurrency;
|
|
93
|
+
typeOf: factory.priceSpecificationType.MovieTicketTypeChargeSpecification;
|
|
94
|
+
valueAddedTaxIncluded: boolean;
|
|
95
|
+
accounting?: never | undefined;
|
|
96
|
+
appliesToMovieTicket: import("@chevre/factory/lib/priceSpecification/movieTicketTypeChargeSpecification").IAppliesToMovieTicket;
|
|
97
|
+
appliesToVideoFormat: string;
|
|
98
|
+
} & {
|
|
73
99
|
validFrom?: Date;
|
|
74
100
|
validThrough?: Date;
|
|
75
101
|
} & {
|
|
76
102
|
_id: import("mongoose").Types.ObjectId;
|
|
77
|
-
}
|
|
78
|
-
|
|
103
|
+
} & {
|
|
104
|
+
__v: number;
|
|
105
|
+
}), "id"> & import("./mongoose/virtuals").IVirtuals) | null>;
|
|
79
106
|
unsetUnnecessaryFields(params: {
|
|
80
107
|
filter: any;
|
|
81
108
|
$unset: any;
|
|
@@ -220,24 +220,26 @@ class PriceSpecificationRepo {
|
|
|
220
220
|
return doc;
|
|
221
221
|
}
|
|
222
222
|
async save(params) {
|
|
223
|
-
let
|
|
223
|
+
let savedId;
|
|
224
224
|
if (typeof params.id !== 'string') {
|
|
225
225
|
const { $unset, id, ...creatingDoc } = params.attributes;
|
|
226
|
-
|
|
226
|
+
const createdDoc = await this.priceSpecificationModel.create(creatingDoc);
|
|
227
|
+
savedId = createdDoc.id;
|
|
227
228
|
}
|
|
228
229
|
else {
|
|
229
230
|
// 上書き禁止属性を除外(2022-08-24~)
|
|
230
231
|
const { $unset, id, project, typeOf, ...updateFields } = params.attributes;
|
|
231
|
-
|
|
232
|
+
const updatedDoc = await this.priceSpecificationModel.findOneAndUpdate({ _id: { $eq: params.id } }, {
|
|
232
233
|
$set: updateFields
|
|
233
234
|
}, { upsert: false, new: true, projection: { _id: 1 } })
|
|
234
235
|
.lean() // lean(2024-08-06~)
|
|
235
236
|
.exec();
|
|
237
|
+
if (updatedDoc === null) {
|
|
238
|
+
throw new factory.errors.NotFound(this.priceSpecificationModel.modelName);
|
|
239
|
+
}
|
|
240
|
+
savedId = updatedDoc._id.toString();
|
|
236
241
|
}
|
|
237
|
-
|
|
238
|
-
throw new factory.errors.NotFound(this.priceSpecificationModel.modelName);
|
|
239
|
-
}
|
|
240
|
-
return { id: doc._id?.toString() };
|
|
242
|
+
return { id: savedId };
|
|
241
243
|
}
|
|
242
244
|
/**
|
|
243
245
|
* 削除する
|
|
@@ -260,12 +262,6 @@ class PriceSpecificationRepo {
|
|
|
260
262
|
.sort({ price: factory.sortType.Ascending })
|
|
261
263
|
.cursor();
|
|
262
264
|
}
|
|
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
265
|
async unsetUnnecessaryFields(params) {
|
|
270
266
|
return this.priceSpecificationModel.updateMany(params.filter, { $unset: params.$unset }, { timestamps: false })
|
|
271
267
|
.exec();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { BulkWriteResult } from 'mongodb';
|
|
2
2
|
import { Connection, FilterQuery, Types } from 'mongoose';
|
|
3
3
|
import * as factory from '../factory';
|
|
4
|
-
import { IDocTypeAsProduct } from './mongoose/schemas/product';
|
|
4
|
+
import { IDocType, IDocTypeAsProduct } from './mongoose/schemas/product';
|
|
5
5
|
type IKeyOfProjection = keyof factory.product.IProduct | 'hasOfferCatalog.id';
|
|
6
6
|
/**
|
|
7
7
|
* プロダクト検索条件
|
|
@@ -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, {}, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & Omit<IDocTypeAsProduct & import("./mongoose/schemas/product").IDocTypeAsProductOffer & {
|
|
107
107
|
_id: Types.ObjectId;
|
|
108
|
-
}
|
|
108
|
+
} & {
|
|
109
|
+
__v: number;
|
|
110
|
+
}, "id"> & import("./mongoose/virtuals").IVirtuals, import("mongoose").QueryOptions<IDocType>, (import("mongoose").Document<unknown, {}, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & Omit<IDocTypeAsProduct & import("./mongoose/schemas/product").IDocTypeAsProductOffer & {
|
|
109
111
|
_id: Types.ObjectId;
|
|
110
|
-
}
|
|
112
|
+
} & {
|
|
113
|
+
__v: number;
|
|
114
|
+
}, "id"> & import("./mongoose/virtuals").IVirtuals) | null>;
|
|
111
115
|
unsetUnnecessaryFields(params: {
|
|
112
116
|
filter: FilterQuery<factory.product.IProduct>;
|
|
113
117
|
$unset: any;
|