@chevre/domain 24.0.0-alpha.72 → 24.0.0-alpha.74

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 (94) hide show
  1. package/lib/chevre/credentials.js +3 -26
  2. package/lib/chevre/errorHandler.js +48 -71
  3. package/lib/chevre/eventEmitter.js +17 -7
  4. package/lib/chevre/factory.d.ts +1 -2
  5. package/lib/chevre/factory.js +2 -26
  6. package/lib/chevre/index.js +18 -22
  7. package/lib/chevre/repo/action.d.ts +2 -2
  8. package/lib/chevre/repo/aggregateOffer.js +3 -26
  9. package/lib/chevre/repo/assetTransaction.d.ts +20 -20
  10. package/lib/chevre/repo/comment.d.ts +2 -2
  11. package/lib/chevre/repo/creativeWork.d.ts +3 -3
  12. package/lib/chevre/repo/event.d.ts +5 -5
  13. package/lib/chevre/repo/event.js +17 -7
  14. package/lib/chevre/repo/eventSeries.js +1 -24
  15. package/lib/chevre/repo/factory/reservation/createMongoConditions.d.ts +1 -1
  16. package/lib/chevre/repo/identity.d.ts +4 -4
  17. package/lib/chevre/repo/merchantReturnPolicy.d.ts +4 -4
  18. package/lib/chevre/repo/note.d.ts +1 -1
  19. package/lib/chevre/repo/noteAboutOrder.d.ts +1 -1
  20. package/lib/chevre/repo/offerCatalog.js +3 -26
  21. package/lib/chevre/repo/paymentService.d.ts +1 -1
  22. package/lib/chevre/repo/place/busStop.d.ts +1 -1
  23. package/lib/chevre/repo/place/movieTheater.d.ts +3 -3
  24. package/lib/chevre/repo/place/screeningRoom.d.ts +4 -4
  25. package/lib/chevre/repo/priceSpecification.d.ts +8 -8
  26. package/lib/chevre/repo/reservation.d.ts +2 -2
  27. package/lib/chevre/repo/role.d.ts +9 -9
  28. package/lib/chevre/repo/task.d.ts +1 -1
  29. package/lib/chevre/repo/transaction/placeOrder.d.ts +1 -1
  30. package/lib/chevre/repo/transaction/returnOrder.d.ts +1 -1
  31. package/lib/chevre/repo/transaction.d.ts +31 -31
  32. package/lib/chevre/repository.js +103 -126
  33. package/lib/chevre/service/accountTransaction.js +17 -7
  34. package/lib/chevre/service/aggregation.js +17 -7
  35. package/lib/chevre/service/assetTransaction/cancelReservation/start.d.ts +2 -2
  36. package/lib/chevre/service/assetTransaction/moneyTransfer.js +17 -7
  37. package/lib/chevre/service/assetTransaction/pay/check.js +17 -7
  38. package/lib/chevre/service/assetTransaction/pay/publishPaymentUrl.js +17 -7
  39. package/lib/chevre/service/assetTransaction/pay/searchGMOTrade.js +17 -7
  40. package/lib/chevre/service/assetTransaction/pay/start/processAuthorizeAccount.js +17 -7
  41. package/lib/chevre/service/assetTransaction/pay/start/processAuthorizeCreditCard.js +17 -7
  42. package/lib/chevre/service/assetTransaction/pay/start/processAuthorizeMovieTicket.js +17 -7
  43. package/lib/chevre/service/assetTransaction/registerService.js +17 -7
  44. package/lib/chevre/service/assetTransaction/reserve/start/createSubReservations.js +17 -7
  45. package/lib/chevre/service/assetTransaction/reserve/start.js +17 -7
  46. package/lib/chevre/service/assetTransaction.js +17 -7
  47. package/lib/chevre/service/delivery.js +17 -7
  48. package/lib/chevre/service/moneyTransfer.js +17 -7
  49. package/lib/chevre/service/notification/notifyByEmail.d.ts +1 -1
  50. package/lib/chevre/service/notification/notifyByEmail.js +1 -1
  51. package/lib/chevre/service/notification/sendEmailMessage.js +1 -1
  52. package/lib/chevre/service/notification/triggerWebhook.js +22 -12
  53. package/lib/chevre/service/offer/event/authorize/processStartReserve4chevre.js +17 -7
  54. package/lib/chevre/service/offer/eventServiceByCOA/acceptOffer/authorize.js +2 -2
  55. package/lib/chevre/service/offer/product.js +17 -7
  56. package/lib/chevre/service/offer.js +17 -7
  57. package/lib/chevre/service/order/confirmPayTransaction.js +17 -7
  58. package/lib/chevre/service/order/onOrderStatusChanged/onOrderCancelled/factory.d.ts +1 -1
  59. package/lib/chevre/service/order/onOrderStatusChanged/onOrderDeliveredPartially/factory.d.ts +1 -1
  60. package/lib/chevre/service/order/onOrderStatusChanged/onOrderReturned/factory.d.ts +1 -1
  61. package/lib/chevre/service/payment/any/authorize.js +17 -7
  62. package/lib/chevre/service/payment/any/processVoidPayTransaction.js +17 -7
  63. package/lib/chevre/service/payment/any/publishPaymentUrl.js +17 -7
  64. package/lib/chevre/service/payment/creditCard/authorize/handleAuthorizeError.js +1 -1
  65. package/lib/chevre/service/payment/movieTicket/payMovieTicket/processSeatInfoSync.js +1 -1
  66. package/lib/chevre/service/payment/movieTicket/refundMovieTicket/processSeatInfoSync.js +4 -4
  67. package/lib/chevre/service/payment/movieTicket/refundMovieTicket/processSeatInfoSyncCancel.js +1 -1
  68. package/lib/chevre/service/payment/paymentCard.js +17 -7
  69. package/lib/chevre/service/permit.js +17 -7
  70. package/lib/chevre/service/reserve/factory.d.ts +1 -1
  71. package/lib/chevre/service/reserveCOA/cancelReservation.js +1 -1
  72. package/lib/chevre/service/task/aggregateScreeningEvent.js +17 -7
  73. package/lib/chevre/service/task/deletePerson.js +2 -25
  74. package/lib/chevre/service/task/deleteTransaction.js +17 -7
  75. package/lib/chevre/service/task/givePointAward.js +17 -7
  76. package/lib/chevre/service/task/importEventCapacitiesFromCOA.js +17 -7
  77. package/lib/chevre/service/task/importEventsFromCOA.js +17 -7
  78. package/lib/chevre/service/task/importOffersFromCOA.js +17 -7
  79. package/lib/chevre/service/task/moneyTransfer.js +17 -7
  80. package/lib/chevre/service/task/payment/invalidatePaymentUrlByTask.js +17 -7
  81. package/lib/chevre/service/task/payment/payByTask.js +17 -7
  82. package/lib/chevre/service/task/payment/refundByTask.js +17 -7
  83. package/lib/chevre/service/task/payment/voidPaymentByTask.js +17 -7
  84. package/lib/chevre/service/task/returnPayTransaction.js +17 -7
  85. package/lib/chevre/service/task/returnPointAward.js +17 -7
  86. package/lib/chevre/service/task/returnReserveTransaction.js +17 -7
  87. package/lib/chevre/service/task.js +2 -25
  88. package/lib/chevre/service/taskHandler.js +3 -26
  89. package/lib/chevre/service/transaction/returnOrder/preStart/getReturnPolicyByProject.js +5 -5
  90. package/lib/chevre/service/transaction/returnOrder.d.ts +1 -1
  91. package/lib/chevre/service/transaction.js +17 -7
  92. package/lib/chevre/service.js +33 -23
  93. package/lib/index.js +17 -7
  94. package/package.json +10 -13
