@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.
Files changed (114) hide show
  1. package/lib/chevre/errorHandler.js +1 -1
  2. package/lib/chevre/repo/accountTitle.d.ts +7 -3
  3. package/lib/chevre/repo/accountTransaction.js +1 -2
  4. package/lib/chevre/repo/action/acceptCOAOffer.js +0 -2
  5. package/lib/chevre/repo/action/actionProcess.d.ts +1 -1
  6. package/lib/chevre/repo/action/actionProcess.js +3 -3
  7. package/lib/chevre/repo/action.d.ts +8 -7
  8. package/lib/chevre/repo/action.js +0 -2
  9. package/lib/chevre/repo/aggregateAction.js +0 -1
  10. package/lib/chevre/repo/aggregateOffer.d.ts +7 -3
  11. package/lib/chevre/repo/assetTransaction.d.ts +46 -25
  12. package/lib/chevre/repo/categoryCode.d.ts +8 -3
  13. package/lib/chevre/repo/comment.d.ts +7 -3
  14. package/lib/chevre/repo/creativeWork.d.ts +8 -7
  15. package/lib/chevre/repo/customer.d.ts +8 -3
  16. package/lib/chevre/repo/event.d.ts +11 -23
  17. package/lib/chevre/repo/event.js +22 -23
  18. package/lib/chevre/repo/eventSeries.d.ts +10 -4
  19. package/lib/chevre/repo/identity.d.ts +12 -3
  20. package/lib/chevre/repo/identityProvider.d.ts +7 -18
  21. package/lib/chevre/repo/issuer.d.ts +8 -8
  22. package/lib/chevre/repo/member.d.ts +7 -3
  23. package/lib/chevre/repo/merchantReturnPolicy.d.ts +7 -3
  24. package/lib/chevre/repo/message.js +1 -1
  25. package/lib/chevre/repo/mongoose/schemas/acceptedPaymentMethod.d.ts +4 -3
  26. package/lib/chevre/repo/mongoose/schemas/account.d.ts +4 -3
  27. package/lib/chevre/repo/mongoose/schemas/accountTitle.d.ts +4 -3
  28. package/lib/chevre/repo/mongoose/schemas/accountTransaction.d.ts +5 -4
  29. package/lib/chevre/repo/mongoose/schemas/accountingReport.d.ts +3 -2
  30. package/lib/chevre/repo/mongoose/schemas/action.d.ts +4 -3
  31. package/lib/chevre/repo/mongoose/schemas/actionRecipe.d.ts +4 -3
  32. package/lib/chevre/repo/mongoose/schemas/additionalProperty.d.ts +5 -4
  33. package/lib/chevre/repo/mongoose/schemas/advanceBookingRequirement.d.ts +3 -2
  34. package/lib/chevre/repo/mongoose/schemas/aggregateOffer.d.ts +4 -3
  35. package/lib/chevre/repo/mongoose/schemas/aggregateOrder.d.ts +3 -2
  36. package/lib/chevre/repo/mongoose/schemas/aggregateReservation.d.ts +4 -3
  37. package/lib/chevre/repo/mongoose/schemas/aggregation.d.ts +4 -3
  38. package/lib/chevre/repo/mongoose/schemas/assetTransaction.d.ts +4 -3
  39. package/lib/chevre/repo/mongoose/schemas/authorization.d.ts +4 -3
  40. package/lib/chevre/repo/mongoose/schemas/categoryCode.d.ts +5 -4
  41. package/lib/chevre/repo/mongoose/schemas/civicStructure.d.ts +3 -2
  42. package/lib/chevre/repo/mongoose/schemas/comments.d.ts +4 -3
  43. package/lib/chevre/repo/mongoose/schemas/creativeWork.d.ts +5 -4
  44. package/lib/chevre/repo/mongoose/schemas/customer.d.ts +5 -4
  45. package/lib/chevre/repo/mongoose/schemas/customerType.d.ts +5 -4
  46. package/lib/chevre/repo/mongoose/schemas/emailMessages.d.ts +4 -3
  47. package/lib/chevre/repo/mongoose/schemas/event.d.ts +3 -2
  48. package/lib/chevre/repo/mongoose/schemas/eventOffer.d.ts +4 -3
  49. package/lib/chevre/repo/mongoose/schemas/eventSeries.d.ts +3 -2
  50. package/lib/chevre/repo/mongoose/schemas/identity.d.ts +4 -3
  51. package/lib/chevre/repo/mongoose/schemas/identityProvider.d.ts +4 -3
  52. package/lib/chevre/repo/mongoose/schemas/issuer.d.ts +4 -3
  53. package/lib/chevre/repo/mongoose/schemas/member/global.d.ts +4 -3
  54. package/lib/chevre/repo/mongoose/schemas/member.d.ts +4 -3
  55. package/lib/chevre/repo/mongoose/schemas/merchantReturnPolicy.d.ts +4 -3
  56. package/lib/chevre/repo/mongoose/schemas/message.d.ts +5 -4
  57. package/lib/chevre/repo/mongoose/schemas/movieTicketTypes.d.ts +4 -3
  58. package/lib/chevre/repo/mongoose/schemas/note.d.ts +3 -2
  59. package/lib/chevre/repo/mongoose/schemas/offerCatalog.d.ts +4 -3
  60. package/lib/chevre/repo/mongoose/schemas/offerCatalogItem.d.ts +4 -3
  61. package/lib/chevre/repo/mongoose/schemas/offerItemCondition.d.ts +5 -4
  62. package/lib/chevre/repo/mongoose/schemas/order.d.ts +4 -3
  63. package/lib/chevre/repo/mongoose/schemas/ownershipInfo.d.ts +5 -4
  64. package/lib/chevre/repo/mongoose/schemas/paymentService.d.ts +4 -3
  65. package/lib/chevre/repo/mongoose/schemas/paymentServiceChannel.d.ts +4 -3
  66. package/lib/chevre/repo/mongoose/schemas/pendingReservation.d.ts +4 -3
  67. package/lib/chevre/repo/mongoose/schemas/pendingReservationAggregate.d.ts +4 -3
  68. package/lib/chevre/repo/mongoose/schemas/place.d.ts +3 -2
  69. package/lib/chevre/repo/mongoose/schemas/potentialAction.d.ts +4 -3
  70. package/lib/chevre/repo/mongoose/schemas/priceSpecification.d.ts +6 -3
  71. package/lib/chevre/repo/mongoose/schemas/product.d.ts +4 -3
  72. package/lib/chevre/repo/mongoose/schemas/productModel.d.ts +5 -4
  73. package/lib/chevre/repo/mongoose/schemas/productOffer.d.ts +3 -2
  74. package/lib/chevre/repo/mongoose/schemas/project.d.ts +4 -3
  75. package/lib/chevre/repo/mongoose/schemas/reservation.d.ts +4 -3
  76. package/lib/chevre/repo/mongoose/schemas/reserveInterface.d.ts +4 -3
  77. package/lib/chevre/repo/mongoose/schemas/role.d.ts +3 -2
  78. package/lib/chevre/repo/mongoose/schemas/schedule.d.ts +5 -4
  79. package/lib/chevre/repo/mongoose/schemas/seller.d.ts +4 -3
  80. package/lib/chevre/repo/mongoose/schemas/sellerReturnPolicy.d.ts +4 -3
  81. package/lib/chevre/repo/mongoose/schemas/service/availableHour.d.ts +3 -2
  82. package/lib/chevre/repo/mongoose/schemas/serviceOutput.d.ts +5 -4
  83. package/lib/chevre/repo/mongoose/schemas/setting.d.ts +4 -3
  84. package/lib/chevre/repo/mongoose/schemas/task.d.ts +4 -3
  85. package/lib/chevre/repo/mongoose/schemas/telemetry.d.ts +4 -3
  86. package/lib/chevre/repo/mongoose/schemas/ticket.d.ts +4 -3
  87. package/lib/chevre/repo/mongoose/schemas/transaction.d.ts +8 -4
  88. package/lib/chevre/repo/mongoose/schemas/transactionNumber.d.ts +3 -2
  89. package/lib/chevre/repo/mongoose/schemas/trip.d.ts +4 -3
  90. package/lib/chevre/repo/mongoose/schemas/webSite.d.ts +4 -3
  91. package/lib/chevre/repo/mongoose/virtuals.d.ts +3 -0
  92. package/lib/chevre/repo/mongoose/virtuals.js +2 -0
  93. package/lib/chevre/repo/movieTicketType.d.ts +2 -1
  94. package/lib/chevre/repo/offerCatalog.d.ts +8 -4
  95. package/lib/chevre/repo/order.d.ts +8 -7
  96. package/lib/chevre/repo/ownershipInfo.d.ts +8 -7
  97. package/lib/chevre/repo/paymentService.d.ts +0 -13
  98. package/lib/chevre/repo/paymentService.js +5 -5
  99. package/lib/chevre/repo/pendingReservation.js +0 -1
  100. package/lib/chevre/repo/place/movieTheater.d.ts +7 -3
  101. package/lib/chevre/repo/place/screeningRoom.d.ts +7 -3
  102. package/lib/chevre/repo/potentialAction.d.ts +7 -26
  103. package/lib/chevre/repo/priceSpecification.d.ts +51 -24
  104. package/lib/chevre/repo/priceSpecification.js +9 -13
  105. package/lib/chevre/repo/product.d.ts +8 -4
  106. package/lib/chevre/repo/project.d.ts +8 -11
  107. package/lib/chevre/repo/reservation.d.ts +14 -13
  108. package/lib/chevre/repo/reserveInterface.js +4 -4
  109. package/lib/chevre/repo/role.d.ts +39 -3
  110. package/lib/chevre/repo/schedule.js +1 -1
  111. package/lib/chevre/repo/seller.d.ts +7 -50
  112. package/lib/chevre/repo/task.d.ts +7 -67
  113. package/lib/chevre/repo/transaction.d.ts +104 -13
  114. package/package.json +3 -3
