@chevre/domain 21.2.0-alpha.6 → 21.2.0-alpha.60

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 (232) hide show
  1. package/example/src/chevre/aggregation/aggregateSystem.ts +58 -31
  2. package/example/src/chevre/countDelayedTasks.ts +17 -0
  3. package/example/src/chevre/countDelayedTransactions.ts +60 -0
  4. package/example/src/chevre/countMoneyTransferTransaction.ts +36 -0
  5. package/example/src/chevre/createManyEventsIfNotExist.ts +4 -1
  6. package/example/src/chevre/deleteTasksByName.ts +2 -1
  7. package/example/src/chevre/importEventsFromCOA.ts +3 -4
  8. package/example/src/chevre/migrateOrderAdditionalProperties.ts +85 -0
  9. package/example/src/chevre/migrateStockHolderKeys.ts +89 -0
  10. package/example/src/chevre/saveTasks.ts +13 -10
  11. package/example/src/chevre/searchAbortedTasks.ts +36 -0
  12. package/example/src/chevre/searchSendEmailActions.ts +44 -0
  13. package/example/src/chevre/task/executeTasks.ts +26 -0
  14. package/example/src/chevre/transaction/findCreditCard.ts +1 -1
  15. package/example/src/chevre/transaction/orderMembershipService.ts +1 -1
  16. package/example/src/chevre/transaction/startExportTasks.ts +20 -0
  17. package/example/src/chevre/updateTransaction.ts +1 -1
  18. package/lib/chevre/credentials.d.ts +1 -0
  19. package/lib/chevre/credentials.js +2 -1
  20. package/lib/chevre/eventEmitter/assetTransaction.d.ts +21 -0
  21. package/lib/chevre/eventEmitter/assetTransaction.js +25 -0
  22. package/lib/chevre/eventEmitter/task.d.ts +18 -0
  23. package/lib/chevre/eventEmitter/task.js +25 -0
  24. package/lib/chevre/eventEmitter/transaction.d.ts +21 -0
  25. package/lib/chevre/eventEmitter/transaction.js +25 -0
  26. package/lib/chevre/eventEmitter.d.ts +4 -0
  27. package/lib/chevre/eventEmitter.js +9 -0
  28. package/lib/chevre/index.d.ts +3 -2
  29. package/lib/chevre/index.js +5 -3
  30. package/lib/chevre/repo/account.js +0 -4
  31. package/lib/chevre/repo/accountTitle.js +0 -4
  32. package/lib/chevre/repo/accountTransaction.d.ts +3 -11
  33. package/lib/chevre/repo/accountTransaction.js +1 -58
  34. package/lib/chevre/repo/accountingReport.js +0 -4
  35. package/lib/chevre/repo/action.d.ts +29 -1
  36. package/lib/chevre/repo/action.js +32 -29
  37. package/lib/chevre/repo/additionalProperty.js +0 -4
  38. package/lib/chevre/repo/aggregation.js +0 -4
  39. package/lib/chevre/repo/assetTransaction.d.ts +23 -8
  40. package/lib/chevre/repo/assetTransaction.js +207 -68
  41. package/lib/chevre/repo/categoryCode.js +0 -4
  42. package/lib/chevre/repo/code.js +0 -4
  43. package/lib/chevre/repo/comment.d.ts +4 -1
  44. package/lib/chevre/repo/comment.js +20 -9
  45. package/lib/chevre/repo/confirmationNumber.d.ts +0 -1
  46. package/lib/chevre/repo/confirmationNumber.js +3 -15
  47. package/lib/chevre/repo/creativeWork.d.ts +1 -3
  48. package/lib/chevre/repo/creativeWork.js +0 -4
  49. package/lib/chevre/repo/customer.js +0 -4
  50. package/lib/chevre/repo/emailMessage.d.ts +1 -27
  51. package/lib/chevre/repo/emailMessage.js +0 -4
  52. package/lib/chevre/repo/event.d.ts +5 -1
  53. package/lib/chevre/repo/event.js +0 -4
  54. package/lib/chevre/repo/member.js +0 -4
  55. package/lib/chevre/repo/merchantReturnPolicy.d.ts +1 -3
  56. package/lib/chevre/repo/merchantReturnPolicy.js +0 -4
  57. package/lib/chevre/repo/mongoose/schemas/account.d.ts +5 -2
  58. package/lib/chevre/repo/mongoose/schemas/account.js +1 -0
  59. package/lib/chevre/repo/mongoose/schemas/accountTitle.d.ts +30 -3
  60. package/lib/chevre/repo/mongoose/schemas/accountTitle.js +1 -0
  61. package/lib/chevre/repo/mongoose/schemas/accountTransaction.d.ts +32 -3
  62. package/lib/chevre/repo/mongoose/schemas/accountTransaction.js +2 -1
  63. package/lib/chevre/repo/mongoose/schemas/accountingReport.d.ts +14 -3
  64. package/lib/chevre/repo/mongoose/schemas/accountingReport.js +1 -0
  65. package/lib/chevre/repo/mongoose/schemas/action.d.ts +44 -3
  66. package/lib/chevre/repo/mongoose/schemas/action.js +2 -1
  67. package/lib/chevre/repo/mongoose/schemas/additionalProperty.d.ts +18 -3
  68. package/lib/chevre/repo/mongoose/schemas/additionalProperty.js +1 -0
  69. package/lib/chevre/repo/mongoose/schemas/aggregation.d.ts +5 -2
  70. package/lib/chevre/repo/mongoose/schemas/aggregation.js +1 -0
  71. package/lib/chevre/repo/mongoose/schemas/assetTransaction.d.ts +45 -3
  72. package/lib/chevre/repo/mongoose/schemas/assetTransaction.js +3 -1
  73. package/lib/chevre/repo/mongoose/schemas/authorization.d.ts +20 -3
  74. package/lib/chevre/repo/mongoose/schemas/authorization.js +2 -1
  75. package/lib/chevre/repo/mongoose/schemas/categoryCode.d.ts +26 -3
  76. package/lib/chevre/repo/mongoose/schemas/categoryCode.js +1 -0
  77. package/lib/chevre/repo/mongoose/schemas/comments.d.ts +28 -3
  78. package/lib/chevre/repo/mongoose/schemas/comments.js +2 -1
  79. package/lib/chevre/repo/mongoose/schemas/creativeWork.d.ts +44 -3
  80. package/lib/chevre/repo/mongoose/schemas/creativeWork.js +1 -0
  81. package/lib/chevre/repo/mongoose/schemas/customer.d.ts +26 -3
  82. package/lib/chevre/repo/mongoose/schemas/customer.js +1 -0
  83. package/lib/chevre/repo/mongoose/schemas/emailMessages.d.ts +22 -3
  84. package/lib/chevre/repo/mongoose/schemas/emailMessages.js +1 -0
  85. package/lib/chevre/repo/mongoose/schemas/event.d.ts +72 -3
  86. package/lib/chevre/repo/mongoose/schemas/event.js +1 -0
  87. package/lib/chevre/repo/mongoose/schemas/member.d.ts +14 -3
  88. package/lib/chevre/repo/mongoose/schemas/member.js +1 -0
  89. package/lib/chevre/repo/mongoose/schemas/merchantReturnPolicy.d.ts +22 -3
  90. package/lib/chevre/repo/mongoose/schemas/merchantReturnPolicy.js +1 -0
  91. package/lib/chevre/repo/mongoose/schemas/offer.d.ts +66 -3
  92. package/lib/chevre/repo/mongoose/schemas/offer.js +1 -0
  93. package/lib/chevre/repo/mongoose/schemas/offerCatalog.d.ts +28 -3
  94. package/lib/chevre/repo/mongoose/schemas/offerCatalog.js +1 -0
  95. package/lib/chevre/repo/mongoose/schemas/offerItemCondition.d.ts +74 -0
  96. package/lib/chevre/repo/mongoose/schemas/offerItemCondition.js +45 -0
  97. package/lib/chevre/repo/mongoose/schemas/order.d.ts +52 -3
  98. package/lib/chevre/repo/mongoose/schemas/order.js +2 -1
  99. package/lib/chevre/repo/mongoose/schemas/ownershipInfo.d.ts +26 -3
  100. package/lib/chevre/repo/mongoose/schemas/ownershipInfo.js +2 -1
  101. package/lib/chevre/repo/mongoose/schemas/place.d.ts +50 -3
  102. package/lib/chevre/repo/mongoose/schemas/place.js +1 -0
  103. package/lib/chevre/repo/mongoose/schemas/priceSpecification.d.ts +30 -3
  104. package/lib/chevre/repo/mongoose/schemas/priceSpecification.js +1 -0
  105. package/lib/chevre/repo/mongoose/schemas/product.d.ts +32 -3
  106. package/lib/chevre/repo/mongoose/schemas/product.js +1 -0
  107. package/lib/chevre/repo/mongoose/schemas/project.d.ts +24 -3
  108. package/lib/chevre/repo/mongoose/schemas/project.js +1 -0
  109. package/lib/chevre/repo/mongoose/schemas/reservation.d.ts +62 -3
  110. package/lib/chevre/repo/mongoose/schemas/reservation.js +2 -1
  111. package/lib/chevre/repo/mongoose/schemas/role.d.ts +12 -3
  112. package/lib/chevre/repo/mongoose/schemas/role.js +1 -0
  113. package/lib/chevre/repo/mongoose/schemas/seller.d.ts +32 -3
  114. package/lib/chevre/repo/mongoose/schemas/seller.js +1 -0
  115. package/lib/chevre/repo/mongoose/schemas/serviceOutput.d.ts +12 -3
  116. package/lib/chevre/repo/mongoose/schemas/serviceOutput.js +2 -1
  117. package/lib/chevre/repo/mongoose/schemas/task.d.ts +31 -3
  118. package/lib/chevre/repo/mongoose/schemas/task.js +3 -1
  119. package/lib/chevre/repo/mongoose/schemas/telemetry.d.ts +22 -3
  120. package/lib/chevre/repo/mongoose/schemas/telemetry.js +1 -0
  121. package/lib/chevre/repo/mongoose/schemas/transaction.d.ts +41 -3
  122. package/lib/chevre/repo/mongoose/schemas/transaction.js +3 -1
  123. package/lib/chevre/repo/mongoose/schemas/trip.d.ts +12 -3
  124. package/lib/chevre/repo/mongoose/schemas/trip.js +1 -0
  125. package/lib/chevre/repo/offer.js +0 -5
  126. package/lib/chevre/repo/offerCatalog.js +0 -4
  127. package/lib/chevre/repo/offerItemCondition.d.ts +39 -0
  128. package/lib/chevre/repo/offerItemCondition.js +112 -0
  129. package/lib/chevre/repo/order.d.ts +25 -0
  130. package/lib/chevre/repo/order.js +5 -4
  131. package/lib/chevre/repo/ownershipInfo.js +0 -4
  132. package/lib/chevre/repo/permit.js +0 -4
  133. package/lib/chevre/repo/place.js +0 -4
  134. package/lib/chevre/repo/priceSpecification.js +0 -4
  135. package/lib/chevre/repo/product.js +0 -4
  136. package/lib/chevre/repo/project.js +0 -4
  137. package/lib/chevre/repo/reservation.js +0 -4
  138. package/lib/chevre/repo/role.js +0 -4
  139. package/lib/chevre/repo/seller.js +0 -4
  140. package/lib/chevre/repo/serviceOutput.js +0 -4
  141. package/lib/chevre/repo/stockHolder.js +30 -0
  142. package/lib/chevre/repo/task.d.ts +41 -2
  143. package/lib/chevre/repo/task.js +97 -12
  144. package/lib/chevre/repo/telemetry.js +0 -4
  145. package/lib/chevre/repo/transaction.d.ts +23 -3
  146. package/lib/chevre/repo/transaction.js +174 -58
  147. package/lib/chevre/repo/trip.js +0 -4
  148. package/lib/chevre/repository.d.ts +5 -2
  149. package/lib/chevre/repository.js +8 -4
  150. package/lib/chevre/service/aggregation/system.d.ts +67 -22
  151. package/lib/chevre/service/aggregation/system.js +101 -89
  152. package/lib/chevre/service/assetTransaction/cancelReservation.js +23 -25
  153. package/lib/chevre/service/assetTransaction/moneyTransfer.js +23 -21
  154. package/lib/chevre/service/assetTransaction/pay/potentialActions.js +17 -1
  155. package/lib/chevre/service/assetTransaction/pay.js +32 -24
  156. package/lib/chevre/service/assetTransaction/refund.js +23 -21
  157. package/lib/chevre/service/assetTransaction/registerService.js +23 -22
  158. package/lib/chevre/service/assetTransaction/reserve.js +23 -21
  159. package/lib/chevre/service/assetTransaction.d.ts +6 -2
  160. package/lib/chevre/service/assetTransaction.js +9 -5
  161. package/lib/chevre/service/event.js +3 -1
  162. package/lib/chevre/service/notification/factory.js +2 -2
  163. package/lib/chevre/service/notification.d.ts +3 -1
  164. package/lib/chevre/service/notification.js +41 -7
  165. package/lib/chevre/service/offer/event/voidTransaction.d.ts +2 -0
  166. package/lib/chevre/service/offer/event/voidTransaction.js +17 -1
  167. package/lib/chevre/service/offer.js +1 -1
  168. package/lib/chevre/service/order/deleteOrder.js +8 -8
  169. package/lib/chevre/service/order/onOrderStatusChanged/factory.js +25 -36
  170. package/lib/chevre/service/order/onOrderStatusChanged.js +1 -1
  171. package/lib/chevre/service/order/placeOrder.js +1 -1
  172. package/lib/chevre/service/order/returnOrder.js +1 -5
  173. package/lib/chevre/service/order/sendOrder.js +1 -1
  174. package/lib/chevre/service/payment/any/onPaid.js +1 -1
  175. package/lib/chevre/service/payment/any/onRefund.js +1 -1
  176. package/lib/chevre/service/payment/any.js +60 -10
  177. package/lib/chevre/service/payment/movieTicket/validation.d.ts +3 -2
  178. package/lib/chevre/service/payment/movieTicket/validation.js +12 -25
  179. package/lib/chevre/service/payment/movieTicket.d.ts +1 -1
  180. package/lib/chevre/service/payment/movieTicket.js +4 -3
  181. package/lib/chevre/service/product.js +1 -5
  182. package/lib/chevre/service/report/telemetry.d.ts +0 -11
  183. package/lib/chevre/service/report/telemetry.js +21 -24
  184. package/lib/chevre/service/reserve/cancelReservation.js +0 -2
  185. package/lib/chevre/service/reserve/potentialActions/onReservationCanceled.d.ts +0 -3
  186. package/lib/chevre/service/reserve/potentialActions/onReservationCanceled.js +20 -20
  187. package/lib/chevre/service/reserve/potentialActions/onReservationCheckedIn.js +2 -3
  188. package/lib/chevre/service/reserve/potentialActions/onReservationConfirmed.js +2 -31
  189. package/lib/chevre/service/reserve/potentialActions/onReservationUsed.js +2 -3
  190. package/lib/chevre/service/reserve/useReservation.js +1 -8
  191. package/lib/chevre/service/task/confirmRegisterServiceTransaction.js +1 -1
  192. package/lib/chevre/service/task/deleteTransaction.js +10 -8
  193. package/lib/chevre/service/task/importOffersFromCOA.js +4 -0
  194. package/lib/chevre/service/task/returnPayTransaction.js +2 -12
  195. package/lib/chevre/service/task/voidReserveTransaction.js +3 -1
  196. package/lib/chevre/service/task.d.ts +9 -0
  197. package/lib/chevre/service/task.js +43 -4
  198. package/lib/chevre/service/transaction/deleteTransaction.d.ts +21 -0
  199. package/lib/chevre/service/transaction/deleteTransaction.js +226 -0
  200. package/lib/chevre/service/transaction/moneyTransfer/exportTasks/factory.js +11 -1
  201. package/lib/chevre/service/transaction/moneyTransfer/factory.js +3 -1
  202. package/lib/chevre/service/transaction/moneyTransfer/potentialActions.d.ts +1 -0
  203. package/lib/chevre/service/transaction/moneyTransfer/potentialActions.js +1 -1
  204. package/lib/chevre/service/transaction/moneyTransfer.js +9 -12
  205. package/lib/chevre/service/transaction/orderProgramMembership.js +2 -1
  206. package/lib/chevre/service/transaction/placeOrder/exportTasks/factory.js +42 -30
  207. package/lib/chevre/service/transaction/placeOrder.js +1 -5
  208. package/lib/chevre/service/transaction/placeOrderInProgress/factory.js +1 -1
  209. package/lib/chevre/service/transaction/placeOrderInProgress/potentialActions/moneyTransfer.d.ts +1 -0
  210. package/lib/chevre/service/transaction/placeOrderInProgress/potentialActions/moneyTransfer.js +1 -1
  211. package/lib/chevre/service/transaction/placeOrderInProgress/potentialActions/registerService.d.ts +1 -0
  212. package/lib/chevre/service/transaction/placeOrderInProgress/potentialActions/registerService.js +1 -1
  213. package/lib/chevre/service/transaction/placeOrderInProgress/potentialActions.d.ts +1 -0
  214. package/lib/chevre/service/transaction/placeOrderInProgress/result/acceptedOffers.d.ts +3 -0
  215. package/lib/chevre/service/transaction/placeOrderInProgress/result/acceptedOffers.js +7 -3
  216. package/lib/chevre/service/transaction/placeOrderInProgress/result.d.ts +1 -0
  217. package/lib/chevre/service/transaction/placeOrderInProgress/result.js +2 -2
  218. package/lib/chevre/service/transaction/placeOrderInProgress/validation/validateMovieTicket.d.ts +1 -1
  219. package/lib/chevre/service/transaction/placeOrderInProgress/validation/validateMovieTicket.js +2 -2
  220. package/lib/chevre/service/transaction/placeOrderInProgress/validation.d.ts +2 -1
  221. package/lib/chevre/service/transaction/placeOrderInProgress/validation.js +23 -17
  222. package/lib/chevre/service/transaction/placeOrderInProgress.d.ts +1 -3
  223. package/lib/chevre/service/transaction/placeOrderInProgress.js +22 -11
  224. package/lib/chevre/service/transaction/returnOrder/exportTasks/factory.js +10 -1
  225. package/lib/chevre/service/transaction/returnOrder.js +1 -5
  226. package/lib/chevre/service/transaction.d.ts +8 -13
  227. package/lib/chevre/service/transaction.js +12 -145
  228. package/lib/chevre/settings.d.ts +6 -1
  229. package/lib/chevre/settings.js +17 -5
  230. package/package.json +5 -5
  231. package/example/src/chevre/migrateMoneyTransferPendingTransactionIdentifier.ts +0 -96
  232. package/example/src/chevre/migrateMovieAdditionalProperties.ts +0 -98
