@chevre/domain 28.2.0-alpha.2 → 28.2.0-alpha.3

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.
Files changed (67) hide show
  1. package/lib/chevre/repo/action/inform.d.ts +2 -1
  2. package/lib/chevre/repo/action/update.d.ts +2 -1
  3. package/lib/chevre/repo/action/use.d.ts +2 -1
  4. package/lib/chevre/repo/additionalProperty.d.ts +4 -2
  5. package/lib/chevre/repo/additionalProperty.js +6 -7
  6. package/lib/chevre/repo/adminAction.d.ts +3 -2
  7. package/lib/chevre/repo/adminAssetTransaction.d.ts +3 -2
  8. package/lib/chevre/repo/adminAsyncAction.d.ts +3 -2
  9. package/lib/chevre/repo/adminCheckMovieTicketAction.d.ts +2 -1
  10. package/lib/chevre/repo/adminEvent.d.ts +4 -2
  11. package/lib/chevre/repo/adminEventSeries.d.ts +4 -2
  12. package/lib/chevre/repo/adminPaymentServiceChannel.d.ts +2 -1
  13. package/lib/chevre/repo/adminPendingReservation.d.ts +4 -3
  14. package/lib/chevre/repo/adminScheduledTask.d.ts +3 -2
  15. package/lib/chevre/repo/adminTask.d.ts +5 -4
  16. package/lib/chevre/repo/aggregateOffer.d.ts +6 -5
  17. package/lib/chevre/repo/aggregateOffer.js +0 -1
  18. package/lib/chevre/repo/assetTransaction.d.ts +4 -2
  19. package/lib/chevre/repo/authorization.d.ts +5 -3
  20. package/lib/chevre/repo/categoryCode.d.ts +5 -4
  21. package/lib/chevre/repo/categoryCode.js +0 -1
  22. package/lib/chevre/repo/creativeWork.d.ts +5 -4
  23. package/lib/chevre/repo/creativeWork.js +8 -9
  24. package/lib/chevre/repo/customer.d.ts +3 -2
  25. package/lib/chevre/repo/customerType.d.ts +4 -3
  26. package/lib/chevre/repo/emailMessage.d.ts +2 -1
  27. package/lib/chevre/repo/event.d.ts +4 -2
  28. package/lib/chevre/repo/eventOffer.d.ts +2 -1
  29. package/lib/chevre/repo/eventSeries.d.ts +4 -2
  30. package/lib/chevre/repo/factory/action/createMongoConditions.d.ts +1 -1
  31. package/lib/chevre/repo/factory/reservation/createMongoConditions.d.ts +3 -2
  32. package/lib/chevre/repo/identity.d.ts +3 -2
  33. package/lib/chevre/repo/identityProvider.d.ts +3 -2
  34. package/lib/chevre/repo/issuer.d.ts +3 -2
  35. package/lib/chevre/repo/issuer.js +6 -7
  36. package/lib/chevre/repo/member.d.ts +4 -3
  37. package/lib/chevre/repo/message.d.ts +4 -3
  38. package/lib/chevre/repo/mongoose/types.d.ts +2 -0
  39. package/lib/chevre/repo/mongoose/types.js +2 -0
  40. package/lib/chevre/repo/movieTicketType.d.ts +2 -1
  41. package/lib/chevre/repo/movieTicketType.js +0 -4
  42. package/lib/chevre/repo/note.d.ts +4 -2
  43. package/lib/chevre/repo/noteAboutOrder.d.ts +5 -3
  44. package/lib/chevre/repo/noteAboutOrder.js +1 -1
  45. package/lib/chevre/repo/offerCatalog.d.ts +3 -2
  46. package/lib/chevre/repo/offerCatalog.js +5 -6
  47. package/lib/chevre/repo/offerCatalogItem.d.ts +2 -1
  48. package/lib/chevre/repo/offerCatalogItem.js +9 -7
  49. package/lib/chevre/repo/order.d.ts +4 -3
  50. package/lib/chevre/repo/paymentService.d.ts +4 -3
  51. package/lib/chevre/repo/paymentServiceProvider.d.ts +4 -2
  52. package/lib/chevre/repo/place/movieTheater.d.ts +4 -3
  53. package/lib/chevre/repo/place/movieTheater.js +6 -7
  54. package/lib/chevre/repo/place/screeningRoom.d.ts +3 -2
  55. package/lib/chevre/repo/place/section.js +1 -1
  56. package/lib/chevre/repo/potentialAction.d.ts +3 -2
  57. package/lib/chevre/repo/product.d.ts +4 -3
  58. package/lib/chevre/repo/project.d.ts +4 -3
  59. package/lib/chevre/repo/role.d.ts +2 -1
  60. package/lib/chevre/repo/seller.d.ts +4 -3
  61. package/lib/chevre/repo/sellerReturnPolicy.d.ts +4 -2
  62. package/lib/chevre/repo/setting.d.ts +4 -3
  63. package/lib/chevre/repo/ticket.d.ts +4 -3
  64. package/lib/chevre/repo/transaction/placeOrder.d.ts +16 -2
  65. package/lib/chevre/repo/webSite.d.ts +5 -3
  66. package/lib/chevre/repo/webSite.js +1 -1
  67. package/package.json +1 -1
@@ -1,4 +1,5 @@
1
- import { Connection, FilterQuery } from 'mongoose';
1
+ import { Connection } from 'mongoose';
2
+ import type { FilterQuery } from '../mongoose/types';
2
3
  import { factory } from '../../factory';
3
4
  import { IDocType } from '../mongoose/schemas/action/inform';
4
5
  import { DedicatedActionProcessRepo } from './dedicatedAction/dedicatedActionProcess';
@@ -1,4 +1,5 @@
1
- import { Connection, FilterQuery } from 'mongoose';
1
+ import { Connection } from 'mongoose';
2
+ import type { FilterQuery } from '../mongoose/types';
2
3
  import { factory } from '../../factory';
3
4
  import { IDocType } from '../mongoose/schemas/action/update';
4
5
  import { DedicatedActionProcessRepo } from './dedicatedAction/dedicatedActionProcess';
@@ -1,4 +1,5 @@
1
- import { Connection, FilterQuery } from 'mongoose';
1
+ import { Connection } from 'mongoose';
2
+ import type { FilterQuery } from '../mongoose/types';
2
3
  import { factory } from '../../factory';