@@ -1,4 +1,5 @@
1
1
  import type { Connection, FilterQuery } from 'mongoose';
2
+ import { IDocType } from './mongoose/schemas/project';
2
3
  import * as factory from '../factory';
3
4
  type IKeyOfProjection = keyof factory.project.IProject;
4
5
  /**
@@ -49,27 +50,23 @@ export declare class ProjectRepo {
49
50
  deleteById(params: {
50
51
  id: string;
51
52
  }): Promise<void>;
52
- getCursor(conditions: FilterQuery<factory.project.IProject>, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, Omit<factory.project.IProject, "id"> & {
53
- _id: string;
54
- aggregateReservation?: any;
55
- makesOffer?: factory.project.IMakesOffer[];
56
- }> & Omit<factory.project.IProject, "id"> & {
53
+ getCursor(conditions: FilterQuery<factory.project.IProject>, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & Omit<Omit<factory.project.IProject, "id"> & {
57
54
  _id: string;
58
55
  aggregateReservation?: any;
59
56
  makesOffer?: factory.project.IMakesOffer[];
60
57
  } & Required<{
61
58
  _id: string;
62
- }>, import("mongoose").QueryOptions<import("mongoose").Document<unknown, {}, Omit<factory.project.IProject, "id"> & {
63
- _id: string;
64
- aggregateReservation?: any;
65
- makesOffer?: factory.project.IMakesOffer[];
66
- }> & Omit<factory.project.IProject, "id"> & {
59
+ }> & {
60
+ __v: number;
61
+ }, "id"> & import("./mongoose/virtuals").IVirtuals, import("mongoose").QueryOptions<IDocType>, (import("mongoose").Document<unknown, {}, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & Omit<Omit<factory.project.IProject, "id"> & {
67
62
  _id: string;
68
63
  aggregateReservation?: any;
69
64
  makesOffer?: factory.project.IMakesOffer[];
70
65
  } & Required<{
71
66
  _id: string;
72
- }>>>;
67
+ }> & {
68
+ __v: number;
69
+ }, "id"> & import("./mongoose/virtuals").IVirtuals) | null>;
73
70
  unsetUnnecessaryFields(params: {
74
71
  filter: any;
75
72
  $unset: any;
@@ -1,5 +1,6 @@
1
1
  import type { BulkWriteResult } from 'mongodb';
2
2
  import type { Connection, FilterQuery, UpdateWriteOpResult } from 'mongoose';
3
+ import { IDocType } from './mongoose/schemas/reservation';
3
4
  import * as factory from '../factory';
4
5
  export interface IUpdatePartiallyParams {
5
6
  additionalTicketText?: string;
@@ -125,39 +126,39 @@ export declare class ReservationRepo {
125
126
  $in: string[];
126
127
  };
127
128
  }): Promise<string[]>;
128
- getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, (Omit<import("@chevre/factory/lib/reservation/busReservation").IReservation, "id"> | Omit<import("@chevre/factory/lib/reservation/event").IReservation, "id">) & {
129
- _id: string;
130
- bookingAgent?: any;
131
- previousReservationStatus?: factory.reservationStatusType;
132
- }> & ((Omit<import("@chevre/factory/lib/reservation/busReservation").IReservation, "id"> & {
129
+ getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & Omit<(Omit<import("@chevre/factory/lib/reservation/busReservation").IReservation, "id"> & {
133
130
  _id: string;
134
131
  bookingAgent?: any;
135
132
  previousReservationStatus?: factory.reservationStatusType;
136
133
  } & Required<{
137
134
  _id: string;
138
- }>) | (Omit<import("@chevre/factory/lib/reservation/event").IReservation, "id"> & {
135
+ }> & {
136
+ __v: number;
137
+ }) | (Omit<import("@chevre/factory/lib/reservation/event").IReservation, "id"> & {
139
138
  _id: string;
140
139
  bookingAgent?: any;
141
140
  previousReservationStatus?: factory.reservationStatusType;
142
141
  } & Required<{
143
142
  _id: string;
144
- }>)), import("mongoose").QueryOptions<import("mongoose").Document<unknown, {}, (Omit<import("@chevre/factory/lib/reservation/busReservation").IReservation, "id"> | Omit<import("@chevre/factory/lib/reservation/event").IReservation, "id">) & {
145
- _id: string;
146
- bookingAgent?: any;
147
- previousReservationStatus?: factory.reservationStatusType;
148
- }> & ((Omit<import("@chevre/factory/lib/reservation/busReservation").IReservation, "id"> & {
143
+ }> & {
144
+ __v: number;
145
+ }), "id"> & import("./mongoose/virtuals").IVirtuals, import("mongoose").QueryOptions<IDocType>, (import("mongoose").Document<unknown, {}, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & Omit<(Omit<import("@chevre/factory/lib/reservation/busReservation").IReservation, "id"> & {
149
146
  _id: string;
150
147
  bookingAgent?: any;
151
148
  previousReservationStatus?: factory.reservationStatusType;
152
149
  } & Required<{
153
150
  _id: string;
154
- }>) | (Omit<import("@chevre/factory/lib/reservation/event").IReservation, "id"> & {
151
+ }> & {
152
+ __v: number;
153
+ }) | (Omit<import("@chevre/factory/lib/reservation/event").IReservation, "id"> & {
155
154
  _id: string;
156
155
  bookingAgent?: any;
157
156
  previousReservationStatus?: factory.reservationStatusType;
158
157
  } & Required<{
159
158
  _id: string;
160
- }>))>>;
159
+ }> & {
160
+ __v: number;
161
+ }), "id"> & import("./mongoose/virtuals").IVirtuals) | null>;
161
162
  unsetUnnecessaryFields(params: {
162
163
  filter: any;
163
164
  $unset: any;
@@ -29,9 +29,9 @@ class ReserveInterfaceRepo {
29
29
  return this.reserveInterface.findOne(filterQuery, {
30
30
  _id: 0,
31
31
  id: { $toString: '$_id' },
32
- project: '$project',
33
- availableChannel: '$availableChannel',
34
- typeOf: '$typeOf'
32
+ project: 1,
33
+ availableChannel: 1,
34
+ typeOf: 1
35
35
  })
36
36
  .lean()
37
37
  .exec();
@@ -40,7 +40,7 @@ class ReserveInterfaceRepo {
40
40
  return this.reserveInterface.findOne({}, {
41
41
  _id: 0,
42
42
  id: { $toString: '$_id' },
43
- project: '$project'
43
+ project: 1
44
44
  })
45
45
  .lean()
46
46
  .exec();
@@ -24,19 +24,55 @@ export declare class RoleRepo {
24
24
  $eq: factory.role.organizationRole.RoleName;
25
25
  };
26
26
  permission: string;
27
- }): Promise<(import("mongoose").FlattenMaps<IDocType> & {
27
+ }): Promise<(import("mongoose").FlattenMaps<{
28
+ typeOf: import("@chevre/factory/lib/role").RoleType;
29
+ memberOf: {
30
+ typeOf: factory.organizationType.Corporation | factory.organizationType.Project;
31
+ };
32
+ member: {
33
+ typeOf: import("@chevre/factory/lib/role/organizationRole").IMemberType;
34
+ };
35
+ roleName: import("@chevre/factory/lib/role/organizationRole").RoleName;
36
+ permissions: string[];
37
+ }> & {
28
38
  _id: import("mongoose").Types.ObjectId;
39
+ } & {
40
+ __v: number;
29
41
  }) | null>;
30
42
  removePermissionIfExists(params: {
31
43
  roleName: {
32
44
  $eq: factory.role.organizationRole.RoleName;
33
45
  };
34
46
  permission: string;
35
- }): Promise<(import("mongoose").FlattenMaps<IDocType> & {
47
+ }): Promise<(import("mongoose").FlattenMaps<{
48
+ typeOf: import("@chevre/factory/lib/role").RoleType;
49
+ memberOf: {
50
+ typeOf: factory.organizationType.Corporation | factory.organizationType.Project;
51
+ };
52
+ member: {
53
+ typeOf: import("@chevre/factory/lib/role/organizationRole").IMemberType;
54
+ };
55
+ roleName: import("@chevre/factory/lib/role/organizationRole").RoleName;
56
+ permissions: string[];
57
+ }> & {
36
58
  _id: import("mongoose").Types.ObjectId;
59
+ } & {
60
+ __v: number;
37
61
  }) | null>;
38
- addMember(params: Pick<IRole, 'member' | 'memberOf' | 'roleName'>): Promise<(import("mongoose").FlattenMaps<IDocType> & {
62
+ addMember(params: Pick<IRole, 'member' | 'memberOf' | 'roleName'>): Promise<(import("mongoose").FlattenMaps<{
63
+ typeOf: import("@chevre/factory/lib/role").RoleType;
64
+ memberOf: {
65
+ typeOf: factory.organizationType.Corporation | factory.organizationType.Project;
66
+ };
67
+ member: {
68
+ typeOf: import("@chevre/factory/lib/role/organizationRole").IMemberType;
69
+ };
70
+ roleName: import("@chevre/factory/lib/role/organizationRole").RoleName;
71
+ permissions: string[];
72
+ }> & {
39
73
  _id: import("mongoose").Types.ObjectId;
74
+ } & {
75
+ __v: number;
40
76
  }) | null>;
41
77
  create(params: Pick<IRole, 'member' | 'memberOf' | 'permissions' | 'roleName'>): Promise<{
42
78
  id: string;
@@ -34,7 +34,7 @@ class ScheduleRepo {
34
34
  return this.scheduleModel.findOne({}, {
35
35
  _id: 0,
36
36
  id: { $toString: '$_id' },
37
- project: '$project'
37
+ project: 1
38
38
  })
39
39
  .lean()
40
40
  .exec();
@@ -1,4 +1,5 @@
1
1
  import { AnyExpression, Connection, FilterQuery, QueryOptions, Types } from 'mongoose';
2
+ import { IDocType } from './mongoose/schemas/seller';
2
3
  import * as factory from '../factory';
3
4
  export type ISellerWithId = Pick<factory.seller.ISeller, 'additionalProperty' | 'branchCode' | 'hasMerchantReturnPolicy' | 'id' | 'makesOffer' | 'name' | 'project' | 'telephone' | 'typeOf' | 'url'> & {
4
5
  id: string;
@@ -75,59 +76,15 @@ export declare class SellerRepo {
75
76
  id: string;
76
77
  makesOffer: factory.seller.IMakesOffer;
77
78
  }): Promise<void>;
78
- getCursor(conditions: FilterQuery<factory.seller.ISeller>, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, {
79
- url?: string | undefined;
80
- project: Pick<factory.project.IProject, "id" | "typeOf">;
81
- name: import("@chevre/factory/lib/multilingualString").IMultilingualString;
82
- typeOf: factory.organizationType.Corporation;
83
- additionalProperty?: import("@chevre/factory/lib/propertyValue").IPropertyValue<string>[] | undefined;
84
- location?: factory.organization.ILocation | undefined;
85
- telephone?: string | undefined;
86
- branchCode: string;
87
- hasMerchantReturnPolicy?: factory.seller.IHasMerchantReturnPolicy | undefined;
88
- makesOffer?: factory.seller.IMakesOffer[] | undefined;
89
- paymentAccepted?: factory.seller.IPaymentAccepted[] | undefined;
90
- }> & {
91
- url?: string | undefined;
92
- project: Pick<factory.project.IProject, "id" | "typeOf">;
93
- name: import("@chevre/factory/lib/multilingualString").IMultilingualString;
94
- typeOf: factory.organizationType.Corporation;
95
- additionalProperty?: import("@chevre/factory/lib/propertyValue").IPropertyValue<string>[] | undefined;
96
- location?: factory.organization.ILocation | undefined;
97
- telephone?: string | undefined;
98
- branchCode: string;
99
- hasMerchantReturnPolicy?: factory.seller.IHasMerchantReturnPolicy | undefined;
100
- makesOffer?: factory.seller.IMakesOffer[] | undefined;
101
- paymentAccepted?: factory.seller.IPaymentAccepted[] | undefined;
102
- } & {
79
+ getCursor(conditions: FilterQuery<factory.seller.ISeller>, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & Omit<IDocType & {
103
80
  _id: Types.ObjectId;
104
- }, QueryOptions<import("mongoose").Document<unknown, {}, {
105
- url?: string | undefined;
106
- project: Pick<factory.project.IProject, "id" | "typeOf">;
107
- name: import("@chevre/factory/lib/multilingualString").IMultilingualString;
108
- typeOf: factory.organizationType.Corporation;
109
- additionalProperty?: import("@chevre/factory/lib/propertyValue").IPropertyValue<string>[] | undefined;
110
- location?: factory.organization.ILocation | undefined;
111
- telephone?: string | undefined;
112
- branchCode: string;
113
- hasMerchantReturnPolicy?: factory.seller.IHasMerchantReturnPolicy | undefined;
114
- makesOffer?: factory.seller.IMakesOffer[] | undefined;
115
- paymentAccepted?: factory.seller.IPaymentAccepted[] | undefined;
116
- }> & {
117
- url?: string | undefined;
118
- project: Pick<factory.project.IProject, "id" | "typeOf">;
119
- name: import("@chevre/factory/lib/multilingualString").IMultilingualString;
120
- typeOf: factory.organizationType.Corporation;
121
- additionalProperty?: import("@chevre/factory/lib/propertyValue").IPropertyValue<string>[] | undefined;
122
- location?: factory.organization.ILocation | undefined;
123
- telephone?: string | undefined;
124
- branchCode: string;
125
- hasMerchantReturnPolicy?: factory.seller.IHasMerchantReturnPolicy | undefined;
126
- makesOffer?: factory.seller.IMakesOffer[] | undefined;
127
- paymentAccepted?: factory.seller.IPaymentAccepted[] | undefined;
128
81
  } & {
82
+ __v: number;
83
+ }, "id"> & import("./mongoose/virtuals").IVirtuals, QueryOptions<IDocType>, (import("mongoose").Document<unknown, {}, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & Omit<IDocType & {
129
84
  _id: Types.ObjectId;
130
- }>>;
85
+ } & {
86
+ __v: number;
87
+ }, "id"> & import("./mongoose/virtuals").IVirtuals) | null>;
131
88
  unsetUnnecessaryFields(params: {
132
89
  filter: any;
133
90
  $unset: any;
@@ -1,7 +1,7 @@
1
1
  import type { AnyKeys, Connection, FilterQuery, ProjectionType, UpdateWriteOpResult } from 'mongoose';
2
2
  import { INextFunction } from '../eventEmitter/task';
3
3
  import * as factory from '../factory';
4
- import { IModel } from './mongoose/schemas/task';
4
+ import { IModel, IDocType } from './mongoose/schemas/task';
5
5
  import type { IExecutableTask } from '../taskSettings';
6
6
  interface IAggregationByStatus {
7
7
  taskCount: number;
@@ -229,75 +229,15 @@ export declare class TaskRepo {
229
229
  }): Promise<{
230
230
  count: number;
231
231
  }>;
232
- getCursor(conditions: FilterQuery<factory.task.ITask<factory.taskName>>, projection: ProjectionType<factory.task.ITask<factory.taskName>>): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, {
233
- project: Pick<factory.project.IProject, "id" | "typeOf">;
234
- identifier?: string | undefined;
235
- name: factory.taskName;
236
- description?: string | undefined;
237
- alternateName?: string | undefined;
238
- expires?: Date | undefined;
239
- data: import("@chevre/factory/lib/task").IData;
240
- status: factory.taskStatus;
241
- runsAt: Date;
242
- dateAborted?: Date | undefined;
243
- remainingNumberOfTries: number;
244
- lastTriedAt?: Date | undefined;
245
- numberOfTried: number;
246
- executionResults: import("@chevre/factory/lib/task").IExecutionResult[];
247
- executor?: import("@chevre/factory/lib/task").IExecutor | undefined;
248
- }> & {
249
- project: Pick<factory.project.IProject, "id" | "typeOf">;
250
- identifier?: string | undefined;
251
- name: factory.taskName;
252
- description?: string | undefined;
253
- alternateName?: string | undefined;
254
- expires?: Date | undefined;
255
- data: import("@chevre/factory/lib/task").IData;
256
- status: factory.taskStatus;
257
- runsAt: Date;
258
- dateAborted?: Date | undefined;
259
- remainingNumberOfTries: number;
260
- lastTriedAt?: Date | undefined;
261
- numberOfTried: number;
262
- executionResults: import("@chevre/factory/lib/task").IExecutionResult[];
263
- executor?: import("@chevre/factory/lib/task").IExecutor | undefined;
264
- } & {
232
+ getCursor(conditions: FilterQuery<factory.task.ITask<factory.taskName>>, projection: ProjectionType<factory.task.ITask<factory.taskName>>): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & Omit<IDocType & {
265
233
  _id: import("mongoose").Types.ObjectId;
266
- }, import("mongoose").QueryOptions<import("mongoose").Document<unknown, {}, {
267
- project: Pick<factory.project.IProject, "id" | "typeOf">;
268
- identifier?: string | undefined;
269
- name: factory.taskName;
270
- description?: string | undefined;
271
- alternateName?: string | undefined;
272
- expires?: Date | undefined;
273
- data: import("@chevre/factory/lib/task").IData;
274
- status: factory.taskStatus;
275
- runsAt: Date;
276
- dateAborted?: Date | undefined;
277
- remainingNumberOfTries: number;
278
- lastTriedAt?: Date | undefined;
279
- numberOfTried: number;
280
- executionResults: import("@chevre/factory/lib/task").IExecutionResult[];
281
- executor?: import("@chevre/factory/lib/task").IExecutor | undefined;
282
- }> & {
283
- project: Pick<factory.project.IProject, "id" | "typeOf">;
284
- identifier?: string | undefined;
285
- name: factory.taskName;
286
- description?: string | undefined;
287
- alternateName?: string | undefined;
288
- expires?: Date | undefined;
289
- data: import("@chevre/factory/lib/task").IData;
290
- status: factory.taskStatus;
291
- runsAt: Date;
292
- dateAborted?: Date | undefined;
293
- remainingNumberOfTries: number;
294
- lastTriedAt?: Date | undefined;
295
- numberOfTried: number;
296
- executionResults: import("@chevre/factory/lib/task").IExecutionResult[];
297
- executor?: import("@chevre/factory/lib/task").IExecutor | undefined;
298
234
  } & {
235
+ __v: number;
236
+ }, "id"> & import("./mongoose/virtuals").IVirtuals, import("mongoose").QueryOptions<IDocType>, (import("mongoose").Document<unknown, {}, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & Omit<IDocType & {
299
237
  _id: import("mongoose").Types.ObjectId;
300
- }>>;
238
+ } & {
239
+ __v: number;
240
+ }, "id"> & import("./mongoose/virtuals").IVirtuals) | null>;
301
241
  unsetUnnecessaryFields(params: {
302
242
  filter: FilterQuery<factory.task.ITask<factory.taskName>>;
303
243
  $unset: AnyKeys<factory.task.ITask<factory.taskName>>;
@@ -1,5 +1,6 @@
1
1
  import type { Connection } from 'mongoose';
2
2
  import * as factory from '../factory';
3
+ import { IDocType } from './mongoose/schemas/transaction';
3
4
  interface IAggregationByStatus {
4
5
  transactionCount: number;
5
6
  avgDuration: number;
@@ -125,31 +126,121 @@ export declare class TransactionRepo {
125
126
  $lt: Date;
126
127
  };
127
128
  }): Promise<import("mongodb").DeleteResult>;
128
- getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, import("@chevre/factory/lib/transaction/placeOrder").ITransaction | import("@chevre/factory/lib/transaction/moneyTransfer").ITransaction | import("@chevre/factory/lib/transaction/returnOrder").ITransaction> & ((import("@chevre/factory/lib/transaction/placeOrder").IAttributes & {
129
- id: string;
129
+ getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & Omit<({
130
+ object: import("@chevre/factory/lib/transaction/placeOrder").IObject;
131
+ error?: any;
132
+ project: import("@chevre/factory/lib/transaction").IProject;
133
+ seller: import("@chevre/factory/lib/transaction/placeOrder").ISeller;
134
+ typeOf: factory.transactionType.PlaceOrder;
135
+ expires: Date;
136
+ result?: import("@chevre/factory/lib/transaction/placeOrder").IResult | undefined;
137
+ startDate: Date;
138
+ endDate?: Date | undefined;
139
+ status: factory.transactionStatusType;
140
+ agent: import("@chevre/factory/lib/transaction/placeOrder").IAgent;
141
+ instrument?: import("@chevre/factory/lib/transaction/placeOrder").IInstrument | undefined;
142
+ potentialActions?: import("@chevre/factory/lib/transaction/placeOrder").IPotentialActions | undefined;
143
+ tasksExportAction?: import("@chevre/factory/lib/transaction").ITasksExportAction | undefined;
130
144
  } & {
131
145
  _id: import("mongoose").Types.ObjectId;
132
- }) | (import("@chevre/factory/lib/transaction/moneyTransfer").IAttributes & {
133
- id: string;
146
+ } & {
147
+ __v: number;
148
+ }) | ({
149
+ object: import("@chevre/factory/lib/transaction/returnOrder").IObject;
150
+ error?: any;
151
+ project: import("@chevre/factory/lib/transaction").IProject;
152
+ seller: import("@chevre/factory/lib/transaction").ISeller;
153
+ typeOf: factory.transactionType.ReturnOrder;
154
+ expires: Date;
155
+ result?: import("@chevre/factory/lib/transaction/returnOrder").IResult | undefined;
156
+ startDate: Date;
157
+ endDate?: Date | undefined;
158
+ status: factory.transactionStatusType;
159
+ agent: import("@chevre/factory/lib/transaction").IAgent;
160
+ potentialActions?: import("@chevre/factory/lib/transaction/returnOrder").IPotentialActions | undefined;
161
+ recipient?: undefined;
162
+ tasksExportAction?: import("@chevre/factory/lib/transaction").ITasksExportAction | undefined;
134
163
  } & {
135
164
  _id: import("mongoose").Types.ObjectId;
136
- }) | (import("@chevre/factory/lib/transaction/returnOrder").IAttributes & {
137
- id: string;
165
+ } & {
166
+ __v: number;
167
+ }) | ({
168
+ object: import("@chevre/factory/lib/transaction/moneyTransfer").IObject;
169
+ error?: any;
170
+ project: import("@chevre/factory/lib/transaction").IProject;
171
+ seller: import("@chevre/factory/lib/transaction").ISeller;
172
+ typeOf: factory.transactionType.MoneyTransfer;
173
+ expires: Date;
174
+ result?: any;
175
+ startDate: Date;
176
+ endDate?: Date | undefined;
177
+ status: factory.transactionStatusType;
178
+ agent: import("@chevre/factory/lib/transaction").IAgent;
179
+ potentialActions?: import("@chevre/factory/lib/transaction/moneyTransfer").IPotentialActions | undefined;
180
+ recipient: import("@chevre/factory/lib/transaction/moneyTransfer").IRecipient;
181
+ tasksExportAction?: import("@chevre/factory/lib/transaction").ITasksExportAction | undefined;
138
182
  } & {
139
183
  _id: import("mongoose").Types.ObjectId;
140
- })), import("mongoose").QueryOptions<import("mongoose").Document<unknown, {}, import("@chevre/factory/lib/transaction/placeOrder").ITransaction | import("@chevre/factory/lib/transaction/moneyTransfer").ITransaction | import("@chevre/factory/lib/transaction/returnOrder").ITransaction> & ((import("@chevre/factory/lib/transaction/placeOrder").IAttributes & {
141
- id: string;
184
+ } & {
185
+ __v: number;
186
+ }), "id"> & import("./mongoose/virtuals").IVirtuals, import("mongoose").QueryOptions<IDocType>, (import("mongoose").Document<unknown, {}, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & Omit<({
187
+ object: import("@chevre/factory/lib/transaction/placeOrder").IObject;
188
+ error?: any;
189
+ project: import("@chevre/factory/lib/transaction").IProject;
190
+ seller: import("@chevre/factory/lib/transaction/placeOrder").ISeller;
191
+ typeOf: factory.transactionType.PlaceOrder;
192
+ expires: Date;
193
+ result?: import("@chevre/factory/lib/transaction/placeOrder").IResult | undefined;
194
+ startDate: Date;
195
+ endDate?: Date | undefined;
196
+ status: factory.transactionStatusType;
197
+ agent: import("@chevre/factory/lib/transaction/placeOrder").IAgent;
198
+ instrument?: import("@chevre/factory/lib/transaction/placeOrder").IInstrument | undefined;
199
+ potentialActions?: import("@chevre/factory/lib/transaction/placeOrder").IPotentialActions | undefined;
200
+ tasksExportAction?: import("@chevre/factory/lib/transaction").ITasksExportAction | undefined;
142
201
  } & {
143
202
  _id: import("mongoose").Types.ObjectId;
144
- }) | (import("@chevre/factory/lib/transaction/moneyTransfer").IAttributes & {
145
- id: string;
203
+ } & {
204
+ __v: number;
205
+ }) | ({
206
+ object: import("@chevre/factory/lib/transaction/returnOrder").IObject;
207
+ error?: any;
208
+ project: import("@chevre/factory/lib/transaction").IProject;
209
+ seller: import("@chevre/factory/lib/transaction").ISeller;
210
+ typeOf: factory.transactionType.ReturnOrder;
211
+ expires: Date;
212
+ result?: import("@chevre/factory/lib/transaction/returnOrder").IResult | undefined;
213
+ startDate: Date;
214
+ endDate?: Date | undefined;
215
+ status: factory.transactionStatusType;
216
+ agent: import("@chevre/factory/lib/transaction").IAgent;
217
+ potentialActions?: import("@chevre/factory/lib/transaction/returnOrder").IPotentialActions | undefined;
218
+ recipient?: undefined;
219
+ tasksExportAction?: import("@chevre/factory/lib/transaction").ITasksExportAction | undefined;
146
220
  } & {
147
221
  _id: import("mongoose").Types.ObjectId;
148
- }) | (import("@chevre/factory/lib/transaction/returnOrder").IAttributes & {
149
- id: string;
222
+ } & {
223
+ __v: number;
224
+ }) | ({
225
+ object: import("@chevre/factory/lib/transaction/moneyTransfer").IObject;
226
+ error?: any;
227
+ project: import("@chevre/factory/lib/transaction").IProject;
228
+ seller: import("@chevre/factory/lib/transaction").ISeller;
229
+ typeOf: factory.transactionType.MoneyTransfer;
230
+ expires: Date;
231
+ result?: any;
232
+ startDate: Date;
233
+ endDate?: Date | undefined;
234
+ status: factory.transactionStatusType;
235
+ agent: import("@chevre/factory/lib/transaction").IAgent;
236
+ potentialActions?: import("@chevre/factory/lib/transaction/moneyTransfer").IPotentialActions | undefined;
237
+ recipient: import("@chevre/factory/lib/transaction/moneyTransfer").IRecipient;
238
+ tasksExportAction?: import("@chevre/factory/lib/transaction").ITasksExportAction | undefined;
150
239
  } & {
151
240
  _id: import("mongoose").Types.ObjectId;
152
- }))>>;
241
+ } & {
242
+ __v: number;
243
+ }), "id"> & import("./mongoose/virtuals").IVirtuals) | null>;
153
244
  aggregatePlaceOrder(params: {
154
245
  project?: {
155
246
  id?: {
package/package.json CHANGED
@@ -54,7 +54,7 @@
54
54
  "googleapis": "^85.0.0",
55
55
  "jose": "6.0.12",
56
56
  "json2csv": "4.5.4",
57
- "mongoose": "8.0.4",
57
+ "mongoose": "8.23.0",
58
58
  "redis": "4.6.5",
59
59
  "rimraf": "^2.7.1",
60
60
  "size-limit": "12.0.0",
@@ -63,7 +63,7 @@
63
63
  "vitest": "4.0.18"
64
64
  },
65
65
  "peerDependencies": {
66
- "mongoose": "^8.0.0",
66
+ "mongoose": "^8.23.0",
67
67
  "redis": "^4.6.5"
68
68
  },
69
69
  "engines": {
@@ -99,5 +99,5 @@
99
99
  "postversion": "git push origin --tags",
100
100
  "prepublishOnly": "npm run clean && npm run build"
101
101
  },
102
- "version": "24.0.0-alpha.27"
102
+ "version": "24.0.0-alpha.29"
103
103
  }