@@ -27,12 +27,13 @@ declare const modelName = "Project";
27
27
  /**
28
28
  * プロジェクトスキーマ
29
29
  */
30
- declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").ResolveSchemaOptions<{
30
+ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
31
31
  collection: string;
32
32
  id: true;
33
33
  read: string;
34
34
  writeConcern: import("mongodb").WriteConcern;
35
35
  strict: true;
36
+ strictQuery: false;
36
37
  useNestedStrict: boolean;
37
38
  timestamps: {
38
39
  createdAt: string;
@@ -50,7 +51,7 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
50
51
  minimize: false;
51
52
  versionKey: false;
52
53
  };
53
- }>, {
54
+ }, {
54
55
  typeOf: string;
55
56
  _id?: string | undefined;
56
57
  name?: string | undefined;
@@ -59,5 +60,25 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
59
60
  aggregateReservation?: any;
60
61
  settings?: any;
61
62
  subscription?: any;
62
- }>;
63
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
64
+ typeOf: string;
65
+ _id?: string | undefined;
66
+ name?: string | undefined;
67
+ alternateName?: string | undefined;
68
+ logo?: string | undefined;
69
+ aggregateReservation?: any;
70
+ settings?: any;
71
+ subscription?: any;
72
+ }>> & Omit<import("mongoose").FlatRecord<{
73
+ typeOf: string;
74
+ _id?: string | undefined;
75
+ name?: string | undefined;
76
+ alternateName?: string | undefined;
77
+ logo?: string | undefined;
78
+ aggregateReservation?: any;
79
+ settings?: any;
80
+ subscription?: any;
81
+ }> & Required<{
82
+ _id: string;
83
+ }>, never>>;
63
84
  export { modelName, schema };
