@chevre/domain 28.2.0-alpha.2 → 28.2.0-alpha.4
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/action/inform.d.ts +2 -1
- package/lib/chevre/repo/action/update.d.ts +2 -1
- package/lib/chevre/repo/action/use.d.ts +2 -1
- package/lib/chevre/repo/additionalProperty.d.ts +4 -2
- package/lib/chevre/repo/additionalProperty.js +6 -7
- package/lib/chevre/repo/adminAction.d.ts +3 -2
- package/lib/chevre/repo/adminAssetTransaction.d.ts +3 -2
- package/lib/chevre/repo/adminAsyncAction.d.ts +3 -2
- package/lib/chevre/repo/adminCheckMovieTicketAction.d.ts +2 -1
- package/lib/chevre/repo/adminEvent.d.ts +13 -11
- package/lib/chevre/repo/adminEvent.js +1 -2
- package/lib/chevre/repo/adminEventSeries.d.ts +5 -3
- package/lib/chevre/repo/adminEventSeries.js +1 -1
- package/lib/chevre/repo/adminPaymentServiceChannel.d.ts +2 -1
- package/lib/chevre/repo/adminPendingReservation.d.ts +4 -3
- package/lib/chevre/repo/adminScheduledTask.d.ts +3 -2
- package/lib/chevre/repo/adminTask.d.ts +5 -4
- package/lib/chevre/repo/aggregateOffer.d.ts +8 -7
- package/lib/chevre/repo/aggregateOffer.js +6 -8
- package/lib/chevre/repo/assetTransaction.d.ts +10 -8
- package/lib/chevre/repo/assetTransaction.js +3 -1
- package/lib/chevre/repo/authorization.d.ts +5 -3
- package/lib/chevre/repo/categoryCode.d.ts +5 -4
- package/lib/chevre/repo/categoryCode.js +0 -1
- package/lib/chevre/repo/creativeWork.d.ts +7 -6
- package/lib/chevre/repo/creativeWork.js +8 -9
- package/lib/chevre/repo/customer.d.ts +3 -2
- package/lib/chevre/repo/customerType.d.ts +5 -4
- package/lib/chevre/repo/emailMessage.d.ts +5 -2
- package/lib/chevre/repo/emailMessage.js +10 -8
- package/lib/chevre/repo/event.d.ts +4 -2
- package/lib/chevre/repo/eventOffer.d.ts +6 -5
- package/lib/chevre/repo/eventSellerMakesOffer.d.ts +3 -2
- package/lib/chevre/repo/eventSeries.d.ts +4 -2
- package/lib/chevre/repo/factory/action/createMongoConditions.d.ts +1 -1
- package/lib/chevre/repo/factory/reservation/createMongoConditions.d.ts +3 -2
- package/lib/chevre/repo/identity.d.ts +3 -2
- package/lib/chevre/repo/identityProvider.d.ts +3 -2
- package/lib/chevre/repo/issuer.d.ts +3 -2
- package/lib/chevre/repo/issuer.js +6 -7
- package/lib/chevre/repo/member.d.ts +6 -5
- package/lib/chevre/repo/merchantReturnPolicy.d.ts +6 -4
- package/lib/chevre/repo/merchantReturnPolicy.js +12 -10
- package/lib/chevre/repo/message.d.ts +4 -3
- package/lib/chevre/repo/message.js +1 -2
- package/lib/chevre/repo/mongoose/schemas/order.d.ts +5 -1
- package/lib/chevre/repo/mongoose/types.d.ts +2 -0
- package/lib/chevre/repo/mongoose/types.js +2 -0
- package/lib/chevre/repo/movieTicketType.d.ts +2 -1
- package/lib/chevre/repo/movieTicketType.js +0 -4
- package/lib/chevre/repo/note.d.ts +6 -4
- package/lib/chevre/repo/note.js +4 -1
- package/lib/chevre/repo/noteAboutOrder.d.ts +6 -4
- package/lib/chevre/repo/noteAboutOrder.js +1 -1
- package/lib/chevre/repo/offerCatalog.d.ts +5 -4
- package/lib/chevre/repo/offerCatalog.js +8 -6
- package/lib/chevre/repo/offerCatalogItem.d.ts +4 -3
- package/lib/chevre/repo/offerCatalogItem.js +9 -7
- package/lib/chevre/repo/offerItemCondition.d.ts +1 -1
- package/lib/chevre/repo/offerItemCondition.js +7 -8
- package/lib/chevre/repo/order.d.ts +27 -6
- package/lib/chevre/repo/paymentService.d.ts +4 -3
- package/lib/chevre/repo/paymentServiceProvider.d.ts +4 -2
- package/lib/chevre/repo/paymentServiceProvider.js +3 -3
- package/lib/chevre/repo/place/entranceGate.d.ts +5 -4
- package/lib/chevre/repo/place/movieTheater.d.ts +7 -6
- package/lib/chevre/repo/place/movieTheater.js +6 -7
- package/lib/chevre/repo/place/screeningRoom.d.ts +7 -6
- package/lib/chevre/repo/place/seat.d.ts +5 -4
- package/lib/chevre/repo/place/section.d.ts +4 -3
- package/lib/chevre/repo/place/section.js +1 -1
- package/lib/chevre/repo/potentialAction.d.ts +3 -2
- package/lib/chevre/repo/priceSpecification.d.ts +2 -2
- package/lib/chevre/repo/priceSpecification.js +1 -1
- package/lib/chevre/repo/product.d.ts +7 -6
- package/lib/chevre/repo/project.d.ts +4 -3
- package/lib/chevre/repo/reservation.d.ts +3 -3
- package/lib/chevre/repo/role.d.ts +3 -2
- package/lib/chevre/repo/seller.d.ts +4 -3
- package/lib/chevre/repo/sellerMakesOffer.d.ts +4 -3
- package/lib/chevre/repo/sellerReturnPolicy.d.ts +4 -2
- package/lib/chevre/repo/setting.d.ts +4 -3
- package/lib/chevre/repo/ticket.d.ts +4 -3
- package/lib/chevre/repo/transaction/placeOrder.d.ts +16 -2
- package/lib/chevre/repo/transactionNumberCounter.js +1 -1
- package/lib/chevre/repo/webSite.d.ts +5 -3
- package/lib/chevre/repo/webSite.js +1 -1
- package/package.json +2 -2
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { Connection,
|
|
1
|
+
import { Connection, Types } from 'mongoose';
|
|
2
|
+
import type { FilterQuery } from './mongoose/types';
|
|
2
3
|
import { factory } from '../factory';
|
|
3
|
-
import { IDocType, IDocTypeAsProduct } from './mongoose/schemas/product';
|
|
4
|
+
import { IDocType, IDocTypeAsProduct, IModel } from './mongoose/schemas/product';
|
|
4
5
|
type IKeyOfProjection = keyof factory.product.IProduct | 'hasOfferCatalog.id';
|
|
5
6
|
/**
|
|
6
7
|
* プロダクト検索条件
|
|
@@ -13,7 +14,7 @@ type IUnsetKey = keyof Pick<factory.product.IProduct, 'additionalProperty' | 'av
|
|
|
13
14
|
export declare class ProductRepo {
|
|
14
15
|
private readonly productModel;
|
|
15
16
|
constructor(connection: Connection);
|
|
16
|
-
static CREATE_MONGO_CONDITIONS(params: ISearchConditions4product): FilterQuery<
|
|
17
|
+
static CREATE_MONGO_CONDITIONS(params: ISearchConditions4product): FilterQuery<IDocType>[];
|
|
17
18
|
/**
|
|
18
19
|
* プロダクトを検索する
|
|
19
20
|
*/
|
|
@@ -64,7 +65,7 @@ export declare class ProductRepo {
|
|
|
64
65
|
};
|
|
65
66
|
$unset?: Partial<Record<IUnsetKey, 1>>;
|
|
66
67
|
}[]): Promise<{
|
|
67
|
-
bulkWriteResult?:
|
|
68
|
+
bulkWriteResult?: Awaited<ReturnType<IModel['bulkWrite']>>;
|
|
68
69
|
modifiedProducts?: {
|
|
69
70
|
id: string;
|
|
70
71
|
}[];
|
|
@@ -79,7 +80,7 @@ export declare class ProductRepo {
|
|
|
79
80
|
hasOfferCatalog: {
|
|
80
81
|
id: string;
|
|
81
82
|
};
|
|
82
|
-
}): Promise<
|
|
83
|
+
}): Promise<import("mongodb").DeleteResult>;
|
|
83
84
|
/**
|
|
84
85
|
* プロジェクト指定で削除する
|
|
85
86
|
*/
|
|
@@ -98,7 +99,7 @@ export declare class ProductRepo {
|
|
|
98
99
|
__v: number;
|
|
99
100
|
}) | null>;
|
|
100
101
|
unsetUnnecessaryFields(params: {
|
|
101
|
-
filter: FilterQuery<
|
|
102
|
+
filter: FilterQuery<IDocType>;
|
|
102
103
|
$unset: any;
|
|
103
104
|
}): Promise<import("mongoose").UpdateWriteOpResult>;
|
|
104
105
|
migrateHasOfferCatalogItemListElement(params: {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { Connection
|
|
1
|
+
import type { Connection } from 'mongoose';
|
|
2
|
+
import type { FilterQuery } from './mongoose/types';
|
|
2
3
|
import { IDocType } from './mongoose/schemas/project';
|
|
3
4
|
import { factory } from '../factory';
|
|
4
5
|
type IKeyOfProjection = keyof factory.project.IProject;
|
|
@@ -9,7 +10,7 @@ type IKeyOfProjection = keyof factory.project.IProject;
|
|
|
9
10
|
export declare class ProjectRepo {
|
|
10
11
|
private readonly projectModel;
|
|
11
12
|
constructor(connection: Connection);
|
|
12
|
-
static CREATE_MONGO_CONDITIONS(params: factory.project.ISearchConditions): FilterQuery<
|
|
13
|
+
static CREATE_MONGO_CONDITIONS(params: factory.project.ISearchConditions): FilterQuery<IDocType>[];
|
|
13
14
|
findById(params: {
|
|
14
15
|
id: string;
|
|
15
16
|
inclusion: IKeyOfProjection[];
|
|
@@ -43,7 +44,7 @@ export declare class ProjectRepo {
|
|
|
43
44
|
deleteById(params: {
|
|
44
45
|
id: string;
|
|
45
46
|
}): Promise<void>;
|
|
46
|
-
getCursor(conditions: FilterQuery<
|
|
47
|
+
getCursor(conditions: FilterQuery<IDocType>, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, Record<string, never>, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & Pick<factory.project.IProject, "name" | "typeOf" | "logo" | "alternateName" | "hasMerchantReturnPolicy" | "settings" | "subscription"> & {
|
|
47
48
|
_id: string;
|
|
48
49
|
makesOffer?: factory.project.IMakesOffer[];
|
|
49
50
|
} & Required<{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Connection, UpdateWriteOpResult
|
|
2
|
-
import { IDocType } from './mongoose/schemas/reservation';
|
|
1
|
+
import type { Connection, UpdateWriteOpResult } from 'mongoose';
|
|
2
|
+
import { IDocType, IModel } from './mongoose/schemas/reservation';
|
|
3
3
|
import { factory } from '../factory';
|
|
4
4
|
export interface IUpdatePartiallyParams {
|
|
5
5
|
additionalTicketText?: string;
|
|
@@ -76,7 +76,7 @@ export declare class ReservationRepo {
|
|
|
76
76
|
reservationNumber: string;
|
|
77
77
|
underName?: factory.reservation.IUnderName;
|
|
78
78
|
broker?: factory.reservation.IBroker;
|
|
79
|
-
}): Promise<
|
|
79
|
+
}): Promise<Awaited<ReturnType<IModel['bulkWrite']>> | undefined>;
|
|
80
80
|
/**
|
|
81
81
|
* 予約取消
|
|
82
82
|
*/
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { Connection
|
|
1
|
+
import type { Connection } from 'mongoose';
|
|
2
|
+
import type { FilterQuery } from './mongoose/types';
|
|
2
3
|
import { factory } from '../factory';
|
|
3
4
|
import { IDocType } from './mongoose/schemas/role';
|
|
4
5
|
type IRole = IDocType;
|
|
@@ -16,7 +17,7 @@ export declare class RoleRepo {
|
|
|
16
17
|
*/
|
|
17
18
|
findUniquePermissionsByRoleName(params: {
|
|
18
19
|
roleName: {
|
|
19
|
-
$in:
|
|
20
|
+
$in: factory.role.organizationRole.RoleName[];
|
|
20
21
|
};
|
|
21
22
|
}): Promise<string[]>;
|
|
22
23
|
addPermissionIfNotExists(params: {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { AnyExpression, Connection,
|
|
1
|
+
import { AnyExpression, Connection, QueryOptions, Types } from 'mongoose';
|
|
2
|
+
import type { FilterQuery } from './mongoose/types';
|
|
2
3
|
import { IDocType } from './mongoose/schemas/seller';
|
|
3
4
|
import { factory } from '../factory';
|
|
4
5
|
export type ISellerWithId = Pick<factory.seller.ISeller, 'additionalProperty' | 'branchCode' | 'hasMerchantReturnPolicy' | 'id' | 'makesOffer' | 'name' | 'project' | 'telephone' | 'typeOf' | 'url'> & {
|
|
@@ -32,7 +33,7 @@ type IKeyOfProjection = keyof ISellerWithId;
|
|
|
32
33
|
export declare class SellerRepo {
|
|
33
34
|
private readonly sellerModel;
|
|
34
35
|
constructor(connection: Connection);
|
|
35
|
-
static CREATE_MONGO_CONDITIONS(params: factory.seller.ISearchConditions & IMemberSearchConditions): FilterQuery<
|
|
36
|
+
static CREATE_MONGO_CONDITIONS(params: factory.seller.ISearchConditions & IMemberSearchConditions): FilterQuery<IDocType>[];
|
|
36
37
|
static CREATE_AGGREGATE_SELLERS_PROJECTION(inclusions: (Exclude<keyof ISellerByAggregate, 'id'>)[]): Record<string, AnyExpression>;
|
|
37
38
|
/**
|
|
38
39
|
* 販売者を保管する
|
|
@@ -75,7 +76,7 @@ export declare class SellerRepo {
|
|
|
75
76
|
id: string;
|
|
76
77
|
makesOffer: factory.seller.IMakesOffer;
|
|
77
78
|
}): Promise<void>;
|
|
78
|
-
getCursor(conditions: FilterQuery<
|
|
79
|
+
getCursor(conditions: FilterQuery<IDocType>, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, Record<string, never>, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & Pick<factory.seller.ISeller, "name" | "typeOf" | "branchCode" | "additionalProperty" | "project" | "url" | "telephone" | "makesOffer" | "hasMerchantReturnPolicy"> & {
|
|
79
80
|
paymentAccepted?: factory.seller.IPaymentAccepted[];
|
|
80
81
|
} & {
|
|
81
82
|
_id: Types.ObjectId;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Connection
|
|
1
|
+
import { Connection } from 'mongoose';
|
|
2
2
|
import { factory } from '../factory';
|
|
3
|
+
import { IModel } from './mongoose/schemas/seller';
|
|
3
4
|
type IMakesOffer = Pick<factory.seller.IMakesOffer, 'typeOf' | 'availableAtOrFrom' | 'eligibleTransactionDuration'>;
|
|
4
5
|
type IMakesOfferAsFindResult = IMakesOffer & {
|
|
5
6
|
offeredBy: {
|
|
@@ -50,7 +51,7 @@ export declare class SellerMakesOfferRepo {
|
|
|
50
51
|
id: string;
|
|
51
52
|
};
|
|
52
53
|
}[];
|
|
53
|
-
}): Promise<
|
|
54
|
+
}): Promise<Awaited<ReturnType<IModel['bulkWrite']>> | undefined>;
|
|
54
55
|
/**
|
|
55
56
|
* 販売者とアプリケーションに対してオファーが存在すれば削除する
|
|
56
57
|
*/
|
|
@@ -66,6 +67,6 @@ export declare class SellerMakesOfferRepo {
|
|
|
66
67
|
id: string;
|
|
67
68
|
};
|
|
68
69
|
}[];
|
|
69
|
-
}): Promise<
|
|
70
|
+
}): Promise<Awaited<ReturnType<IModel['bulkWrite']>> | undefined>;
|
|
70
71
|
}
|
|
71
72
|
export {};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { Connection
|
|
1
|
+
import { Connection } from 'mongoose';
|
|
2
|
+
import type { FilterQuery } from './mongoose/types';
|
|
3
|
+
import { IDocType } from './mongoose/schemas/sellerReturnPolicy';
|
|
2
4
|
import { factory } from '../factory';
|
|
3
5
|
export type ISavingReturnPolicy = Pick<factory.sellerReturnPolicy.ISellerReturnPolicy, 'applicablePaymentMethod' | 'identifier' | 'itemCondition' | 'merchantReturnDays' | 'name' | 'project' | 'restockingFee' | 'typeOf'> & {
|
|
4
6
|
id?: never;
|
|
@@ -16,7 +18,7 @@ type IKeyOfProjection = keyof ISellerReturnPolicyWithId;
|
|
|
16
18
|
export declare class SellerReturnPolicyRepo {
|
|
17
19
|
private readonly sellerReturnPolicyModel;
|
|
18
20
|
constructor(connection: Connection);
|
|
19
|
-
static CREATE_FILTER_QUERY(params: factory.sellerReturnPolicy.ISearchConditions): FilterQuery<
|
|
21
|
+
static CREATE_FILTER_QUERY(params: factory.sellerReturnPolicy.ISearchConditions): FilterQuery<IDocType>[];
|
|
20
22
|
save(params: {
|
|
21
23
|
id?: string;
|
|
22
24
|
attributes: ISavingReturnPolicy & IUnset;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type { Connection
|
|
2
|
-
import {
|
|
1
|
+
import type { Connection } from 'mongoose';
|
|
2
|
+
import type { FilterQuery } from './mongoose/types';
|
|
3
|
+
import { IDocType, ISetting, IStorageSettings } from './mongoose/schemas/setting';
|
|
3
4
|
type IKeyOfProjection = Exclude<keyof ISetting, 'jwt' | 'project' | 'waiter' | 'integration'>;
|
|
4
5
|
type IGlobalSetting = Pick<ISetting, 'defaultSenderEmail' | 'orderNumber' | 'quota' | 'storage' | 'transactionNumber' | 'useInformResourceTypes' | 'useMongo4confirmationNumberFrom' | 'useMongo4orderNumberFrom' | 'useMongo4transactionNumberFrom' | 'useMongoAsStockHolder' | 'useMongoAsStockHolderProjects' | 'userPoolIdNew' | 'userPoolIdOld'>;
|
|
5
6
|
export { IGlobalSetting as ISetting };
|
|
@@ -25,7 +26,7 @@ export declare class SettingRepo {
|
|
|
25
26
|
value: number;
|
|
26
27
|
}): Promise<import("mongoose").UpdateWriteOpResult>;
|
|
27
28
|
unsetUnnecessaryFields(params: {
|
|
28
|
-
filter: FilterQuery<
|
|
29
|
+
filter: FilterQuery<IDocType>;
|
|
29
30
|
$unset: any;
|
|
30
31
|
}): Promise<import("mongoose").UpdateWriteOpResult>;
|
|
31
32
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import type { Connection
|
|
1
|
+
import type { Connection } from 'mongoose';
|
|
2
|
+
import type { FilterQuery } from './mongoose/types';
|
|
2
3
|
import { factory } from '../factory';
|
|
3
|
-
import { ITicket, ITicketIssuedBy } from './mongoose/schemas/ticket';
|
|
4
|
+
import { ITicket, ITicketIssuedBy, IDocType } from './mongoose/schemas/ticket';
|
|
4
5
|
export { ITicket };
|
|
5
6
|
type IIssueParams = Pick<ITicket, 'ticketToken'> & {
|
|
6
7
|
project: {
|
|
@@ -33,7 +34,7 @@ type IKeyOfProjection = keyof ITicket;
|
|
|
33
34
|
export declare class TicketRepo {
|
|
34
35
|
private readonly ticketModel;
|
|
35
36
|
constructor(connection: Connection);
|
|
36
|
-
static CREATE_MONGO_CONDITIONS(params: ISearchConditions): FilterQuery<
|
|
37
|
+
static CREATE_MONGO_CONDITIONS(params: ISearchConditions): FilterQuery<IDocType>[];
|
|
37
38
|
/**
|
|
38
39
|
* 承認コードからチケットを発行する
|
|
39
40
|
*/
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { Connection
|
|
1
|
+
import type { Connection } from 'mongoose';
|
|
2
|
+
import type { FilterQuery } from '../mongoose/types';
|
|
2
3
|
import { factory } from '../../factory';
|
|
3
4
|
type IKeyOfProjection = 'agent' | 'endDate' | 'expires' | 'project' | 'startDate' | 'status' | 'typeOf' | 'instrument' | 'object' | 'seller' | 'result' | 'tasksExportAction';
|
|
4
5
|
export type ITransactionInProgress = Pick<factory.transaction.placeOrder.ITransaction, IKeyOfProjection> & {
|
|
@@ -24,7 +25,20 @@ type IFindParams = Pick<factory.transaction.placeOrder.ISearchConditions, 'agent
|
|
|
24
25
|
export declare class PlaceOrderRepo {
|
|
25
26
|
private readonly transactionModel;
|
|
26
27
|
constructor(connection: Connection);
|
|
27
|
-
static CREATE_MONGO_CONDITIONS(params: IFindParams): FilterQuery<
|
|
28
|
+
static CREATE_MONGO_CONDITIONS(params: IFindParams): FilterQuery<{
|
|
29
|
+
object: import("@chevre/factory/lib/chevre/transaction/placeOrder").IObject;
|
|
30
|
+
endDate?: Date | undefined;
|
|
31
|
+
startDate: Date;
|
|
32
|
+
typeOf: factory.transactionType.PlaceOrder;
|
|
33
|
+
project: import("@chevre/factory/lib/chevre/transaction").IProject;
|
|
34
|
+
seller: import("@chevre/factory/lib/chevre/transaction/placeOrder").ISeller;
|
|
35
|
+
expires: Date;
|
|
36
|
+
result?: import("@chevre/factory/lib/chevre/transaction/placeOrder").IResult | undefined;
|
|
37
|
+
instrument?: import("@chevre/factory/lib/chevre/transaction/placeOrder").IInstrument | undefined;
|
|
38
|
+
agent: import("@chevre/factory/lib/chevre/transaction/placeOrder").IAgent;
|
|
39
|
+
status: factory.transactionStatusType;
|
|
40
|
+
tasksExportAction?: import("@chevre/factory/lib/chevre/transaction/placeOrder").ITasksExportAction | undefined;
|
|
41
|
+
}>[];
|
|
28
42
|
countPlaceOrder(params: IFindParams): Promise<{
|
|
29
43
|
count: number;
|
|
30
44
|
}>;
|
|
@@ -71,7 +71,7 @@ class TransactionNumberCounterRepo {
|
|
|
71
71
|
throw error;
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
-
if (doc === undefined) {
|
|
74
|
+
if (doc === undefined || doc === null) {
|
|
75
75
|
throw new factory_1.factory.errors.NotFound('DataFeed');
|
|
76
76
|
}
|
|
77
77
|
const incrReply = doc.interactionStatistic?.userInteractionCount;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { Connection
|
|
1
|
+
import { Connection } from 'mongoose';
|
|
2
|
+
import type { FilterQuery } from './mongoose/types';
|
|
2
3
|
import { factory } from '../factory';
|
|
4
|
+
import { IDocType } from './mongoose/schemas/webSite';
|
|
3
5
|
export type ISavingWebSite = Pick<factory.creativeWork.certification.webSite.ICertification, 'about' | 'certificationStatus' | 'project' | 'auditDate'> & {
|
|
4
6
|
id?: never;
|
|
5
7
|
datePublished?: never;
|
|
@@ -19,8 +21,8 @@ type IKeyOfProjection = keyof factory.creativeWork.certification.webSite.ICertif
|
|
|
19
21
|
export declare class WebSiteRepo {
|
|
20
22
|
private readonly webSiteModel;
|
|
21
23
|
constructor(connection: Connection);
|
|
22
|
-
static CREATE_FILTER_QUERY(params: factory.creativeWork.certification.webSite.ISearchConditions): FilterQuery<
|
|
23
|
-
|
|
24
|
+
static CREATE_FILTER_QUERY(params: factory.creativeWork.certification.webSite.ISearchConditions): FilterQuery<IDocType>[];
|
|
25
|
+
saveWebiSite(params: {
|
|
24
26
|
id?: string;
|
|
25
27
|
attributes: ISavingWebSite & IUnset;
|
|
26
28
|
}): Promise<{
|
package/package.json
CHANGED
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"csvtojson": "^2.0.10",
|
|
47
47
|
"dependency-cruiser": "17.3.8",
|
|
48
48
|
"eslint": "9.39.2",
|
|
49
|
-
"mongoose": "8.24.
|
|
49
|
+
"mongoose": "8.24.9",
|
|
50
50
|
"rimraf": "6.1.3",
|
|
51
51
|
"size-limit": "12.0.0",
|
|
52
52
|
"typescript": "5.9.3",
|
|
@@ -89,5 +89,5 @@
|
|
|
89
89
|
"postversion": "git push origin --tags",
|
|
90
90
|
"prepublishOnly": "npm run clean && npm run build"
|
|
91
91
|
},
|
|
92
|
-
"version": "28.2.0-alpha.
|
|
92
|
+
"version": "28.2.0-alpha.4"
|
|
93
93
|
}
|