3
4
  import { IDocType } from '../mongoose/schemas/action/use';
4
5
  import { DedicatedActionProcessRepo } from './dedicatedAction/dedicatedActionProcess';
@@ -1,5 +1,7 @@
1
- import type { Connection, FilterQuery } from 'mongoose';
1
+ import type { Connection } from 'mongoose';
2
+ import type { FilterQuery } from './mongoose/types';
2
3
  import { factory } from '../factory';
4
+ import { IDocType } from './mongoose/schemas/additionalProperty';
3
5
  type IKeyOfProjection = keyof factory.additionalProperty.IAdditionalProperty;
4
6
  /**
5
7
  * 追加特性リポジトリ
@@ -7,7 +9,7 @@ type IKeyOfProjection = keyof factory.additionalProperty.IAdditionalProperty;
7
9
  export declare class AdditionalPropertyRepo {
8
10
  private readonly additionalPropertyModel;
9
11
  constructor(connection: Connection);
10
- static CREATE_MONGO_CONDITIONS(params: factory.additionalProperty.ISearchConditions): FilterQuery<factory.additionalProperty.IAdditionalProperty>[];
12
+ static CREATE_MONGO_CONDITIONS(params: factory.additionalProperty.ISearchConditions): FilterQuery<IDocType>[];
11
13
  /**
12
14
  * 検索
13
15
  */
@@ -89,21 +89,20 @@ class AdditionalPropertyRepo {
89
89
  }
90
90
  async save(params) {
91
91
  let savedId;
92
- let doc;
93
92
  if (typeof params.id !== 'string') {
94
93
  const { id, ...createParams } = params.attributes; // eslint-disable-line @typescript-eslint/no-unused-vars
95
- doc = await this.additionalPropertyModel.create(createParams);
96
- savedId = doc.id;
94
+ const createdDoc = await this.additionalPropertyModel.create(createParams);
95
+ savedId = createdDoc.id;
97
96
  }
98
97
  else {
99
98
  const { id, codeValue, inCodeSet, project, typeOf, ...updateFields } = params.attributes; // eslint-disable-line @typescript-eslint/no-unused-vars
100
- doc = await this.additionalPropertyModel.findOneAndUpdate({ _id: { $eq: params.id } }, updateFields, { upsert: false, new: true, projection: { _id: 1 } })
99
+ const doc = await this.additionalPropertyModel.findOneAndUpdate({ _id: { $eq: params.id } }, updateFields, { upsert: false, new: true, projection: { _id: 1 } })
101
100
  .exec();
101
+ if (doc === null) {
102
+ throw new factory_1.factory.errors.NotFound(this.additionalPropertyModel.modelName);
103
+ }
102
104
  savedId = params.id;
103
105
  }
104
- if (doc === null) {
105
- throw new factory_1.factory.errors.NotFound(this.additionalPropertyModel.modelName);
106
- }
107
106
  return { id: savedId };
108
107
  }