@@ -26,6 +26,7 @@ const schema = new mongoose_1.Schema({
26
26
  read: 'primaryPreferred',
27
27
  writeConcern: writeConcern_1.writeConcern,
28
28
  strict: true,
29
+ strictQuery: false,
29
30
  useNestedStrict: true,
30
31
  timestamps: {
31
32
  createdAt: 'createdAt',
@@ -27,12 +27,13 @@ declare const modelName = "Reservation";
27
27
  /**
28
28
  * 予約スキーマ
29
29
  */
30
- declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").ResolveSchemaOptions<{
30
+ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
31
31
  collection: string;
32
32
  id: true;
33
33
  read: string;
34
34
  writeConcern: import("mongodb").WriteConcern;
35
35
  strict: true;
36
+ strictQuery: false;
36
37
  useNestedStrict: boolean;
37
38
  timestamps: {
38
39
  createdAt: string;
@@ -50,7 +51,7 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
50
51
  minimize: false;
51
52
  versionKey: false;
52
53
  };
53
- }>, {
54
+ }, {
54
55
  typeOf: string;
55
56
  reservationNumber: string;
56
57
  reservationStatus: string;
@@ -78,5 +79,63 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
78
79
  confirmReservationUrl?: string | undefined;
79
80
  modifyReservationUrl?: string | undefined;
80
81
  previousReservationStatus?: string | undefined;
81
- }>;
82
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
83
+ typeOf: string;
84
+ reservationNumber: string;
85
+ reservationStatus: string;
86
+ checkedIn: boolean;
87
+ attended: boolean;
88
+ _id?: string | undefined;
89
+ project?: any;
90
+ additionalProperty?: any;
91
+ reservationFor?: any;
92
+ price?: any;
93
+ priceCurrency?: string | undefined;
94
+ issuedThrough?: any;
95
+ reservedTicket?: any;
96
+ subReservation?: any;
97
+ additionalTicketText?: string | undefined;
98
+ bookingTime?: Date | undefined;
99
+ broker?: any;
100
+ modifiedTime?: Date | undefined;
101
+ numSeats?: number | undefined;
102
+ programMembershipUsed?: any;
103
+ underName?: any;
104
+ bookingAgent?: any;
105
+ cancelReservationUrl?: string | undefined;
106
+ checkinUrl?: string | undefined;
107
+ confirmReservationUrl?: string | undefined;
108
+ modifyReservationUrl?: string | undefined;
109
+ previousReservationStatus?: string | undefined;
110
+ }>> & Omit<import("mongoose").FlatRecord<{
111
+ typeOf: string;
112
+ reservationNumber: string;
113
+ reservationStatus: string;
114
+ checkedIn: boolean;
115
+ attended: boolean;
116
+ _id?: string | undefined;
117
+ project?: any;
118
+ additionalProperty?: any;
119
+ reservationFor?: any;
120
+ price?: any;
121
+ priceCurrency?: string | undefined;
122
+ issuedThrough?: any;
123
+ reservedTicket?: any;
124
+ subReservation?: any;
125
+ additionalTicketText?: string | undefined;
126
+ bookingTime?: Date | undefined;
127
+ broker?: any;
128
+ modifiedTime?: Date | undefined;
129
+ numSeats?: number | undefined;
130
+ programMembershipUsed?: any;
131
+ underName?: any;
132
+ bookingAgent?: any;
133
+ cancelReservationUrl?: string | undefined;
134
+ checkinUrl?: string | undefined;
135
+ confirmReservationUrl?: string | undefined;
136
+ modifyReservationUrl?: string | undefined;
137
+ previousReservationStatus?: string | undefined;
138
+ }> & Required<{
139
+ _id: string;
140
+ }>, never>>;
82
141
  export { modelName, schema };
@@ -48,9 +48,10 @@ const schema = new mongoose_1.Schema({
48
48
  }, {
49
49
  collection: 'reservations',
50
50
  id: true,
51
- read: 'primaryPreferred',
51
+ read: 'primary',
52
52
  writeConcern: writeConcern_1.writeConcern,
53
53
  strict: true,
54
+ strictQuery: false,
54
55
  useNestedStrict: true,
55
56
  timestamps: {
56
57
  createdAt: 'createdAt',
@@ -27,12 +27,13 @@ declare const modelName = "Role";
27
27
  /**
28
28
  * ロールスキーマ
29
29
  */
30
- declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").ResolveSchemaOptions<{
30
+ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
31
31
  collection: string;
32
32
  id: true;
33
33
  read: string;
34
34
  writeConcern: import("mongodb").WriteConcern;
35
35
  strict: false;
36
+ strictQuery: false;
36
37
  useNestedStrict: boolean;
37
38
  timestamps: {
38
39
  createdAt: string;
@@ -50,8 +51,16 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
50
51
  minimize: false;
51
52
  versionKey: false;
52
53
  };
53
- }>, {
54
+ }, {
54
55
  permissions: string[];
55
56
  typeOf?: string | undefined;
56
- }>;
57
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
58
+ permissions: string[];
59
+ typeOf?: string | undefined;
60
+ }>> & Omit<import("mongoose").FlatRecord<{
61
+ permissions: string[];
62
+ typeOf?: string | undefined;
63
+ }> & {
64
+ _id: import("mongoose").Types.ObjectId;
65
+ }, never>>;
57
66
  export { modelName, schema };
@@ -17,6 +17,7 @@ const schema = new mongoose_1.Schema({
17
17
  read: 'primaryPreferred',
18
18
  writeConcern: writeConcern_1.writeConcern,
19
19
  strict: false,
20
+ strictQuery: false,
20
21
  useNestedStrict: true,
21
22
  timestamps: {
22
23
  createdAt: 'createdAt',
@@ -27,12 +27,13 @@ declare const modelName = "Seller";
27
27
  /**
28
28
  * 販売者スキーマ
29
29
  */
30
- declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").ResolveSchemaOptions<{
30
+ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
31
31
  collection: string;
32
32
  id: true;
33
33
  read: string;
34
34
  writeConcern: import("mongodb").WriteConcern;
35
35
  strict: true;
36
+ strictQuery: false;
36
37
  useNestedStrict: boolean;
37
38
  timestamps: {
38
39
  createdAt: string;
@@ -50,7 +51,7 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
50
51
  minimize: false;
51
52
  versionKey: false;
52
53
  };
53
- }>, {
54
+ }, {
54
55
  typeOf: string;
55
56
  additionalProperty: any[];
56
57
  hasMerchantReturnPolicy: any[];
@@ -63,5 +64,33 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
63
64
  branchCode?: string | undefined;
64
65
  telephone?: string | undefined;
65
66
  parentOrganization?: any;
66
- }>;
67
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
68
+ typeOf: string;
69
+ additionalProperty: any[];
70
+ hasMerchantReturnPolicy: any[];
71
+ areaServed: any[];
72
+ makesOffer: any[];
73
+ paymentAccepted: any[];
74
+ name?: any;
75
+ url?: string | undefined;
76
+ project?: any;
77
+ branchCode?: string | undefined;
78
+ telephone?: string | undefined;
79
+ parentOrganization?: any;
80
+ }>> & Omit<import("mongoose").FlatRecord<{
81
+ typeOf: string;
82
+ additionalProperty: any[];
83
+ hasMerchantReturnPolicy: any[];
84
+ areaServed: any[];
85
+ makesOffer: any[];
86
+ paymentAccepted: any[];
87
+ name?: any;
88
+ url?: string | undefined;
89
+ project?: any;
90
+ branchCode?: string | undefined;
91
+ telephone?: string | undefined;
92
+ parentOrganization?: any;
93
+ }> & {
94
+ _id: import("mongoose").Types.ObjectId;
95
+ }, never>>;
67
96
  export { modelName, schema };
@@ -30,6 +30,7 @@ const schema = new mongoose_1.Schema({
30
30
  read: 'primaryPreferred',
31
31
  writeConcern: writeConcern_1.writeConcern,
32
32
  strict: true,
33
+ strictQuery: false,
33
34
  useNestedStrict: true,
34
35
  timestamps: {
35
36
  createdAt: 'createdAt',
@@ -27,12 +27,13 @@ declare const modelName = "ServiceOutput";
27
27
  /**
28
28
  * 許可証スキーマ
29
29
  */
30
- declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").ResolveSchemaOptions<{
30
+ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
31
31
  collection: string;
32
32
  id: true;
33
33
  read: string;
34
34
  writeConcern: import("mongodb").WriteConcern;
35
35
  strict: false;
36
+ strictQuery: false;
36
37
  useNestedStrict: boolean;
37
38
  timestamps: {
38
39
  createdAt: string;
@@ -50,8 +51,16 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
50
51
  minimize: false;
51
52
  versionKey: false;
52
53
  };
53
- }>, {
54
+ }, {
54
55
  typeOf: string;
55
56
  project?: any;
56
- }>;
57
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
58
+ typeOf: string;
59
+ project?: any;
60
+ }>> & Omit<import("mongoose").FlatRecord<{
61
+ typeOf: string;
62
+ project?: any;
63
+ }> & {
64
+ _id: import("mongoose").Types.ObjectId;
65
+ }, never>>;
57
66
  export { modelName, schema };
@@ -17,9 +17,10 @@ const schema = new mongoose_1.Schema({
17
17
  }, {
18
18
  collection: 'serviceOutputs',
19
19
  id: true,
20
- read: 'primaryPreferred',
20
+ read: 'primary',
21
21
  writeConcern: writeConcern_1.writeConcern,
22
22
  strict: false,
23
+ strictQuery: false,
23
24
  useNestedStrict: true,
24
25
  timestamps: {
25
26
  createdAt: 'createdAt',
@@ -27,12 +27,13 @@ declare const modelName = "Task";
27
27
  /**
28
28
  * タスクスキーマ
29
29
  */
30
- declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").ResolveSchemaOptions<{
30
+ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
31
31
  collection: string;
32
32
  id: true;
33
33
  read: string;
34
34
  writeConcern: import("mongodb").WriteConcern;
35
35
  strict: true;
36
+ strictQuery: false;
36
37
  useNestedStrict: boolean;
37
38
  timestamps: {
38
39
  createdAt: string;
@@ -50,7 +51,7 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
50
51
  minimize: false;
51
52
  versionKey: false;
52
53
  };
53
- }>, {
54
+ }, {
54
55
  executionResults: any[];
55
56
  name?: string | undefined;
56
57
  status?: string | undefined;
@@ -60,6 +61,33 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
60
61
  remainingNumberOfTries?: number | undefined;
61
62
  lastTriedAt?: Date | undefined;
62
63
  numberOfTried?: number | undefined;
64
+ executor?: any;
63
65
  dateAborted?: Date | undefined;
64
- }>;
66
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
67
+ executionResults: any[];
68
+ name?: string | undefined;
69
+ status?: string | undefined;
70
+ data?: any;
71
+ project?: any;
72
+ runsAt?: Date | undefined;
73
+ remainingNumberOfTries?: number | undefined;
74
+ lastTriedAt?: Date | undefined;
75
+ numberOfTried?: number | undefined;
76
+ executor?: any;
77
+ dateAborted?: Date | undefined;
78
+ }>> & Omit<import("mongoose").FlatRecord<{
79
+ executionResults: any[];
80
+ name?: string | undefined;
81
+ status?: string | undefined;
82
+ data?: any;
83
+ project?: any;
84
+ runsAt?: Date | undefined;
85
+ remainingNumberOfTries?: number | undefined;
86
+ lastTriedAt?: Date | undefined;
87
+ numberOfTried?: number | undefined;
88
+ executor?: any;
89
+ dateAborted?: Date | undefined;
90
+ }> & {
91
+ _id: import("mongoose").Types.ObjectId;
92
+ }, never>>;
65
93
  export { modelName, schema };
@@ -17,14 +17,16 @@ const schema = new mongoose_1.Schema({
17
17
  lastTriedAt: Date,
18
18
  numberOfTried: Number,
19
19
  executionResults: [mongoose_1.SchemaTypes.Mixed],
20
+ executor: mongoose_1.SchemaTypes.Mixed,
20
21
  data: mongoose_1.SchemaTypes.Mixed,
21
22
  dateAborted: Date
22
23
  }, {
23
24
  collection: 'tasks',
24
25
  id: true,
25
- read: 'primaryPreferred',
26
+ read: 'primary',
26
27
  writeConcern: writeConcern_1.writeConcern,
27
28
  strict: true,
29
+ strictQuery: false,
28
30
  useNestedStrict: true,
29
31
  timestamps: {
30
32
  createdAt: 'createdAt',
@@ -27,12 +27,13 @@ declare const modelName = "Telemetry";
27
27
  /**
28
28
  * 測定スキーマ
29
29
  */
30
- declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").ResolveSchemaOptions<{
30
+ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
31
31
  collection: string;
32
32
  id: true;
33
33
  read: string;
34
34
  writeConcern: import("mongodb").WriteConcern;
35
35
  strict: true;
36
+ strictQuery: false;
36
37
  useNestedStrict: boolean;
37
38
  timestamps: {
38
39
  createdAt: string;
@@ -50,13 +51,31 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
50
51
  minimize: false;
51
52
  versionKey: false;
52
53
  };
53
- }>, {
54
+ }, {
54
55
  object?: any;
55
56
  error?: any;
57
+ result?: any;
58
+ project?: any;
59
+ startDate?: Date | undefined;
60
+ endDate?: Date | undefined;
61
+ purpose?: any;
62
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
63
+ object?: any;
64
+ error?: any;
65
+ result?: any;
56
66
  project?: any;
57
67
  startDate?: Date | undefined;
58
68
  endDate?: Date | undefined;
69
+ purpose?: any;
70
+ }>> & Omit<import("mongoose").FlatRecord<{
71
+ object?: any;
72
+ error?: any;
59
73
  result?: any;
74
+ project?: any;
75
+ startDate?: Date | undefined;
76
+ endDate?: Date | undefined;
60
77
  purpose?: any;
61
- }>;
78
+ }> & {
79
+ _id: import("mongoose").Types.ObjectId;
80
+ }, never>>;
62
81
  export { modelName, schema };
@@ -22,6 +22,7 @@ const schema = new mongoose_1.Schema({
22
22
  read: 'primaryPreferred',
23
23
  writeConcern: writeConcern_1.writeConcern,
24
24
  strict: true,
25
+ strictQuery: false,
25
26
  useNestedStrict: true,
26
27
  timestamps: {
27
28
  createdAt: 'createdAt',
@@ -27,12 +27,13 @@ declare const modelName = "Transaction";
27
27
  /**
28
28
  * 取引スキーマ
29
29
  */
30
- declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").ResolveSchemaOptions<{
30
+ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
31
31
  collection: string;
32
32
  id: true;
33
33
  read: string;
34
34
  writeConcern: import("mongodb").WriteConcern;
35
35
  strict: true;
36
+ strictQuery: false;
36
37
  useNestedStrict: boolean;
37
38
  timestamps: {
38
39
  createdAt: string;
@@ -50,11 +51,29 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
50
51
  minimize: false;
51
52
  versionKey: false;
52
53
  };
53
- }>, {
54
+ }, {
54
55
  object?: any;
56
+ error?: any;
55
57
  typeOf?: string | undefined;
56
58
  status?: string | undefined;
59
+ result?: any;
60
+ expires?: Date | undefined;
61
+ project?: any;
62
+ agent?: any;
63
+ recipient?: any;
64
+ startDate?: Date | undefined;
65
+ endDate?: Date | undefined;
66
+ potentialActions?: any;
67
+ tasksExportationStatus?: string | undefined;
68
+ tasksExportedAt?: Date | undefined;
69
+ seller?: any;
70
+ tasksExportAction?: any;
71
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
72
+ object?: any;
57
73
  error?: any;
74
+ typeOf?: string | undefined;
75
+ status?: string | undefined;
76
+ result?: any;
58
77
  expires?: Date | undefined;
59
78
  project?: any;
60
79
  agent?: any;
@@ -64,7 +83,26 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
64
83
  potentialActions?: any;
65
84
  tasksExportationStatus?: string | undefined;
66
85
  tasksExportedAt?: Date | undefined;
86
+ seller?: any;
87
+ tasksExportAction?: any;
88
+ }>> & Omit<import("mongoose").FlatRecord<{
89
+ object?: any;
90
+ error?: any;
91
+ typeOf?: string | undefined;
92
+ status?: string | undefined;
67
93
  result?: any;
94
+ expires?: Date | undefined;
95
+ project?: any;
96
+ agent?: any;
97
+ recipient?: any;
98
+ startDate?: Date | undefined;
99
+ endDate?: Date | undefined;
100
+ potentialActions?: any;
101
+ tasksExportationStatus?: string | undefined;
102
+ tasksExportedAt?: Date | undefined;
68
103
  seller?: any;
69
- }>;
104
+ tasksExportAction?: any;
105
+ }> & {
106
+ _id: import("mongoose").Types.ObjectId;
107
+ }, never>>;
70
108
  export { modelName, schema };
@@ -22,15 +22,17 @@ const schema = new mongoose_1.Schema({
22
22
  expires: Date,
23
23
  startDate: Date,
24
24
  endDate: Date,
25
+ tasksExportAction: mongoose_1.SchemaTypes.Mixed,
25
26
  tasksExportedAt: Date,
26
27
  tasksExportationStatus: String,
27
28
  potentialActions: mongoose_1.SchemaTypes.Mixed
28
29
  }, {
29
30
  collection: 'transactions',
30
31
  id: true,
31
- read: 'primaryPreferred',
32
+ read: 'primary',
32
33
  writeConcern: writeConcern_1.writeConcern,
33
34
  strict: true,
35
+ strictQuery: false,
34
36
  useNestedStrict: true,
35
37
  timestamps: {
36
38
  createdAt: 'createdAt',
@@ -27,12 +27,13 @@ declare const modelName = "Trip";
27
27
  /**
28
28
  * トリップスキーマ
29
29
  */
30
- declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").ResolveSchemaOptions<{
30
+ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
31
31
  collection: string;
32
32
  id: true;
33
33
  read: string;
34
34
  writeConcern: import("mongodb").WriteConcern;
35
35
  strict: false;
36
+ strictQuery: false;
36
37
  useNestedStrict: boolean;
37
38
  timestamps: {
38
39
  createdAt: string;
@@ -50,8 +51,16 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
50
51
  minimize: false;
51
52
  versionKey: false;
52
53
  };
53
- }>, {
54
+ }, {
54
55
  typeOf: string;
55
56
  project?: any;
56
- }>;
57
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
58
+ typeOf: string;
59
+ project?: any;
60
+ }>> & Omit<import("mongoose").FlatRecord<{
61
+ typeOf: string;
62
+ project?: any;
63
+ }> & {
64
+ _id: import("mongoose").Types.ObjectId;
65
+ }, never>>;
57
66
  export { modelName, schema };
@@ -20,6 +20,7 @@ const schema = new mongoose_1.Schema({
20
20
  read: 'primaryPreferred',
21
21
  writeConcern: writeConcern_1.writeConcern,
22
22
  strict: false,
23
+ strictQuery: false,
23
24
  useNestedStrict: true,
24
25
  timestamps: {
25
26
  createdAt: 'createdAt',
@@ -23,7 +23,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
23
23
  exports.MongoRepository = void 0;
24
24
  const uniqid = require("uniqid");
25
25
  const factory = require("../factory");
26
- const onIndexCreated_1 = require("./mongoose/onIndexCreated");
27
26
  const offer_1 = require("./mongoose/schemas/offer");
28
27
  const offerCatalog_1 = require("./mongoose/schemas/offerCatalog");
29
28
  /**
@@ -33,10 +32,6 @@ class MongoRepository {
33
32
  constructor(connection) {
34
33
  this.offerModel = connection.model(offer_1.modelName, offer_1.schema);
35
34
  this.offerCatalogModel = connection.model(offerCatalog_1.modelName, offerCatalog_1.schema);
36
- if (connection.get('autoIndex') === true) {
37
- this.offerModel.on(onIndexCreated_1.INDEX_EVENT, onIndexCreated_1.onIndexCreated);
38
- this.offerCatalogModel.on(onIndexCreated_1.INDEX_EVENT, onIndexCreated_1.onIndexCreated);
39
- }
40
35
  }
41
36
  // tslint:disable-next-line:cyclomatic-complexity max-func-body-length
42
37
  static CREATE_OFFER_MONGO_CONDITIONS(params) {
@@ -23,7 +23,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
23
23
  exports.MongoRepository = void 0;
24
24
  const uniqid = require("uniqid");
25
25
  const factory = require("../factory");
26
- const onIndexCreated_1 = require("./mongoose/onIndexCreated");
27
26
  const offerCatalog_1 = require("./mongoose/schemas/offerCatalog");
28
27
  /**
29
28
  * オファーカタログリポジトリ
@@ -31,9 +30,6 @@ const offerCatalog_1 = require("./mongoose/schemas/offerCatalog");
31
30
  class MongoRepository {
32
31
  constructor(connection) {
33
32
  this.offerCatalogModel = connection.model(offerCatalog_1.modelName, offerCatalog_1.schema);
34
- if (connection.get('autoIndex') === true) {
35
- this.offerCatalogModel.on(onIndexCreated_1.INDEX_EVENT, onIndexCreated_1.onIndexCreated);
36
- }
37
33
  }
38
34
  // tslint:disable-next-line:max-func-body-length
39
35
  static CREATE_MONGO_CONDITIONS(params) {
@@ -0,0 +1,39 @@
1
+ import { Connection } from 'mongoose';
2
+ import * as factory from '../factory';
3
+ interface IProjection {
4
+ [key: string]: 0 | 1;
5
+ }
6
+ interface IOfferItemCondition {
7
+ id?: string;
8
+ identifier: string;
9
+ itemOfferded: {
10
+ typeOf: factory.product.ProductType.EventService;
11
+ serviceOutput?: {
12
+ typeOf: factory.reservationType.EventReservation;
13
+ reservationFor: any;
14
+ };
15
+ };
16
+ name: factory.multilingualString;
17
+ project: {
18
+ id: string;
19
+ typeOf: factory.organizationType.Project;
20
+ };
21
+ typeOf: 'OfferItemCondition';
22
+ }
23
+ /**
24
+ * アイテムコンディションリポジトリ
25
+ */
26
+ export declare class MongoRepository {
27
+ private readonly offerItemConditionModel;
28
+ constructor(connection: Connection);
29
+ static CREATE_MONGO_CONDITIONS(params: any): any[];
30
+ findById(params: {
31
+ id: string;
32
+ }): Promise<IOfferItemCondition>;
33
+ search(params: any, projection?: IProjection): Promise<IOfferItemCondition[]>;
34
+ save(params: IOfferItemCondition): Promise<IOfferItemCondition>;
35
+ deleteById(params: {
36
+ id: string;
37
+ }): Promise<void>;
38
+ }
39
+ export {};