@@ -25,14 +25,14 @@ export declare class RoleRepo {
25
25
  };
26
26
  permission: string;
27
27
  }): Promise<(import("mongoose").FlattenMaps<{
28
- typeOf: import("@chevre/factory/lib/role").RoleType;
28
+ typeOf: import("@chevre/factory/lib/chevre/role").RoleType;
29
29
  memberOf: {
30
30
  typeOf: factory.organizationType.Corporation | factory.organizationType.Project;
31
31
  };
32
32
  member: {
33
- typeOf: import("@chevre/factory/lib/role/organizationRole").IMemberType;
33
+ typeOf: import("@chevre/factory/lib/chevre/role/organizationRole").IMemberType;
34
34
  };
35
- roleName: import("@chevre/factory/lib/role/organizationRole").RoleName;
35
+ roleName: import("@chevre/factory/lib/chevre/role/organizationRole").RoleName;
36
36
  permissions: string[];
37
37
  }> & {
38
38
  _id: import("mongoose").Types.ObjectId;
@@ -45,14 +45,14 @@ export declare class RoleRepo {
45
45
  };
46
46
  permission: string;
47
47
  }): Promise<(import("mongoose").FlattenMaps<{
48
- typeOf: import("@chevre/factory/lib/role").RoleType;
48
+ typeOf: import("@chevre/factory/lib/chevre/role").RoleType;
49
49
  memberOf: {
50
50
  typeOf: factory.organizationType.Corporation | factory.organizationType.Project;
51
51
  };
52
52
  member: {
53
- typeOf: import("@chevre/factory/lib/role/organizationRole").IMemberType;
53
+ typeOf: import("@chevre/factory/lib/chevre/role/organizationRole").IMemberType;
54
54
  };
55
- roleName: import("@chevre/factory/lib/role/organizationRole").RoleName;
55
+ roleName: import("@chevre/factory/lib/chevre/role/organizationRole").RoleName;
56
56
  permissions: string[];
57
57
  }> & {
58
58
  _id: import("mongoose").Types.ObjectId;
@@ -60,14 +60,14 @@ export declare class RoleRepo {
60
60
  __v: number;
61
61
  }) | null>;
62
62
  addMember(params: Pick<IRole, 'member' | 'memberOf' | 'roleName'>): Promise<(import("mongoose").FlattenMaps<{
63
- typeOf: import("@chevre/factory/lib/role").RoleType;
63
+ typeOf: import("@chevre/factory/lib/chevre/role").RoleType;
64
64
  memberOf: {
65
65
  typeOf: factory.organizationType.Corporation | factory.organizationType.Project;
66
66
  };
67
67
  member: {
68
- typeOf: import("@chevre/factory/lib/role/organizationRole").IMemberType;
68
+ typeOf: import("@chevre/factory/lib/chevre/role/organizationRole").IMemberType;
69
69
  };
70
- roleName: import("@chevre/factory/lib/role/organizationRole").RoleName;
70
+ roleName: import("@chevre/factory/lib/chevre/role/organizationRole").RoleName;
71
71
  permissions: string[];
72
72
  }> & {
73
73
  _id: import("mongoose").Types.ObjectId;
@@ -31,7 +31,7 @@ type ICreatingTask = Pick<factory.task.IAttributes<factory.taskName>, 'data' | '
31
31
  export declare class TaskRepo {
32
32
  readonly taskModel: IModel;
33
33
  constructor(connection: Connection);
34
- static CREATE_MONGO_CONDITIONS(params: factory.task.ISearchConditions): FilterQuery<import("@chevre/factory/lib/task").ITask | import("@chevre/factory/lib/task/confirmRegisterService").ITask | import("@chevre/factory/lib/task/confirmPayTransaction").ITask | import("@chevre/factory/lib/task/confirmRegisterServiceTransaction").ITask | import("@chevre/factory/lib/task/confirmReserveTransaction").ITask | import("@chevre/factory/lib/task/createAccountingReport").ITask | import("@chevre/factory/lib/task/deletePerson").ITask | import("@chevre/factory/lib/task/deleteTransaction").ITask | import("@chevre/factory/lib/task/givePointAward").ITask | import("@chevre/factory/lib/task/onAssetTransactionStatusChanged").ITask | import("@chevre/factory/lib/task/onAuthorizationCreated").ITask | import("@chevre/factory/lib/task/onEventChanged").ITask | import("@chevre/factory/lib/task/onResourceDeleted").ITask | import("@chevre/factory/lib/task/onResourceUpdated").ITask | import("@chevre/factory/lib/task/onOrderPaymentCompleted").ITask | import("@chevre/factory/lib/task/placeOrder").ITask | import("@chevre/factory/lib/task/returnOrder").ITask | import("@chevre/factory/lib/task/returnPayTransaction").ITask | import("@chevre/factory/lib/task/returnPointAward").ITask | import("@chevre/factory/lib/task/returnReserveTransaction").ITask | import("@chevre/factory/lib/task/sendEmailMessage").ITask | import("@chevre/factory/lib/task/sendOrder").ITask | import("@chevre/factory/lib/task/triggerWebhook").ITask | import("@chevre/factory/lib/task/useReservation").ITask | import("@chevre/factory/lib/task/voidPayTransaction").ITask | import("@chevre/factory/lib/task/voidRegisterServiceTransaction").ITask | import("@chevre/factory/lib/task/voidReserveTransaction").ITask>[];
34
+ static CREATE_MONGO_CONDITIONS(params: factory.task.ISearchConditions): FilterQuery<import("@chevre/factory/lib/chevre/task").ITask | import("@chevre/factory/lib/chevre/task/confirmRegisterService").ITask | import("@chevre/factory/lib/chevre/task/confirmPayTransaction").ITask | import("@chevre/factory/lib/chevre/task/confirmRegisterServiceTransaction").ITask | import("@chevre/factory/lib/chevre/task/confirmReserveTransaction").ITask | import("@chevre/factory/lib/chevre/task/createAccountingReport").ITask | import("@chevre/factory/lib/chevre/task/deletePerson").ITask | import("@chevre/factory/lib/chevre/task/deleteTransaction").ITask | import("@chevre/factory/lib/chevre/task/givePointAward").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/returnPointAward").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 | import("@chevre/factory/lib/chevre/task/voidRegisterServiceTransaction").ITask | import("@chevre/factory/lib/chevre/task/voidReserveTransaction").ITask>[];
35
35
  runImmediately(params: Pick<factory.task.IAttributes<factory.taskName>, 'data' | 'expires' | 'name' | 'project' | 'remainingNumberOfTries' | 'runsAt'> & {
36
36
  alternateName?: never;
37
37
  identifier?: never;
@@ -23,7 +23,7 @@ export type IStartedPlaceOrder = Pick<factory.transaction.ITransaction<factory.t
23
23
  export declare class PlaceOrderRepo {
24
24
  private readonly transactionModel;
25
25
  constructor(connection: Connection);
26
- static CREATE_MONGO_CONDITIONS(params: factory.transaction.ISearchConditions<factory.transactionType.PlaceOrder>): FilterQuery<import("@chevre/factory/lib/transaction/placeOrder").ITransaction>[];
26
+ static CREATE_MONGO_CONDITIONS(params: factory.transaction.ISearchConditions<factory.transactionType.PlaceOrder>): FilterQuery<import("@chevre/factory/lib/chevre/transaction/placeOrder").ITransaction>[];
27
27
  countPlaceOrder(params: factory.transaction.ISearchConditions<factory.transactionType.PlaceOrder>): Promise<{
28
28
  count: number;
29
29
  }>;
@@ -9,7 +9,7 @@ export type IStartedTransaction = Pick<factory.transaction.ITransaction<factory.
9
9
  export declare class ReturnOrderRepo {
10
10
  private readonly transactionModel;
11
11
  constructor(connection: Connection);
12
- static CREATE_MONGO_CONDITIONS(params: factory.transaction.ISearchConditions<factory.transactionType.ReturnOrder>): FilterQuery<import("@chevre/factory/lib/transaction/returnOrder").ITransaction>[];
12
+ static CREATE_MONGO_CONDITIONS(params: factory.transaction.ISearchConditions<factory.transactionType.ReturnOrder>): FilterQuery<import("@chevre/factory/lib/chevre/transaction/returnOrder").ITransaction>[];
13
13
  countReturnOrder(params: factory.transaction.ISearchConditions<factory.transactionType.ReturnOrder>): Promise<{
14
14
  count: number;
15
15
  }>;
@@ -73,7 +73,7 @@ export declare class TransactionRepo {
73
73
  $in: factory.transactionStatusType[];
74
74
  };
75
75
  limit: number;
76
- }): Promise<Pick<import("@chevre/factory/lib/transaction/placeOrder").ITransaction | import("@chevre/factory/lib/transaction/returnOrder").ITransaction, "id" | "typeOf" | "status">[]>;
76
+ }): Promise<Pick<import("@chevre/factory/lib/chevre/transaction/placeOrder").ITransaction | import("@chevre/factory/lib/chevre/transaction/returnOrder").ITransaction, "id" | "typeOf" | "status">[]>;
77
77
  /**
78
78
  * set task status exported by transaction id
79
79
  * IDでタスクをエクスポート済に変更する
@@ -127,77 +127,77 @@ export declare class TransactionRepo {
127
127
  };
128
128
  }): Promise<import("mongodb").DeleteResult>;
129
129
  getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, Record<string, never>, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & (({
130
- object: import("@chevre/factory/lib/transaction/placeOrder").IObject;
130
+ object: import("@chevre/factory/lib/chevre/transaction/placeOrder").IObject;
131
131
  error?: any;
132
- project: import("@chevre/factory/lib/transaction").IProject;
133
- seller: import("@chevre/factory/lib/transaction/placeOrder").ISeller;
132
+ project: import("@chevre/factory/lib/chevre/transaction").IProject;
133
+ seller: import("@chevre/factory/lib/chevre/transaction/placeOrder").ISeller;
134
134
  typeOf: factory.transactionType.PlaceOrder;
135
135
  expires: Date;
136
- result?: import("@chevre/factory/lib/transaction/placeOrder").IResult | undefined;
136
+ result?: import("@chevre/factory/lib/chevre/transaction/placeOrder").IResult | undefined;
137
137
  startDate: Date;
138
138
  endDate?: Date | undefined;
139
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;
140
+ agent: import("@chevre/factory/lib/chevre/transaction/placeOrder").IAgent;
141
+ instrument?: import("@chevre/factory/lib/chevre/transaction/placeOrder").IInstrument | undefined;
142
+ potentialActions?: import("@chevre/factory/lib/chevre/transaction/placeOrder").IPotentialActions | undefined;
143
+ tasksExportAction?: import("@chevre/factory/lib/chevre/transaction").ITasksExportAction | undefined;
144
144
  } & {
145
145
  _id: import("mongoose").Types.ObjectId;
146
146
  } & {
147
147
  __v: number;
148
148
  }) | ({
149
- object: import("@chevre/factory/lib/transaction/returnOrder").IObject;
149
+ object: import("@chevre/factory/lib/chevre/transaction/returnOrder").IObject;
150
150
  error?: any;
151
- project: import("@chevre/factory/lib/transaction").IProject;
152
- seller: import("@chevre/factory/lib/transaction").ISeller;
151
+ project: import("@chevre/factory/lib/chevre/transaction").IProject;
152
+ seller: import("@chevre/factory/lib/chevre/transaction").ISeller;
153
153
  typeOf: factory.transactionType.ReturnOrder;
154
154
  expires: Date;
155
- result?: import("@chevre/factory/lib/transaction/returnOrder").IResult | undefined;
155
+ result?: import("@chevre/factory/lib/chevre/transaction/returnOrder").IResult | undefined;
156
156
  startDate: Date;
157
157
  endDate?: Date | undefined;
158
158
  status: factory.transactionStatusType;
159
- agent: import("@chevre/factory/lib/transaction").IAgent;
160
- potentialActions?: import("@chevre/factory/lib/transaction/returnOrder").IPotentialActions | undefined;
159
+ agent: import("@chevre/factory/lib/chevre/transaction").IAgent;
160
+ potentialActions?: import("@chevre/factory/lib/chevre/transaction/returnOrder").IPotentialActions | undefined;
161
161
  recipient?: undefined;
162
- tasksExportAction?: import("@chevre/factory/lib/transaction").ITasksExportAction | undefined;
162
+ tasksExportAction?: import("@chevre/factory/lib/chevre/transaction").ITasksExportAction | undefined;
163
163
  } & {
164
164
  _id: import("mongoose").Types.ObjectId;
165
165
  } & {
166
166
  __v: number;
167
167
  })), import("mongoose").QueryOptions<IDocType>, (import("mongoose").Document<unknown, Record<string, never>, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & (({
168
- object: import("@chevre/factory/lib/transaction/placeOrder").IObject;
168
+ object: import("@chevre/factory/lib/chevre/transaction/placeOrder").IObject;
169
169
  error?: any;
170
- project: import("@chevre/factory/lib/transaction").IProject;
171
- seller: import("@chevre/factory/lib/transaction/placeOrder").ISeller;
170
+ project: import("@chevre/factory/lib/chevre/transaction").IProject;
171
+ seller: import("@chevre/factory/lib/chevre/transaction/placeOrder").ISeller;
172
172
  typeOf: factory.transactionType.PlaceOrder;
173
173
  expires: Date;
174
- result?: import("@chevre/factory/lib/transaction/placeOrder").IResult | undefined;
174
+ result?: import("@chevre/factory/lib/chevre/transaction/placeOrder").IResult | undefined;
175
175
  startDate: Date;
176
176
  endDate?: Date | undefined;
177
177
  status: factory.transactionStatusType;
178
- agent: import("@chevre/factory/lib/transaction/placeOrder").IAgent;
179
- instrument?: import("@chevre/factory/lib/transaction/placeOrder").IInstrument | undefined;
180
- potentialActions?: import("@chevre/factory/lib/transaction/placeOrder").IPotentialActions | undefined;
181
- tasksExportAction?: import("@chevre/factory/lib/transaction").ITasksExportAction | undefined;
178
+ agent: import("@chevre/factory/lib/chevre/transaction/placeOrder").IAgent;
179
+ instrument?: import("@chevre/factory/lib/chevre/transaction/placeOrder").IInstrument | undefined;
180
+ potentialActions?: import("@chevre/factory/lib/chevre/transaction/placeOrder").IPotentialActions | undefined;
181
+ tasksExportAction?: import("@chevre/factory/lib/chevre/transaction").ITasksExportAction | undefined;
182
182
  } & {
183
183
  _id: import("mongoose").Types.ObjectId;
184
184
  } & {
185
185
  __v: number;
186
186
  }) | ({
187
- object: import("@chevre/factory/lib/transaction/returnOrder").IObject;
187
+ object: import("@chevre/factory/lib/chevre/transaction/returnOrder").IObject;
188
188
  error?: any;
189
- project: import("@chevre/factory/lib/transaction").IProject;
190
- seller: import("@chevre/factory/lib/transaction").ISeller;
189
+ project: import("@chevre/factory/lib/chevre/transaction").IProject;
190
+ seller: import("@chevre/factory/lib/chevre/transaction").ISeller;
191
191
  typeOf: factory.transactionType.ReturnOrder;
192
192
  expires: Date;
193
- result?: import("@chevre/factory/lib/transaction/returnOrder").IResult | undefined;
193
+ result?: import("@chevre/factory/lib/chevre/transaction/returnOrder").IResult | undefined;
194
194
  startDate: Date;
195
195
  endDate?: Date | undefined;
196
196
  status: factory.transactionStatusType;
197
- agent: import("@chevre/factory/lib/transaction").IAgent;
198
- potentialActions?: import("@chevre/factory/lib/transaction/returnOrder").IPotentialActions | undefined;
197
+ agent: import("@chevre/factory/lib/chevre/transaction").IAgent;
198
+ potentialActions?: import("@chevre/factory/lib/chevre/transaction/returnOrder").IPotentialActions | undefined;
199
199
  recipient?: undefined;
200
- tasksExportAction?: import("@chevre/factory/lib/transaction").ITasksExportAction | undefined;
200
+ tasksExportAction?: import("@chevre/factory/lib/chevre/transaction").ITasksExportAction | undefined;
201
201
  } & {
202
202
  _id: import("mongoose").Types.ObjectId;
203
203
  } & {