109
108
  /**
@@ -1,4 +1,5 @@
1
- import type { Connection, FilterQuery } from 'mongoose';
1
+ import type { Connection } from 'mongoose';
2
+ import type { FilterQuery } from './mongoose/types';
2
3
  import { factory } from '../factory';
3
4
  import type { IDocType } from './mongoose/schemas/action';
4
5
  import { IKeyOfProjection, IAction, IActionRecipe, ActionProcessRepo } from './action/anyAction/actionProcess';
@@ -87,7 +88,7 @@ export declare class AdminActionRepo extends ActionProcessRepo<IAction<Startable
87
88
  __v: number;
88
89
  }) | null>;
89
90
  unsetUnnecessaryFields(params: {
90
- filter: FilterQuery<factory.action.IAction<factory.action.IAttributes<factory.actionType, any, any>>>;
91
+ filter: FilterQuery<IDocType>;
91
92
  $unset: any;
92
93
  }): Promise<import("mongoose").UpdateWriteOpResult>;
93
94
  }
@@ -1,4 +1,5 @@
1
- import type { Connection, FilterQuery } from 'mongoose';
1
+ import type { Connection } from 'mongoose';
2
+ import type { FilterQuery } from './mongoose/types';
2
3
  import { IDocType } from './mongoose/schemas/assetTransaction';
3
4
  import { factory } from '../factory';
4
5
  type AvailableAssetTransactionType = factory.assetTransactionType.CancelReservation | factory.assetTransactionType.Pay | factory.assetTransactionType.Refund | factory.assetTransactionType.Reserve;
@@ -8,7 +9,7 @@ type AvailableAssetTransactionType = factory.assetTransactionType.CancelReservat
8
9
  export declare class AdminAssetTransactionRepo {
9
10
  private readonly transactionModel;
10
11
  constructor(connection: Connection);
11
- static CREATE_MONGO_CONDITIONS(params: factory.assetTransaction.ISearchConditions<factory.assetTransactionType>): FilterQuery<import("@chevre/factory/lib/chevre/assetTransaction/cancelReservation").ITransaction | import("@chevre/factory/lib/chevre/assetTransaction/pay").ITransaction | import("@chevre/factory/lib/chevre/assetTransaction/refund").ITransaction | import("@chevre/factory/lib/chevre/assetTransaction/reserve").ITransaction>[];
12
+ static CREATE_MONGO_CONDITIONS(params: factory.assetTransaction.ISearchConditions<factory.assetTransactionType>): FilterQuery<IDocType>[];
12
13
  countPotentiallyExportTasks(params: {
13
14
  endDate: {
14
15
  $lt: Date;
@@ -1,4 +1,5 @@
1
- import type { Connection, FilterQuery } from 'mongoose';
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/asyncAction';
4
5
  import type { IExecutableTask } from '../taskSettings';
@@ -11,7 +12,7 @@ type IFindParams = Pick<factory.task.ISearchConditions, 'id' | 'name' | 'project
11
12
  export declare class AdminAsyncActionRepo {
12
13
  private readonly asyncActionModel;
13
14
  constructor(connection: Connection);
14
- static CREATE_MONGO_CONDITIONS(params: Pick<IFindParams, 'id' | 'name' | 'project' | 'runsFrom' | 'runsThrough' | 'status'>): FilterQuery<import("@chevre/factory/lib/chevre/task").ITask | import("@chevre/factory/lib/chevre/task/confirmPayTransaction").ITask | import("@chevre/factory/lib/chevre/task/confirmReserveTransaction").ITask | import("@chevre/factory/lib/chevre/task/createAccountingReport").ITask | import("@chevre/factory/lib/chevre/task/onAssetTransactionStatusChanged").ITask | import("@chevre/factory/lib/chevre/task/onAuthorizationCreated").ITask | import("@chevre/factory/lib/chevre/task/onEventChanged").ITask | import("@chevre/factory/lib/chevre/task/onResourceDeleted").ITask | import("@chevre/factory/lib/chevre/task/onResourceUpdated").ITask | import("@chevre/factory/lib/chevre/task/onOrderPaymentCompleted").ITask | import("@chevre/factory/lib/chevre/task/placeOrder").ITask | import("@chevre/factory/lib/chevre/task/returnOrder").ITask | import("@chevre/factory/lib/chevre/task/returnPayTransaction").ITask | import("@chevre/factory/lib/chevre/task/returnReserveTransaction").ITask | import("@chevre/factory/lib/chevre/task/sendEmailMessage").ITask | import("@chevre/factory/lib/chevre/task/sendOrder").ITask | import("@chevre/factory/lib/chevre/task/triggerWebhook").ITask | import("@chevre/factory/lib/chevre/task/useReservation").ITask | import("@chevre/factory/lib/chevre/task/voidPayTransaction").ITask>[];
15
+ static CREATE_MONGO_CONDITIONS(params: Pick<IFindParams, 'id' | 'name' | 'project' | 'runsFrom' | 'runsThrough' | 'status'>): FilterQuery<IDocType>[];
15
16
  findAsyncActions(params: IFindParams, inclusion: IKeyOfProjection[]): Promise<(IDocType & {
16
17
  id: string;
17
18
  })[]>;
@@ -1,4 +1,5 @@
1
- import type { Connection, FilterQuery } from 'mongoose';
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/action/checkMovieTicket';
4
5
  type IAction = IDocType & {
@@ -1,5 +1,7 @@
1
- import { Connection, FilterQuery, mongo } from 'mongoose';
1
+ import { Connection, mongo } from 'mongoose';
2
+ import type { FilterQuery } from './mongoose/types';
2
3
  import { factory } from '../factory';
4
+ import { IDocType } from './mongoose/schemas/event';
3
5
  export interface IAttributes4patchUpdate {
4
6
  typeOf: factory.eventType.ScreeningEvent;
5
7
  eventStatus?: factory.eventStatusType;
@@ -223,7 +225,7 @@ export declare class AdminEventRepo {
223
225
  __v: number;
224
226
  }) | null>;
225
227
  unsetUnnecessaryFields(params: {
226
- filter: FilterQuery<factory.event.screeningEvent.IEvent>;
228
+ filter: FilterQuery<IDocType>;
227
229
  $unset: IUnset;
228
230
  }): Promise<import("mongoose").UpdateWriteOpResult>;
229
231
  }
@@ -1,5 +1,7 @@
1
- import type { Connection, FilterQuery, mongo } from 'mongoose';
1
+ import type { Connection, mongo } from 'mongoose';
2
+ import type { FilterQuery } from './mongoose/types';
2
3
  import { factory } from '../factory';
4
+ import { IDocType } from './mongoose/schemas/eventSeries';
3
5
  type IUnset = {
4
6
  [key in keyof factory.eventSeries.IEvent]?: 1;
5
7
  };
@@ -60,7 +62,7 @@ export declare class AdminEventSeriesRepo {
60
62
  __v: number;
61
63
  }) | null>;
62
64
  unsetUnnecessaryFields(params: {
63
- filter: FilterQuery<factory.eventSeries.IEvent>;
65
+ filter: FilterQuery<IDocType>;
64
66
  $unset: IUnset;
65
67
  }): Promise<import("mongoose").UpdateWriteOpResult>;
66
68
  }
@@ -1,4 +1,5 @@
1
- import type { Connection, FilterQuery } from 'mongoose';
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/paymentServiceChannel';
4
5
  export type ISavingChannel = Pick<factory.serviceChannel.IServiceChannel, 'credentials' | 'project' | 'providesService' | 'serviceUrl' | 'typeOf'> & {
@@ -1,5 +1,6 @@
1
- import type { Connection, FilterQuery } from 'mongoose';
2
- import { IReservationPackage, ISubReservation } from './mongoose/schemas/pendingReservation';
1
+ import type { Connection } from 'mongoose';
2
+ import type { FilterQuery } from './mongoose/types';
3
+ import { IDocType, IReservationPackage, ISubReservation } from './mongoose/schemas/pendingReservation';
3
4
  interface ISearchConditions {
4
5
  limit?: number;
5
6
  page?: number;
@@ -37,7 +38,7 @@ type IProjectSubReservationResult = Pick<ISubReservation, 'identifier'> & {
37
38
  export declare class AdminPendingReservationRepo {
38
39
  private readonly pendingReservationModel;
39
40
  constructor(connection: Connection);
40
- static CREATE_FILTER_QUERY(params: ISearchConditions): FilterQuery<IReservationPackage>[];
41
+ static CREATE_FILTER_QUERY(params: ISearchConditions): FilterQuery<IDocType>[];
41
42
  findPendingReservations(params: ISearchConditions): Promise<IProjectFieldResult[]>;
42
43
  projectSubReservationByReservationNumber(params: {
43
44
  project: {
@@ -1,4 +1,5 @@
1
- import type { Connection, FilterQuery } from 'mongoose';
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/scheduledTasks';
4
5
  type IKeyOfProjection = keyof IDocType;
@@ -9,7 +10,7 @@ type IFindParams = Pick<factory.task.ISearchConditions, 'id' | 'name' | 'project
9
10
  export declare class AdminScheduledTaskRepo {
10
11
  private readonly scheduledTaskModel;
11
12
  constructor(connection: Connection);
12
- static CREATE_MONGO_CONDITIONS(params: Pick<IFindParams, 'id' | 'name' | 'project' | 'runsFrom' | 'runsThrough' | 'status'>): FilterQuery<import("@chevre/factory/lib/chevre/task").ITask | import("@chevre/factory/lib/chevre/task/confirmPayTransaction").ITask | import("@chevre/factory/lib/chevre/task/confirmReserveTransaction").ITask | import("@chevre/factory/lib/chevre/task/createAccountingReport").ITask | import("@chevre/factory/lib/chevre/task/onAssetTransactionStatusChanged").ITask | import("@chevre/factory/lib/chevre/task/onAuthorizationCreated").ITask | import("@chevre/factory/lib/chevre/task/onEventChanged").ITask | import("@chevre/factory/lib/chevre/task/onResourceDeleted").ITask | import("@chevre/factory/lib/chevre/task/onResourceUpdated").ITask | import("@chevre/factory/lib/chevre/task/onOrderPaymentCompleted").ITask | import("@chevre/factory/lib/chevre/task/placeOrder").ITask | import("@chevre/factory/lib/chevre/task/returnOrder").ITask | import("@chevre/factory/lib/chevre/task/returnPayTransaction").ITask | import("@chevre/factory/lib/chevre/task/returnReserveTransaction").ITask | import("@chevre/factory/lib/chevre/task/sendEmailMessage").ITask | import("@chevre/factory/lib/chevre/task/sendOrder").ITask | import("@chevre/factory/lib/chevre/task/triggerWebhook").ITask | import("@chevre/factory/lib/chevre/task/useReservation").ITask | import("@chevre/factory/lib/chevre/task/voidPayTransaction").ITask>[];
13
+ static CREATE_MONGO_CONDITIONS(params: Pick<IFindParams, 'id' | 'name' | 'project' | 'runsFrom' | 'runsThrough' | 'status'>): FilterQuery<IDocType>[];
13
14
  /**
14
15
  * 検索する
15
16
  */
@@ -1,4 +1,5 @@
1
- import type { AnyKeys, Connection, FilterQuery, ProjectionType } from 'mongoose';
1
+ import type { AnyKeys, Connection, ProjectionType } from 'mongoose';
2
+ import type { FilterQuery } from './mongoose/types';
2
3
  import { factory } from '../factory';
3
4
  import { IDocType } from './mongoose/schemas/task';
4
5
  type IKeyOfProjection = keyof factory.task.ITask<factory.taskName>;
@@ -13,7 +14,7 @@ type IFindParams = factory.task.ISearchConditions & {
13
14
  export declare class AdminTaskRepo {
14
15
  private readonly taskModel;
15
16
  constructor(connection: Connection);
16
- static CREATE_MONGO_CONDITIONS(params: IFindParams): FilterQuery<import("@chevre/factory/lib/chevre/task").ITask | import("@chevre/factory/lib/chevre/task/confirmPayTransaction").ITask | import("@chevre/factory/lib/chevre/task/confirmReserveTransaction").ITask | import("@chevre/factory/lib/chevre/task/createAccountingReport").ITask | import("@chevre/factory/lib/chevre/task/onAssetTransactionStatusChanged").ITask | import("@chevre/factory/lib/chevre/task/onAuthorizationCreated").ITask | import("@chevre/factory/lib/chevre/task/onEventChanged").ITask | import("@chevre/factory/lib/chevre/task/onResourceDeleted").ITask | import("@chevre/factory/lib/chevre/task/onResourceUpdated").ITask | import("@chevre/factory/lib/chevre/task/onOrderPaymentCompleted").ITask | import("@chevre/factory/lib/chevre/task/placeOrder").ITask | import("@chevre/factory/lib/chevre/task/returnOrder").ITask | import("@chevre/factory/lib/chevre/task/returnPayTransaction").ITask | import("@chevre/factory/lib/chevre/task/returnReserveTransaction").ITask | import("@chevre/factory/lib/chevre/task/sendEmailMessage").ITask | import("@chevre/factory/lib/chevre/task/sendOrder").ITask | import("@chevre/factory/lib/chevre/task/triggerWebhook").ITask | import("@chevre/factory/lib/chevre/task/useReservation").ITask | import("@chevre/factory/lib/chevre/task/voidPayTransaction").ITask>[];
17
+ static CREATE_MONGO_CONDITIONS(params: IFindParams): FilterQuery<IDocType>[];
17
18
  countTasks(params: IFindParams): Promise<{
18
19
  count: number;
19
20
  }>;
@@ -33,7 +34,7 @@ export declare class AdminTaskRepo {
33
34
  }): Promise<{
34
35
  count: number;
35
36
  }>;
36
- getCursor(conditions: FilterQuery<factory.task.ITask<factory.taskName>>, projection: ProjectionType<factory.task.ITask<factory.taskName>>): import("mongoose").Cursor<import("mongoose").Document<unknown, Record<string, never>, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & Pick<import("@chevre/factory/lib/chevre/task").ITask | import("@chevre/factory/lib/chevre/task/confirmPayTransaction").ITask | import("@chevre/factory/lib/chevre/task/confirmReserveTransaction").ITask | import("@chevre/factory/lib/chevre/task/createAccountingReport").ITask | import("@chevre/factory/lib/chevre/task/onAssetTransactionStatusChanged").ITask | import("@chevre/factory/lib/chevre/task/onAuthorizationCreated").ITask | import("@chevre/factory/lib/chevre/task/onEventChanged").ITask | import("@chevre/factory/lib/chevre/task/onResourceDeleted").ITask | import("@chevre/factory/lib/chevre/task/onResourceUpdated").ITask | import("@chevre/factory/lib/chevre/task/onOrderPaymentCompleted").ITask | import("@chevre/factory/lib/chevre/task/placeOrder").ITask | import("@chevre/factory/lib/chevre/task/returnOrder").ITask | import("@chevre/factory/lib/chevre/task/returnPayTransaction").ITask | import("@chevre/factory/lib/chevre/task/returnReserveTransaction").ITask | import("@chevre/factory/lib/chevre/task/sendEmailMessage").ITask | import("@chevre/factory/lib/chevre/task/sendOrder").ITask | import("@chevre/factory/lib/chevre/task/triggerWebhook").ITask | import("@chevre/factory/lib/chevre/task/useReservation").ITask | import("@chevre/factory/lib/chevre/task/voidPayTransaction").ITask, "identifier" | "name" | "description" | "project" | "data" | "status" | "runsAt" | "dateAborted" | "executionResults" | "executor" | "lastTriedAt" | "remainingNumberOfTries" | "numberOfTried"> & {
37
+ getCursor(conditions: FilterQuery<IDocType>, projection: ProjectionType<factory.task.ITask<factory.taskName>>): import("mongoose").Cursor<import("mongoose").Document<unknown, Record<string, never>, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & Pick<import("@chevre/factory/lib/chevre/task").ITask | import("@chevre/factory/lib/chevre/task/confirmPayTransaction").ITask | import("@chevre/factory/lib/chevre/task/confirmReserveTransaction").ITask | import("@chevre/factory/lib/chevre/task/createAccountingReport").ITask | import("@chevre/factory/lib/chevre/task/onAssetTransactionStatusChanged").ITask | import("@chevre/factory/lib/chevre/task/onAuthorizationCreated").ITask | import("@chevre/factory/lib/chevre/task/onEventChanged").ITask | import("@chevre/factory/lib/chevre/task/onResourceDeleted").ITask | import("@chevre/factory/lib/chevre/task/onResourceUpdated").ITask | import("@chevre/factory/lib/chevre/task/onOrderPaymentCompleted").ITask | import("@chevre/factory/lib/chevre/task/placeOrder").ITask | import("@chevre/factory/lib/chevre/task/returnOrder").ITask | import("@chevre/factory/lib/chevre/task/returnPayTransaction").ITask | import("@chevre/factory/lib/chevre/task/returnReserveTransaction").ITask | import("@chevre/factory/lib/chevre/task/sendEmailMessage").ITask | import("@chevre/factory/lib/chevre/task/sendOrder").ITask | import("@chevre/factory/lib/chevre/task/triggerWebhook").ITask | import("@chevre/factory/lib/chevre/task/useReservation").ITask | import("@chevre/factory/lib/chevre/task/voidPayTransaction").ITask, "identifier" | "name" | "description" | "project" | "data" | "status" | "runsAt" | "dateAborted" | "executionResults" | "executor" | "lastTriedAt" | "remainingNumberOfTries" | "numberOfTried"> & {
37
38
  expires?: never;
38
39
  } & {
39
40
  _id: import("mongoose").Types.ObjectId;
@@ -47,7 +48,7 @@ export declare class AdminTaskRepo {
47
48
  __v: number;
48
49
  }) | null>;
49
50
  unsetUnnecessaryFields(params: {
50
- filter: FilterQuery<factory.task.ITask<factory.taskName>>;
51
+ filter: FilterQuery<IDocType>;
51
52
  $unset: AnyKeys<factory.task.ITask<factory.taskName>>;
52
53
  }): Promise<import("mongoose").UpdateWriteOpResult>;
53
54
  }
@@ -1,6 +1,7 @@
1
- import { AnyExpression, Connection, Document, FilterQuery, PipelineStage, mongo } from 'mongoose';
1
+ import { AnyExpression, Connection, Document, PipelineStage, mongo } from 'mongoose';
2
+ import type { FilterQuery } from './mongoose/types';
2
3
  import { factory } from '../factory';
3
- import { IDocType as IAggregateOfferDocType } from './mongoose/schemas/aggregateOffer';
4
+ import { IDocType } from './mongoose/schemas/aggregateOffer';
4
5
  type IMatchStage = PipelineStage.Match;
5
6
  type KeyOfUnitPriceOffer = keyof factory.unitPriceOffer.IUnitPriceOffer;
6
7
  type IProjection = Partial<Record<KeyOfUnitPriceOffer, 0 | 1>>;
@@ -54,17 +55,17 @@ export declare class AggregateOfferRepo {
54
55
  };
55
56
  id: string;
56
57
  }): Promise<void>;
57
- getCursor(conditions: any, projection: any): import("mongoose").Cursor<Document<unknown, Record<string, never>, IAggregateOfferDocType, import("./mongoose/virtuals").IVirtuals, {}> & IAggregateOfferDocType & Required<{
58
+ getCursor(conditions: any, projection: any): import("mongoose").Cursor<Document<unknown, Record<string, never>, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & IDocType & Required<{
58
59
  _id: string;
59
60
  }> & {
60
61
  __v: number;
61
- }, import("mongoose").QueryOptions<IAggregateOfferDocType>, (Document<unknown, Record<string, never>, IAggregateOfferDocType, import("./mongoose/virtuals").IVirtuals, {}> & IAggregateOfferDocType & Required<{
62
+ }, import("mongoose").QueryOptions<IDocType>, (Document<unknown, Record<string, never>, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & IDocType & Required<{
62
63
  _id: string;
63
64
  }> & {
64
65
  __v: number;
65
66
  }) | null>;
66
67
  unsetUnnecessaryFields(params: {
67
- filter: FilterQuery<factory.aggregateOffer.IAggregateOffer>;
68
+ filter: FilterQuery<IDocType>;
68
69
  $unset: any;
69
70
  }): Promise<import("mongoose").UpdateWriteOpResult>;
70
71
  save(params: factory.unitPriceOffer.IUnitPriceOffer & {}): Promise<{
@@ -574,7 +574,6 @@ class AggregateOfferRepo {
574
574
  const { productType } = options;
575
575
  const { default: uniqid } = await import('uniqid');
576
576
  const insertBulkWriteOps = [];
577
- // const updateBulkWriteOps: AnyBulkWriteOperation<factory.aggregateOffer.IAggregateOffer>[] = [];
578
577
  const queryFilters = [];
579
578
  if (Array.isArray(params)) {
580
579
  params.forEach((p) => {
@@ -1,4 +1,6 @@
1
- import type { Connection, FilterQuery } from 'mongoose';
1
+ import type { Connection } from 'mongoose';
2
+ import type { FilterQuery } from './mongoose/types';
3
+ import { IDocType } from './mongoose/schemas/assetTransaction';
2
4
  import { factory } from '../factory';
3
5
  type IKeyOfProjection<T extends factory.assetTransactionType> = keyof Pick<factory.assetTransaction.ITransaction<factory.assetTransactionType>, 'agent' | 'endDate' | 'expires' | 'project' | 'startDate' | 'status' | 'typeOf' | 'transactionNumber'> | Exclude<keyof factory.assetTransaction.ITransaction<T>, 'id'>;
4
6
  type AvailableAssetTransactionType = factory.assetTransactionType.CancelReservation | factory.assetTransactionType.Pay | factory.assetTransactionType.Refund | factory.assetTransactionType.Reserve;
@@ -9,7 +11,7 @@ type IFindParams<T extends factory.assetTransactionType> = T extends factory.ass
9
11
  export declare class AssetTransactionRepo {
10
12
  private readonly transactionModel;
11
13
  constructor(connection: Connection);
12
- static CREATE_MONGO_CONDITIONS(params: IFindParams<factory.assetTransactionType>): FilterQuery<import("@chevre/factory/lib/chevre/assetTransaction/cancelReservation").ITransaction | import("@chevre/factory/lib/chevre/assetTransaction/pay").ITransaction | import("@chevre/factory/lib/chevre/assetTransaction/refund").ITransaction | import("@chevre/factory/lib/chevre/assetTransaction/reserve").ITransaction>[];
14
+ static CREATE_MONGO_CONDITIONS(params: IFindParams<factory.assetTransactionType>): FilterQuery<IDocType>[];
13
15
  /**
14
16
  * 取引を開始する
15
17
  */
@@ -1,5 +1,7 @@
1
- import type { Connection, FilterQuery } from 'mongoose';
1
+ import type { Connection } from 'mongoose';
2
+ import type { FilterQuery } from './mongoose/types';
2
3
  import { factory } from '../factory';
4
+ import { IDocType } from './mongoose/schemas/authorization';
3
5
  type IFindValidOneResult = Pick<factory.authorization.IAuthorization, 'object' | 'typeOf' | 'audience' | 'issuedBy'> & {
4
6
  id: string;
5
7
  };
@@ -14,7 +16,7 @@ type IKeyOfProjection = keyof factory.authorization.IAuthorization;
14
16
  export declare class AuthorizationRepo {
15
17
  private readonly authorizationModel;
16
18
  constructor(connection: Connection);
17
- static CREATE_MONGO_CONDITIONS(params: factory.authorization.ISearchConditions): FilterQuery<factory.authorization.IAuthorization>[];
19
+ static CREATE_MONGO_CONDITIONS(params: factory.authorization.ISearchConditions): FilterQuery<IDocType>[];
18
20
  /**
19
21
  * 承認を発行する
20
22
  * コードが自動生成されます
@@ -42,7 +44,7 @@ export declare class AuthorizationRepo {
42
44
  id: string;
43
45
  })[]>;
44
46
  unsetUnnecessaryFields(params: {
45
- filter: FilterQuery<factory.authorization.IAuthorization>;
47
+ filter: FilterQuery<IDocType>;
46
48
  $unset: any;
47
49
  }): Promise<import("mongoose").UpdateWriteOpResult>;
48
50
  /**
@@ -1,4 +1,5 @@
1
- import { AnyExpression, Connection, FilterQuery, Types } from 'mongoose';
1
+ import { AnyExpression, Connection, Types } from 'mongoose';
2
+ import type { FilterQuery } from './mongoose/types';
2
3
  import { IDocType } from './mongoose/schemas/categoryCode';
3
4
  import { factory } from '../factory';
4
5
  type IUnset = {
@@ -14,7 +15,7 @@ type IKeyOfProjectionExceptMovieTicketType = keyof ICategoryCodeExceptMovieTicke
14
15
  export declare class CategoryCodeRepo {
15
16
  private readonly categoryCodeModel;
16
17
  constructor(connection: Connection);
17
- static CREATE_MONGO_CONDITIONS(params: factory.categoryCode.ISearchConditions): FilterQuery<factory.categoryCode.ICategoryCode>[];
18
+ static CREATE_MONGO_CONDITIONS(params: factory.categoryCode.ISearchConditions): FilterQuery<IDocType>[];
18
19
  static CREATE_AGGREGATE_PROJECTION(inclusion: IKeyOfProjection[]): Record<string, AnyExpression>;
19
20
  /**
20
21
  * 区分集計検索(publicな属性検索が目的)
@@ -65,7 +66,7 @@ export declare class CategoryCodeRepo {
65
66
  id: string;
66
67
  };
67
68
  }): Promise<void>;
68
- getCursor(conditions: FilterQuery<factory.categoryCode.ICategoryCode>, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, Record<string, never>, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & IDocType & {
69
+ getCursor(conditions: FilterQuery<IDocType>, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, Record<string, never>, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & IDocType & {
69
70
  _id: Types.ObjectId;
70
71
  } & {
71
72
  __v: number;
@@ -75,7 +76,7 @@ export declare class CategoryCodeRepo {
75
76
  __v: number;
76
77
  }) | null>;
77
78
  unsetUnnecessaryFields(params: {
78
- filter: FilterQuery<factory.categoryCode.ICategoryCode>;
79
+ filter: FilterQuery<IDocType>;
79
80
  $unset: any;
80
81
  }): Promise<import("mongoose").UpdateWriteOpResult>;
81
82
  }
@@ -203,7 +203,6 @@ class CategoryCodeRepo {
203
203
  }
204
204
  async saveCategoryCode(params) {
205
205
  let savedId;
206
- // let doc: HydratedDocument<{ _id: Types.ObjectId }> | null;
207
206
  if (typeof params.id !== 'string') {
208
207
  const { id, $unset, ...creatingDoc } = params.attributes; // eslint-disable-line @typescript-eslint/no-unused-vars
209
208
  const createResult = await this.categoryCodeModel.create(creatingDoc);
@@ -1,4 +1,5 @@
1
- import { Connection, FilterQuery, Types, mongo } from 'mongoose';
1
+ import { Connection, Types, mongo } from 'mongoose';
2
+ import type { FilterQuery } from './mongoose/types';
2
3
  import { factory } from '../factory';
3
4
  import { IDocType } from './mongoose/schemas/creativeWork';
4
5
  type IKeyOfProjection = keyof factory.creativeWork.movie.ICreativeWork;
@@ -8,7 +9,7 @@ type IKeyOfProjection = keyof factory.creativeWork.movie.ICreativeWork;
8
9
  export declare class CreativeWorkRepo {
9
10
  private readonly creativeWorkModel;
10
11
  constructor(connection: Connection);
11
- static CREATE_MONGO_CONDITIONS(params: factory.creativeWork.movie.ISearchConditions): FilterQuery<import("@chevre/factory/lib/chevre/creativeWork/movie").ICreativeWork>[];
12
+ static CREATE_MONGO_CONDITIONS(params: factory.creativeWork.movie.ISearchConditions): FilterQuery<IDocType>[];
12
13
  /**
13
14
  * コンテンツを保管する
14
15
  */
@@ -48,7 +49,7 @@ export declare class CreativeWorkRepo {
48
49
  id: string;
49
50
  };
50
51
  }): Promise<void>;
51
- getCursor(conditions: FilterQuery<factory.creativeWork.movie.ICreativeWork>, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, Record<string, never>, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & Omit<import("@chevre/factory/lib/chevre/creativeWork/movie").ICreativeWork, "id"> & {
52
+ getCursor(conditions: FilterQuery<IDocType>, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, Record<string, never>, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & Omit<import("@chevre/factory/lib/chevre/creativeWork/movie").ICreativeWork, "id"> & {
52
53
  description?: string;
53
54
  } & {
54
55
  _id: Types.ObjectId;
@@ -62,7 +63,7 @@ export declare class CreativeWorkRepo {
62
63
  __v: number;
63
64
  }) | null>;
64
65
  unsetUnnecessaryFields(params: {
65
- filter: FilterQuery<factory.creativeWork.movie.ICreativeWork>;
66
+ filter: FilterQuery<IDocType>;
66
67
  $unset: any;
67
68
  }): Promise<import("mongoose").UpdateWriteOpResult>;
68
69
  }
@@ -116,25 +116,24 @@ class CreativeWorkRepo {
116
116
  */
117
117
  async saveMovie(params) {
118
118
  let savedId;
119
- let doc;
120
119
  if (typeof params.id !== 'string' || params.id === '') {
121
120
  const { $unset, id, ...createParams } = params; // eslint-disable-line @typescript-eslint/no-unused-vars
122
- doc = await this.creativeWorkModel.create(createParams);
123
- savedId = doc.id;
121
+ const createdDoc = await this.creativeWorkModel.create(createParams);
122
+ savedId = createdDoc.id;
124
123
  }
125
124
  else {
126
125
  // 上書き禁止属性を除外
127
126
  const { id, identifier, project, typeOf, $unset, ...setFields } = params; // eslint-disable-line @typescript-eslint/no-unused-vars
128
- doc = await this.creativeWorkModel.findOneAndUpdate({ _id: { $eq: params.id } }, {
127
+ const doc = await this.creativeWorkModel.findOneAndUpdate({ _id: { $eq: params.id } }, {
129
128
  $set: setFields,
130
129
  ...($unset !== undefined) ? { $unset } : undefined
131
130
  }, { upsert: false, new: true, projection: { _id: 1 } })
132
131
  .exec();
132
+ if (doc === null) {
133
+ throw new factory_1.factory.errors.NotFound(this.creativeWorkModel.modelName);
134
+ }
133
135
  savedId = params.id;
134
136
  }
135
- if (doc === null) {
136
- throw new factory_1.factory.errors.NotFound(this.creativeWorkModel.modelName);
137
- }
138
137
  return { id: savedId };
139
138
  }
140
139
  /**
@@ -197,7 +196,7 @@ class CreativeWorkRepo {
197
196
  // project,
198
197
  // identifier
199
198
  // };
200
- // const updateFilter: UpdateFilter<factory.creativeWork.movie.ICreativeWork> = {
199
+ // const updateFilter: UpdateFilter<IDocType> = {
201
200
  // $setOnInsert: setOnInsert,
202
201
  // // 変更可能な属性のみ上書き
203
202
  // $set: {
@@ -211,7 +210,7 @@ class CreativeWorkRepo {
211
210
  // ...(Array.isArray(additionalProperty)) ? { additionalProperty } : []
212
211
  // }
213
212
  // };
214
- // const updateOne: UpdateOneModel<factory.creativeWork.movie.ICreativeWork> = {
213
+ // const updateOne: UpdateOneModel<IDocType> = {
215
214
  // filter,
216
215
  // update: updateFilter,
217
216
  // upsert: true
@@ -1,4 +1,5 @@
1
- import type { Connection, FilterQuery } from 'mongoose';
1
+ import type { Connection } from 'mongoose';
2
+ import type { FilterQuery } from './mongoose/types';
2
3
  import { IDocType } from './mongoose/schemas/customer';
3
4
  import { factory } from '../factory';
4
5
  type IUnset = {
@@ -11,7 +12,7 @@ type IKeyOfProjection = keyof factory.customer.ICustomer;
11
12
  export declare class CustomerRepo {
12
13
  private readonly customerModel;
13
14
  constructor(connection: Connection);
14
- static CREATE_MONGO_CONDITIONS(params: factory.customer.ISearchConditions): FilterQuery<factory.customer.ICustomer>[];
15
+ static CREATE_MONGO_CONDITIONS(params: factory.customer.ISearchConditions): FilterQuery<IDocType>[];
15
16
  save(params: {
16
17
  id?: string;
17
18
  attributes: Omit<factory.customer.ICustomer, 'id'> & {
@@ -1,5 +1,6 @@
1
- import type { Connection, FilterQuery, mongo } from 'mongoose';
2
- import { ICustomerType } from './mongoose/schemas/customerType';
1
+ import type { Connection, mongo } from 'mongoose';
2
+ import type { FilterQuery } from './mongoose/types';
3
+ import { ICustomerType, IDocType } from './mongoose/schemas/customerType';
3
4
  import { factory } from '../factory';
4
5
  type IKeyOfProjection = keyof ICustomerType;
5
6
  /**
@@ -8,7 +9,7 @@ type IKeyOfProjection = keyof ICustomerType;
8
9
  export declare class CustomerTypeRepo {
9
10
  private readonly customerTypeModel;
10
11
  constructor(connection: Connection);
11
- static CREATE_MONGO_CONDITIONS(params: factory.categoryCode.ISearchConditions): FilterQuery<ICustomerType>[];
12
+ static CREATE_MONGO_CONDITIONS(params: factory.categoryCode.ISearchConditions): FilterQuery<IDocType>[];
12
13
  /**
13
14
  * 検索
14
15
  */
@@ -1,4 +1,5 @@
1
- import type { Connection, FilterQuery } from 'mongoose';
1
+ import type { Connection } from 'mongoose';
2
+ import type { FilterQuery } from './mongoose/types';
2
3
  import { IDocType } from './mongoose/schemas/emailMessages';
3
4
  import { factory } from '../factory';
4
5
  export type IEmailMessage = IDocType & {
@@ -1,6 +1,8 @@
1
- import { Connection, FilterQuery } from 'mongoose';
1
+ import { Connection } from 'mongoose';
2
+ import type { FilterQuery } from './mongoose/types';
2
3
  import { factory } from '../factory';
3
4
  import * as EventFactory from '../factory/event';
5
+ import { IDocType } from './mongoose/schemas/event';
4
6
  export type ISearchConditions = Pick<factory.event.screeningEvent.ISearchConditions, 'additionalProperty' | 'endFrom' | 'endThrough' | 'eventStatuses' | 'id' | 'identifiers' | 'inSessionFrom' | 'inSessionThrough' | 'limit' | 'location' | 'offers' | 'organizer' | 'page' | 'project' | 'sort' | 'startFrom' | 'startThrough' | 'superEvent'> & {};
5
7
  export import IMinimizedIndividualEvent = EventFactory.IMinimizedIndividualEvent;
6
8
  type IKeyOfProjection = Exclude<keyof factory.event.screeningEvent.IEvent, 'id'> | 'aggregateOffer' | 'superEvent.location.id' | 'offers.itemOffered' | 'offers.itemOffered.id' | 'offers.typeOf';
@@ -16,7 +18,7 @@ type IKeyOfProjection4minimizedEvent = Exclude<keyof IMinimizedIndividualEvent,
16
18
  export declare class EventRepo {
17
19
  private readonly eventModel;
18
20
  constructor(connection: Connection);
19
- static CREATE_MONGO_CONDITIONS(conditions: ISearchConditions): FilterQuery<factory.event.screeningEvent.IEvent>[];
21
+ static CREATE_MONGO_CONDITIONS(conditions: ISearchConditions): FilterQuery<IDocType>[];
20
22
  /**
21
23
  * イベントを検索する(inclusion projection)
22
24
  */
@@ -1,4 +1,5 @@
1
- import type { Connection, FilterQuery, mongo } from 'mongoose';
1
+ import type { Connection, mongo } from 'mongoose';
2
+ import type { FilterQuery } from './mongoose/types';
2
3
  import { factory } from '../factory';
3
4
  import { IDocType } from './mongoose/schemas/eventOffer';
4
5
  type IUnset = {
@@ -1,5 +1,7 @@
1
- import type { Connection, FilterQuery } from 'mongoose';
1
+ import type { Connection } from 'mongoose';
2
+ import type { FilterQuery } from './mongoose/types';
2
3
  import { factory } from '../factory';
4
+ import { IDocType } from './mongoose/schemas/eventSeries';
3
5
  type ISearchConditions = Pick<factory.eventSeries.ISearchConditions, 'limit' | 'page' | 'sort' | 'additionalProperty' | 'endFrom' | 'endThrough' | 'id' | 'inSessionFrom' | 'inSessionThrough' | 'location' | 'name' | 'organizer' | 'project' | 'startFrom' | 'startThrough' | 'videoFormat' | 'workPerformed' | 'movieIdentifier' | 'movieVersion'>;
4
6
  type IKeyOfProjection = Exclude<keyof factory.eventSeries.IEvent, 'id' | 'videoFormat'>;
5
7
  /**
@@ -8,7 +10,7 @@ type IKeyOfProjection = Exclude<keyof factory.eventSeries.IEvent, 'id' | 'videoF
8
10
  export declare class EventSeriesRepo {
9
11
  private readonly eventSeriesModel;
10
12
  constructor(connection: Connection);
11
- static CREATE_MONGO_CONDITIONS(conditions: ISearchConditions): FilterQuery<factory.eventSeries.IEvent>[];
13
+ static CREATE_MONGO_CONDITIONS(conditions: ISearchConditions): FilterQuery<IDocType>[];
12
14
  /**
13
15
  * イベントを検索する(inclusion projection)
14
16
  */
@@ -1,4 +1,4 @@
1
- import { FilterQuery } from 'mongoose';
1
+ import type { FilterQuery } from '../../mongoose/types';
2
2
  import { factory } from '../../../factory';
3
3
  import { IDocType } from '../../mongoose/schemas/action';
4
4
  export type IFindAnyActionsParams = factory.action.ISearchConditions;
@@ -1,3 +1,4 @@
1
- import type { FilterQuery } from 'mongoose';
1
+ import type { FilterQuery } from '../../mongoose/types';
2
+ import { IDocType } from '../../mongoose/schemas/reservation';
2
3
  import { factory } from '../../../factory';
3
- export declare function createMongoConditions(params: factory.reservation.eventReservation.ISearchConditions): FilterQuery<import("@chevre/factory/lib/chevre/reservation/event").IReservation>[];
4
+ export declare function createMongoConditions(params: factory.reservation.eventReservation.ISearchConditions): FilterQuery<IDocType>[];
@@ -1,4 +1,5 @@
1
- import { Connection, FilterQuery, QueryOptions } from 'mongoose';
1
+ import { Connection, QueryOptions } from 'mongoose';
2
+ import type { FilterQuery } from './mongoose/types';
2
3
  import { factory } from '../factory';
3
4
  import { IDocType } from './mongoose/schemas/identity';
4
5
  type ISavingSoftwareApplicationIdentity = Pick<factory.creativeWork.certification.softwareApplication.ICertification, 'about' | 'project' | 'typeOf'>;
@@ -22,7 +23,7 @@ type IKeyOfProjection = keyof factory.creativeWork.certification.webApplication.
22
23
  export declare class IdentityRepo {
23
24
  private readonly identityModel;
24
25
  constructor(connection: Connection);
25
- static CREATE_FILTER_QUERY(params: factory.creativeWork.certification.webApplication.ISearchConditions): FilterQuery<factory.creativeWork.certification.webApplication.ICertification>[];
26
+ static CREATE_FILTER_QUERY(params: factory.creativeWork.certification.webApplication.ISearchConditions): FilterQuery<IDocType>[];
26
27
  saveIdentity(params: {
27
28
  id?: string;
28
29
  attributes: ISavingIdentity & IUnset;