@chevre/domain 21.2.0-alpha.10 → 21.2.0-alpha.101

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 (257) hide show
  1. package/example/src/chevre/aggregation/aggregateSystem.ts +58 -31
  2. package/example/src/chevre/createManyEventsIfNotExist.ts +4 -1
  3. package/example/src/chevre/deleteTasksByName.ts +10 -2
  4. package/example/src/chevre/importEventsFromCOA.ts +3 -4
  5. package/example/src/chevre/migrateOrderAdditionalProperties.ts +85 -0
  6. package/example/src/chevre/processPay.ts +5 -1
  7. package/example/src/chevre/processReserve.ts +4 -1
  8. package/example/src/chevre/saveTasks.ts +13 -10
  9. package/example/src/chevre/searchAbortedTasks.ts +36 -0
  10. package/example/src/chevre/searchActions.ts +33 -0
  11. package/example/src/chevre/searchReservationNumbersByOrderNumbers.ts +37 -1
  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/processReturnOrder.ts +40 -0
  17. package/example/src/chevre/transaction/startExportTasks.ts +20 -0
  18. package/example/src/chevre/updateTransaction.ts +1 -1
  19. package/example/src/playOnMoment.ts +24 -0
  20. package/lib/chevre/credentials.d.ts +1 -0
  21. package/lib/chevre/credentials.js +2 -1
  22. package/lib/chevre/eventEmitter/assetTransaction.d.ts +21 -0
  23. package/lib/chevre/eventEmitter/assetTransaction.js +25 -0
  24. package/lib/chevre/eventEmitter/task.d.ts +18 -0
  25. package/lib/chevre/eventEmitter/task.js +25 -0
  26. package/lib/chevre/eventEmitter/transaction.d.ts +21 -0
  27. package/lib/chevre/eventEmitter/transaction.js +25 -0
  28. package/lib/chevre/eventEmitter.d.ts +4 -0
  29. package/lib/chevre/eventEmitter.js +9 -0
  30. package/lib/chevre/index.d.ts +3 -2
  31. package/lib/chevre/index.js +5 -3
  32. package/lib/chevre/repo/account.js +3 -2
  33. package/lib/chevre/repo/accountTransaction.d.ts +3 -11
  34. package/lib/chevre/repo/accountTransaction.js +3 -55
  35. package/lib/chevre/repo/action.d.ts +29 -1
  36. package/lib/chevre/repo/action.js +100 -56
  37. package/lib/chevre/repo/additionalProperty.js +2 -1
  38. package/lib/chevre/repo/assetTransaction.d.ts +25 -9
  39. package/lib/chevre/repo/assetTransaction.js +259 -87
  40. package/lib/chevre/repo/categoryCode.js +3 -2
  41. package/lib/chevre/repo/code.js +3 -2
  42. package/lib/chevre/repo/comment.d.ts +4 -1
  43. package/lib/chevre/repo/comment.js +22 -6
  44. package/lib/chevre/repo/confirmationNumber.d.ts +0 -1
  45. package/lib/chevre/repo/confirmationNumber.js +3 -15
  46. package/lib/chevre/repo/creativeWork.d.ts +1 -3
  47. package/lib/chevre/repo/creativeWork.js +3 -2
  48. package/lib/chevre/repo/customer.js +2 -1
  49. package/lib/chevre/repo/emailMessage.d.ts +1 -27
  50. package/lib/chevre/repo/emailMessage.js +2 -1
  51. package/lib/chevre/repo/event.d.ts +5 -1
  52. package/lib/chevre/repo/event.js +4 -3
  53. package/lib/chevre/repo/member.js +4 -3
  54. package/lib/chevre/repo/merchantReturnPolicy.d.ts +1 -3
  55. package/lib/chevre/repo/merchantReturnPolicy.js +2 -1
  56. package/lib/chevre/repo/mongoose/schemas/account.d.ts +4 -2
  57. package/lib/chevre/repo/mongoose/schemas/accountTitle.d.ts +29 -3
  58. package/lib/chevre/repo/mongoose/schemas/accountTransaction.d.ts +31 -3
  59. package/lib/chevre/repo/mongoose/schemas/accountTransaction.js +1 -1
  60. package/lib/chevre/repo/mongoose/schemas/accountingReport.d.ts +13 -3
  61. package/lib/chevre/repo/mongoose/schemas/action.d.ts +43 -3
  62. package/lib/chevre/repo/mongoose/schemas/action.js +19 -1
  63. package/lib/chevre/repo/mongoose/schemas/additionalProperty.d.ts +17 -3
  64. package/lib/chevre/repo/mongoose/schemas/aggregation.d.ts +4 -2
  65. package/lib/chevre/repo/mongoose/schemas/assetTransaction.d.ts +44 -3
  66. package/lib/chevre/repo/mongoose/schemas/assetTransaction.js +32 -19
  67. package/lib/chevre/repo/mongoose/schemas/authorization.d.ts +19 -3
  68. package/lib/chevre/repo/mongoose/schemas/authorization.js +1 -1
  69. package/lib/chevre/repo/mongoose/schemas/categoryCode.d.ts +25 -3
  70. package/lib/chevre/repo/mongoose/schemas/comments.d.ts +27 -3
  71. package/lib/chevre/repo/mongoose/schemas/comments.js +1 -1
  72. package/lib/chevre/repo/mongoose/schemas/creativeWork.d.ts +43 -3
  73. package/lib/chevre/repo/mongoose/schemas/customer.d.ts +25 -3
  74. package/lib/chevre/repo/mongoose/schemas/emailMessages.d.ts +21 -3
  75. package/lib/chevre/repo/mongoose/schemas/event.d.ts +71 -3
  76. package/lib/chevre/repo/mongoose/schemas/member.d.ts +13 -3
  77. package/lib/chevre/repo/mongoose/schemas/merchantReturnPolicy.d.ts +21 -3
  78. package/lib/chevre/repo/mongoose/schemas/offer.d.ts +65 -3
  79. package/lib/chevre/repo/mongoose/schemas/offerCatalog.d.ts +27 -3
  80. package/lib/chevre/repo/mongoose/schemas/offerItemCondition.d.ts +74 -0
  81. package/lib/chevre/repo/mongoose/schemas/offerItemCondition.js +45 -0
  82. package/lib/chevre/repo/mongoose/schemas/order.d.ts +51 -3
  83. package/lib/chevre/repo/mongoose/schemas/order.js +1 -1
  84. package/lib/chevre/repo/mongoose/schemas/ownershipInfo.d.ts +25 -3
  85. package/lib/chevre/repo/mongoose/schemas/ownershipInfo.js +1 -1
  86. package/lib/chevre/repo/mongoose/schemas/place.d.ts +49 -3
  87. package/lib/chevre/repo/mongoose/schemas/priceSpecification.d.ts +29 -3
  88. package/lib/chevre/repo/mongoose/schemas/product.d.ts +31 -3
  89. package/lib/chevre/repo/mongoose/schemas/project.d.ts +23 -3
  90. package/lib/chevre/repo/mongoose/schemas/reservation.d.ts +63 -5
  91. package/lib/chevre/repo/mongoose/schemas/reservation.js +1 -1
  92. package/lib/chevre/repo/mongoose/schemas/role.d.ts +11 -3
  93. package/lib/chevre/repo/mongoose/schemas/seller.d.ts +31 -3
  94. package/lib/chevre/repo/mongoose/schemas/seller.js +6 -0
  95. package/lib/chevre/repo/mongoose/schemas/serviceOutput.d.ts +11 -3
  96. package/lib/chevre/repo/mongoose/schemas/serviceOutput.js +1 -1
  97. package/lib/chevre/repo/mongoose/schemas/task.d.ts +30 -3
  98. package/lib/chevre/repo/mongoose/schemas/task.js +2 -1
  99. package/lib/chevre/repo/mongoose/schemas/telemetry.d.ts +21 -3
  100. package/lib/chevre/repo/mongoose/schemas/transaction.d.ts +40 -3
  101. package/lib/chevre/repo/mongoose/schemas/transaction.js +2 -1
  102. package/lib/chevre/repo/mongoose/schemas/trip.d.ts +11 -3
  103. package/lib/chevre/repo/offer.js +3 -2
  104. package/lib/chevre/repo/offerCatalog.js +0 -27
  105. package/lib/chevre/repo/offerItemCondition.d.ts +22 -0
  106. package/lib/chevre/repo/offerItemCondition.js +121 -0
  107. package/lib/chevre/repo/order.d.ts +55 -3
  108. package/lib/chevre/repo/order.js +62 -10
  109. package/lib/chevre/repo/ownershipInfo.js +2 -7
  110. package/lib/chevre/repo/place.js +3 -2
  111. package/lib/chevre/repo/priceSpecification.js +3 -2
  112. package/lib/chevre/repo/product.js +2 -1
  113. package/lib/chevre/repo/project.js +2 -1
  114. package/lib/chevre/repo/reservation.d.ts +12 -4
  115. package/lib/chevre/repo/reservation.js +20 -59
  116. package/lib/chevre/repo/role.js +3 -2
  117. package/lib/chevre/repo/seller.js +22 -21
  118. package/lib/chevre/repo/serviceOutput.js +2 -1
  119. package/lib/chevre/repo/task.d.ts +42 -2
  120. package/lib/chevre/repo/task.js +93 -11
  121. package/lib/chevre/repo/transaction.d.ts +23 -3
  122. package/lib/chevre/repo/transaction.js +177 -56
  123. package/lib/chevre/repo/trip.js +2 -1
  124. package/lib/chevre/repository.d.ts +5 -2
  125. package/lib/chevre/repository.js +8 -4
  126. package/lib/chevre/service/aggregation/system.d.ts +67 -22
  127. package/lib/chevre/service/aggregation/system.js +101 -89
  128. package/lib/chevre/service/assetTransaction/cancelReservation.js +1 -28
  129. package/lib/chevre/service/assetTransaction/moneyTransfer.js +1 -23
  130. package/lib/chevre/service/assetTransaction/pay/potentialActions.js +17 -1
  131. package/lib/chevre/service/assetTransaction/pay.d.ts +5 -1
  132. package/lib/chevre/service/assetTransaction/pay.js +18 -32
  133. package/lib/chevre/service/assetTransaction/refund.js +1 -23
  134. package/lib/chevre/service/assetTransaction/registerService.js +1 -25
  135. package/lib/chevre/service/assetTransaction/reserve/factory.d.ts +15 -5
  136. package/lib/chevre/service/assetTransaction/reserve/factory.js +122 -58
  137. package/lib/chevre/service/assetTransaction/reserve.d.ts +10 -1
  138. package/lib/chevre/service/assetTransaction/reserve.js +85 -69
  139. package/lib/chevre/service/assetTransaction.d.ts +6 -2
  140. package/lib/chevre/service/assetTransaction.js +9 -5
  141. package/lib/chevre/service/event.js +3 -1
  142. package/lib/chevre/service/notification/factory.js +2 -2
  143. package/lib/chevre/service/notification.d.ts +3 -1
  144. package/lib/chevre/service/notification.js +41 -7
  145. package/lib/chevre/service/offer/event/authorize.d.ts +3 -0
  146. package/lib/chevre/service/offer/event/authorize.js +8 -2
  147. package/lib/chevre/service/offer/event/factory.d.ts +3 -0
  148. package/lib/chevre/service/offer/event/factory.js +16 -5
  149. package/lib/chevre/service/offer/event/voidTransaction.d.ts +2 -0
  150. package/lib/chevre/service/offer/event/voidTransaction.js +17 -1
  151. package/lib/chevre/service/offer.d.ts +12 -7
  152. package/lib/chevre/service/offer.js +57 -2
  153. package/lib/chevre/service/order/deleteOrder.d.ts +3 -1
  154. package/lib/chevre/service/order/deleteOrder.js +8 -8
  155. package/lib/chevre/service/order/onOrderStatusChanged/factory.d.ts +5 -2
  156. package/lib/chevre/service/order/onOrderStatusChanged/factory.js +41 -81
  157. package/lib/chevre/service/order/onOrderStatusChanged.js +1 -3
  158. package/lib/chevre/service/order/onOrderUpdated.d.ts +16 -0
  159. package/lib/chevre/service/order/onOrderUpdated.js +22 -0
  160. package/lib/chevre/service/order/placeOrder.d.ts +1 -0
  161. package/lib/chevre/service/order/placeOrder.js +41 -24
  162. package/lib/chevre/service/order/returnOrder.d.ts +1 -0
  163. package/lib/chevre/service/order/returnOrder.js +7 -12
  164. package/lib/chevre/service/order/sendOrder.d.ts +1 -0
  165. package/lib/chevre/service/order/sendOrder.js +7 -10
  166. package/lib/chevre/service/order.d.ts +2 -1
  167. package/lib/chevre/service/order.js +3 -1
  168. package/lib/chevre/service/payment/any/onPaid.js +1 -1
  169. package/lib/chevre/service/payment/any/onRefund.js +1 -1
  170. package/lib/chevre/service/payment/any.d.ts +9 -5
  171. package/lib/chevre/service/payment/any.js +80 -18
  172. package/lib/chevre/service/payment/creditCard.d.ts +1 -1
  173. package/lib/chevre/service/payment/creditCard.js +21 -15
  174. package/lib/chevre/service/payment/movieTicket/checkByIdentifier.d.ts +7 -6
  175. package/lib/chevre/service/payment/movieTicket/validation.d.ts +6 -6
  176. package/lib/chevre/service/payment/movieTicket/validation.js +54 -31
  177. package/lib/chevre/service/payment/movieTicket.d.ts +2 -2
  178. package/lib/chevre/service/payment/movieTicket.js +5 -4
  179. package/lib/chevre/service/product.js +1 -5
  180. package/lib/chevre/service/report/telemetry.d.ts +0 -11
  181. package/lib/chevre/service/report/telemetry.js +21 -24
  182. package/lib/chevre/service/reserve/cancelReservation.d.ts +5 -3
  183. package/lib/chevre/service/reserve/cancelReservation.js +147 -139
  184. package/lib/chevre/service/reserve/checkInReservation.d.ts +9 -4
  185. package/lib/chevre/service/reserve/checkInReservation.js +77 -3
  186. package/lib/chevre/service/reserve/confirmReservation.d.ts +7 -4
  187. package/lib/chevre/service/reserve/confirmReservation.js +125 -58
  188. package/lib/chevre/service/reserve/factory.d.ts +1 -1
  189. package/lib/chevre/service/reserve/potentialActions/onReservationCanceled.d.ts +17 -5
  190. package/lib/chevre/service/reserve/potentialActions/onReservationCanceled.js +26 -24
  191. package/lib/chevre/service/reserve/potentialActions/onReservationCheckedIn.js +2 -3
  192. package/lib/chevre/service/reserve/potentialActions/onReservationConfirmed.js +2 -31
  193. package/lib/chevre/service/reserve/potentialActions/onReservationUsed.js +2 -3
  194. package/lib/chevre/service/reserve/useReservation.d.ts +7 -3
  195. package/lib/chevre/service/reserve/useReservation.js +61 -71
  196. package/lib/chevre/service/reserve/verifyToken4reservation.d.ts +15 -0
  197. package/lib/chevre/service/reserve/verifyToken4reservation.js +56 -0
  198. package/lib/chevre/service/reserve.d.ts +3 -2
  199. package/lib/chevre/service/reserve.js +4 -2
  200. package/lib/chevre/service/task/cancelPendingReservation.js +5 -1
  201. package/lib/chevre/service/task/confirmRegisterServiceTransaction.js +1 -1
  202. package/lib/chevre/service/task/deleteTransaction.js +10 -8
  203. package/lib/chevre/service/task/importOffersFromCOA.js +4 -0
  204. package/lib/chevre/service/task/onAuthorizationCreated.d.ts +7 -0
  205. package/lib/chevre/service/task/onAuthorizationCreated.js +108 -0
  206. package/lib/chevre/service/task/onEventChanged.d.ts +7 -0
  207. package/lib/chevre/service/task/{deleteOrder.js → onEventChanged.js} +8 -14
  208. package/lib/chevre/service/task/placeOrder.js +1 -1
  209. package/lib/chevre/service/task/reserve.js +10 -7
  210. package/lib/chevre/service/task/returnOrder.js +1 -1
  211. package/lib/chevre/service/task/returnPayTransaction.js +2 -12
  212. package/lib/chevre/service/task/sendOrder.js +1 -1
  213. package/lib/chevre/service/task/useReservation.d.ts +7 -0
  214. package/lib/chevre/service/task/useReservation.js +36 -0
  215. package/lib/chevre/service/task/voidReserveTransaction.js +3 -1
  216. package/lib/chevre/service/task.d.ts +9 -0
  217. package/lib/chevre/service/task.js +43 -4
  218. package/lib/chevre/service/transaction/deleteTransaction.d.ts +21 -0
  219. package/lib/chevre/service/transaction/deleteTransaction.js +232 -0
  220. package/lib/chevre/service/transaction/moneyTransfer/exportTasks/factory.js +11 -1
  221. package/lib/chevre/service/transaction/moneyTransfer/factory.js +3 -1
  222. package/lib/chevre/service/transaction/moneyTransfer/potentialActions.d.ts +1 -0
  223. package/lib/chevre/service/transaction/moneyTransfer/potentialActions.js +1 -1
  224. package/lib/chevre/service/transaction/moneyTransfer.js +9 -12
  225. package/lib/chevre/service/transaction/orderProgramMembership.js +6 -2
  226. package/lib/chevre/service/transaction/placeOrder/exportTasks/factory.js +42 -30
  227. package/lib/chevre/service/transaction/placeOrder.js +1 -5
  228. package/lib/chevre/service/transaction/placeOrderInProgress/factory.js +1 -1
  229. package/lib/chevre/service/transaction/placeOrderInProgress/potentialActions/moneyTransfer.d.ts +1 -0
  230. package/lib/chevre/service/transaction/placeOrderInProgress/potentialActions/moneyTransfer.js +1 -1
  231. package/lib/chevre/service/transaction/placeOrderInProgress/potentialActions/registerService.d.ts +1 -0
  232. package/lib/chevre/service/transaction/placeOrderInProgress/potentialActions/registerService.js +1 -1
  233. package/lib/chevre/service/transaction/placeOrderInProgress/potentialActions.d.ts +1 -0
  234. package/lib/chevre/service/transaction/placeOrderInProgress/result/acceptedOffers.d.ts +3 -0
  235. package/lib/chevre/service/transaction/placeOrderInProgress/result/acceptedOffers.js +7 -3
  236. package/lib/chevre/service/transaction/placeOrderInProgress/result.d.ts +1 -0
  237. package/lib/chevre/service/transaction/placeOrderInProgress/result.js +2 -2
  238. package/lib/chevre/service/transaction/placeOrderInProgress/validation/validateMovieTicket.d.ts +1 -1
  239. package/lib/chevre/service/transaction/placeOrderInProgress/validation/validateMovieTicket.js +2 -2
  240. package/lib/chevre/service/transaction/placeOrderInProgress/validation.d.ts +2 -1
  241. package/lib/chevre/service/transaction/placeOrderInProgress/validation.js +23 -17
  242. package/lib/chevre/service/transaction/placeOrderInProgress.d.ts +0 -3
  243. package/lib/chevre/service/transaction/placeOrderInProgress.js +22 -11
  244. package/lib/chevre/service/transaction/returnOrder/exportTasks/factory.js +10 -1
  245. package/lib/chevre/service/transaction/returnOrder/potentialActions/returnPaymentMethod.js +25 -17
  246. package/lib/chevre/service/transaction/returnOrder.d.ts +4 -0
  247. package/lib/chevre/service/transaction/returnOrder.js +225 -35
  248. package/lib/chevre/service/transaction.d.ts +8 -13
  249. package/lib/chevre/service/transaction.js +12 -145
  250. package/lib/chevre/settings.d.ts +8 -1
  251. package/lib/chevre/settings.js +35 -6
  252. package/package.json +5 -5
  253. package/example/src/chevre/migrateMoneyTransferPendingTransactionIdentifier.ts +0 -96
  254. package/example/src/chevre/migrateMovieAdditionalProperties.ts +0 -98
  255. package/lib/chevre/service/task/deleteAssetTransaction.d.ts +0 -12
  256. package/lib/chevre/service/task/deleteAssetTransaction.js +0 -65
  257. package/lib/chevre/service/task/deleteOrder.d.ts +0 -6
@@ -27,7 +27,7 @@ declare const modelName = "Offer";
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;
@@ -50,7 +50,7 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
50
50
  minimize: false;
51
51
  versionKey: false;
52
52
  };
53
- }>, {
53
+ }, {
54
54
  additionalProperty: any[];
55
55
  addOn: any[];
56
56
  availableAtOrFrom: any[];
@@ -80,5 +80,67 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
80
80
  settings?: any;
81
81
  validThrough?: Date | undefined;
82
82
  validRateLimit?: any;
83
- }>;
83
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
84
+ additionalProperty: any[];
85
+ addOn: any[];
86
+ availableAtOrFrom: any[];
87
+ _id?: string | undefined;
88
+ name?: any;
89
+ typeOf?: string | undefined;
90
+ project?: any;
91
+ alternateName?: any;
92
+ description?: any;
93
+ identifier?: string | undefined;
94
+ itemOffered?: any;
95
+ eligibleQuantity?: any;
96
+ priceCurrency?: string | undefined;
97
+ color?: any;
98
+ validFrom?: Date | undefined;
99
+ category?: any;
100
+ availability?: string | undefined;
101
+ hasMerchantReturnPolicy?: any;
102
+ priceSpecification?: any;
103
+ eligibleCustomerType?: any;
104
+ eligibleDuration?: any;
105
+ eligibleMembershipType?: any;
106
+ eligibleMonetaryAmount?: any;
107
+ eligibleRegion?: any;
108
+ eligibleSeatingType?: any;
109
+ eligibleSubReservation?: any;
110
+ settings?: any;
111
+ validThrough?: Date | undefined;
112
+ validRateLimit?: any;
113
+ }>> & Omit<import("mongoose").FlatRecord<{
114
+ additionalProperty: any[];
115
+ addOn: any[];
116
+ availableAtOrFrom: any[];
117
+ _id?: string | undefined;
118
+ name?: any;
119
+ typeOf?: string | undefined;
120
+ project?: any;
121
+ alternateName?: any;
122
+ description?: any;
123
+ identifier?: string | undefined;
124
+ itemOffered?: any;
125
+ eligibleQuantity?: any;
126
+ priceCurrency?: string | undefined;
127
+ color?: any;
128
+ validFrom?: Date | undefined;
129
+ category?: any;
130
+ availability?: string | undefined;
131
+ hasMerchantReturnPolicy?: any;
132
+ priceSpecification?: any;
133
+ eligibleCustomerType?: any;
134
+ eligibleDuration?: any;
135
+ eligibleMembershipType?: any;
136
+ eligibleMonetaryAmount?: any;
137
+ eligibleRegion?: any;
138
+ eligibleSeatingType?: any;
139
+ eligibleSubReservation?: any;
140
+ settings?: any;
141
+ validThrough?: Date | undefined;
142
+ validRateLimit?: any;
143
+ }> & Required<{
144
+ _id: string;
145
+ }>, never>>;
84
146
  export { modelName, schema };
@@ -27,7 +27,7 @@ declare const modelName = "OfferCatalog";
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;
@@ -50,7 +50,7 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
50
50
  minimize: false;
51
51
  versionKey: false;
52
52
  };
53
- }>, {
53
+ }, {
54
54
  typeOf: string;
55
55
  additionalProperty: any[];
56
56
  identifier: string;
@@ -61,5 +61,29 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
61
61
  alternateName?: any;
62
62
  description?: any;
63
63
  itemOffered?: any;
64
- }>;
64
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
65
+ typeOf: string;
66
+ additionalProperty: any[];
67
+ identifier: string;
68
+ itemListElement: any[];
69
+ _id?: string | undefined;
70
+ name?: any;
71
+ project?: any;
72
+ alternateName?: any;
73
+ description?: any;
74
+ itemOffered?: any;
75
+ }>> & Omit<import("mongoose").FlatRecord<{
76
+ typeOf: string;
77
+ additionalProperty: any[];
78
+ identifier: string;
79
+ itemListElement: any[];
80
+ _id?: string | undefined;
81
+ name?: any;
82
+ project?: any;
83
+ alternateName?: any;
84
+ description?: any;
85
+ itemOffered?: any;
86
+ }> & Required<{
87
+ _id: string;
88
+ }>, never>>;
65
89
  export { modelName, schema };
@@ -0,0 +1,74 @@
1
+ /// <reference types="mongoose/types/aggregate" />
2
+ /// <reference types="mongoose/types/callback" />
3
+ /// <reference types="mongoose/types/collection" />
4
+ /// <reference types="mongoose/types/connection" />
5
+ /// <reference types="mongoose/types/cursor" />
6
+ /// <reference types="mongoose/types/document" />
7
+ /// <reference types="mongoose/types/error" />
8
+ /// <reference types="mongoose/types/expressions" />
9
+ /// <reference types="mongoose/types/helpers" />
10
+ /// <reference types="mongoose/types/middlewares" />
11
+ /// <reference types="mongoose/types/indexes" />
12
+ /// <reference types="mongoose/types/models" />
13
+ /// <reference types="mongoose/types/mongooseoptions" />
14
+ /// <reference types="mongoose/types/pipelinestage" />
15
+ /// <reference types="mongoose/types/populate" />
16
+ /// <reference types="mongoose/types/query" />
17
+ /// <reference types="mongoose/types/schemaoptions" />
18
+ /// <reference types="mongoose/types/schematypes" />
19
+ /// <reference types="mongoose/types/session" />
20
+ /// <reference types="mongoose/types/types" />
21
+ /// <reference types="mongoose/types/utility" />
22
+ /// <reference types="mongoose/types/validation" />
23
+ /// <reference types="mongoose/types/virtuals" />
24
+ /// <reference types="mongoose/types/inferschematype" />
25
+ import { Schema } from 'mongoose';
26
+ declare const modelName = "OfferItemCondition";
27
+ /**
28
+ * アイテムコンディションスキーマ
29
+ */
30
+ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
31
+ collection: string;
32
+ id: true;
33
+ read: string;
34
+ writeConcern: import("mongodb").WriteConcern;
35
+ strict: true;
36
+ strictQuery: false;
37
+ timestamps: {
38
+ createdAt: string;
39
+ updatedAt: string;
40
+ };
41
+ toJSON: {
42
+ getters: false;
43
+ virtuals: false;
44
+ minimize: false;
45
+ versionKey: false;
46
+ };
47
+ toObject: {
48
+ getters: false;
49
+ virtuals: true;
50
+ minimize: false;
51
+ versionKey: false;
52
+ };
53
+ }, {
54
+ name?: any;
55
+ typeOf?: string | undefined;
56
+ project?: any;
57
+ identifier?: string | undefined;
58
+ itemOffered?: any;
59
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
60
+ name?: any;
61
+ typeOf?: string | undefined;
62
+ project?: any;
63
+ identifier?: string | undefined;
64
+ itemOffered?: any;
65
+ }>> & Omit<import("mongoose").FlatRecord<{
66
+ name?: any;
67
+ typeOf?: string | undefined;
68
+ project?: any;
69
+ identifier?: string | undefined;
70
+ itemOffered?: any;
71
+ }> & {
72
+ _id: import("mongoose").Types.ObjectId;
73
+ }, never>>;
74
+ export { modelName, schema };
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.schema = exports.modelName = void 0;
4
+ const mongoose_1 = require("mongoose");
5
+ const writeConcern_1 = require("../writeConcern");
6
+ const modelName = 'OfferItemCondition';
7
+ exports.modelName = modelName;
8
+ /**
9
+ * アイテムコンディションスキーマ
10
+ */
11
+ const schema = new mongoose_1.Schema({
12
+ project: mongoose_1.SchemaTypes.Mixed,
13
+ identifier: String,
14
+ typeOf: String,
15
+ name: mongoose_1.SchemaTypes.Mixed,
16
+ itemOffered: mongoose_1.SchemaTypes.Mixed
17
+ }, {
18
+ collection: 'offerItemConditions',
19
+ id: true,
20
+ read: 'primaryPreferred',
21
+ writeConcern: writeConcern_1.writeConcern,
22
+ strict: true,
23
+ strictQuery: false,
24
+ timestamps: {
25
+ createdAt: 'createdAt',
26
+ updatedAt: 'updatedAt'
27
+ },
28
+ toJSON: {
29
+ getters: false,
30
+ virtuals: false,
31
+ minimize: false,
32
+ versionKey: false
33
+ },
34
+ toObject: {
35
+ getters: false,
36
+ virtuals: true,
37
+ minimize: false,
38
+ versionKey: false
39
+ }
40
+ });
41
+ exports.schema = schema;
42
+ schema.index({ createdAt: 1 }, { name: 'searchByCreatedAt' });
43
+ schema.index({ updatedAt: 1 }, { name: 'searchByUpdatedAt' });
44
+ schema.index({ identifier: 1 }, { name: 'searchByIdentifier' });
45
+ schema.index({ 'project.id': 1, identifier: 1 }, { name: 'searchByProjectId' });
@@ -27,7 +27,7 @@ declare const modelName = "Order";
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;
@@ -51,7 +51,7 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
51
51
  minimize: false;
52
52
  versionKey: false;
53
53
  };
54
- }>, {
54
+ }, {
55
55
  typeOf: string;
56
56
  additionalProperty: any[];
57
57
  identifier: any[];
@@ -64,9 +64,55 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
64
64
  project?: any;
65
65
  orderNumber?: string | undefined;
66
66
  seller?: any;
67
+ broker?: any;
68
+ price?: number | undefined;
69
+ priceCurrency?: string | undefined;
70
+ customer?: any;
71
+ returner?: any;
72
+ confirmationNumber?: string | undefined;
73
+ orderStatus?: string | undefined;
74
+ orderDate?: Date | undefined;
75
+ isGift?: boolean | undefined;
76
+ dateReturned?: Date | undefined;
77
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
78
+ typeOf: string;
79
+ additionalProperty: any[];
80
+ identifier: any[];
81
+ acceptedOffers: any[];
82
+ paymentMethods: any[];
83
+ discounts: any[];
84
+ orderedItem: any[];
85
+ name?: string | undefined;
86
+ url?: string | undefined;
87
+ project?: any;
88
+ orderNumber?: string | undefined;
89
+ seller?: any;
90
+ broker?: any;
67
91
  price?: number | undefined;
68
92
  priceCurrency?: string | undefined;
93
+ customer?: any;
94
+ returner?: any;
95
+ confirmationNumber?: string | undefined;
96
+ orderStatus?: string | undefined;
97
+ orderDate?: Date | undefined;
98
+ isGift?: boolean | undefined;
99
+ dateReturned?: Date | undefined;
100
+ }>> & Omit<import("mongoose").FlatRecord<{
101
+ typeOf: string;
102
+ additionalProperty: any[];
103
+ identifier: any[];
104
+ acceptedOffers: any[];
105
+ paymentMethods: any[];
106
+ discounts: any[];
107
+ orderedItem: any[];
108
+ name?: string | undefined;
109
+ url?: string | undefined;
110
+ project?: any;
111
+ orderNumber?: string | undefined;
112
+ seller?: any;
69
113
  broker?: any;
114
+ price?: number | undefined;
115
+ priceCurrency?: string | undefined;
70
116
  customer?: any;
71
117
  returner?: any;
72
118
  confirmationNumber?: string | undefined;
@@ -74,5 +120,7 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
74
120
  orderDate?: Date | undefined;
75
121
  isGift?: boolean | undefined;
76
122
  dateReturned?: Date | undefined;
77
- }>;
123
+ }> & {
124
+ _id: import("mongoose").Types.ObjectId;
125
+ }, never>>;
78
126
  export { modelName, schema };
@@ -37,7 +37,7 @@ const schema = new mongoose_1.Schema({
37
37
  }, {
38
38
  collection: 'orders',
39
39
  id: true,
40
- read: 'primaryPreferred',
40
+ read: 'primary',
41
41
  writeConcern: writeConcern_1.writeConcern,
42
42
  strict: true,
43
43
  strictQuery: false,
@@ -27,7 +27,7 @@ declare const modelName = "OwnershipInfo";
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;
@@ -51,7 +51,7 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
51
51
  minimize: false;
52
52
  versionKey: false;
53
53
  };
54
- }>, {
54
+ }, {
55
55
  typeOf: string;
56
56
  _id?: string | undefined;
57
57
  project?: any;
@@ -61,5 +61,27 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
61
61
  acquiredFrom?: any;
62
62
  ownedFrom?: Date | undefined;
63
63
  ownedThrough?: Date | undefined;
64
- }>;
64
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
65
+ typeOf: string;
66
+ _id?: string | undefined;
67
+ project?: any;
68
+ identifier?: any;
69
+ typeOfGood?: any;
70
+ ownedBy?: any;
71
+ acquiredFrom?: any;
72
+ ownedFrom?: Date | undefined;
73
+ ownedThrough?: Date | undefined;
74
+ }>> & Omit<import("mongoose").FlatRecord<{
75
+ typeOf: string;
76
+ _id?: string | undefined;
77
+ project?: any;
78
+ identifier?: any;
79
+ typeOfGood?: any;
80
+ ownedBy?: any;
81
+ acquiredFrom?: any;
82
+ ownedFrom?: Date | undefined;
83
+ ownedThrough?: Date | undefined;
84
+ }> & Required<{
85
+ _id: string;
86
+ }>, never>>;
65
87
  export { modelName, schema };
@@ -24,7 +24,7 @@ const schema = new mongoose_1.Schema({
24
24
  }, {
25
25
  collection: 'ownershipInfos',
26
26
  id: true,
27
- read: 'primaryPreferred',
27
+ read: 'primary',
28
28
  writeConcern: writeConcern_1.writeConcern,
29
29
  strict: true,
30
30
  strictQuery: false,
@@ -27,7 +27,7 @@ declare const modelName = "Place";
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;
@@ -51,7 +51,7 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
51
51
  minimize: false;
52
52
  versionKey: false;
53
53
  };
54
- }>, {
54
+ }, {
55
55
  typeOf: string;
56
56
  additionalProperty: any[];
57
57
  containsPlace: any[];
@@ -73,5 +73,51 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
73
73
  smokingAllowed?: boolean | undefined;
74
74
  sameAs?: string | undefined;
75
75
  parentOrganization?: any;
76
- }>;
76
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
77
+ typeOf: string;
78
+ additionalProperty: any[];
79
+ containsPlace: any[];
80
+ hasEntranceGate: any[];
81
+ hasPOS: any[];
82
+ name?: any;
83
+ url?: string | undefined;
84
+ project?: any;
85
+ alternateName?: any;
86
+ description?: any;
87
+ offers?: any;
88
+ branchCode?: string | undefined;
89
+ telephone?: string | undefined;
90
+ maximumAttendeeCapacity?: number | undefined;
91
+ kanaName?: string | undefined;
92
+ address?: any;
93
+ containedInPlace?: any;
94
+ openingHoursSpecification?: any;
95
+ smokingAllowed?: boolean | undefined;
96
+ sameAs?: string | undefined;
97
+ parentOrganization?: any;
98
+ }>> & Omit<import("mongoose").FlatRecord<{
99
+ typeOf: string;
100
+ additionalProperty: any[];
101
+ containsPlace: any[];
102
+ hasEntranceGate: any[];
103
+ hasPOS: any[];
104
+ name?: any;
105
+ url?: string | undefined;
106
+ project?: any;
107
+ alternateName?: any;
108
+ description?: any;
109
+ offers?: any;
110
+ branchCode?: string | undefined;
111
+ telephone?: string | undefined;
112
+ maximumAttendeeCapacity?: number | undefined;
113
+ kanaName?: string | undefined;
114
+ address?: any;
115
+ containedInPlace?: any;
116
+ openingHoursSpecification?: any;
117
+ smokingAllowed?: boolean | undefined;
118
+ sameAs?: string | undefined;
119
+ parentOrganization?: any;
120
+ }> & {
121
+ _id: import("mongoose").Types.ObjectId;
122
+ }, never>>;
77
123
  export { modelName, schema };
@@ -27,7 +27,7 @@ declare const modelName = "PriceSpecification";
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;
@@ -51,7 +51,7 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
51
51
  minimize: false;
52
52
  versionKey: false;
53
53
  };
54
- }>, {
54
+ }, {
55
55
  typeOf: string;
56
56
  price: number;
57
57
  name?: any;
@@ -63,5 +63,31 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
63
63
  appliesToMovieTicket?: any;
64
64
  validFrom?: Date | undefined;
65
65
  validThrough?: Date | undefined;
66
- }>;
66
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
67
+ typeOf: string;
68
+ price: number;
69
+ name?: any;
70
+ project?: any;
71
+ priceCurrency?: string | undefined;
72
+ valueAddedTaxIncluded?: boolean | undefined;
73
+ appliesToCategoryCode?: any;
74
+ appliesToVideoFormat?: string | undefined;
75
+ appliesToMovieTicket?: any;
76
+ validFrom?: Date | undefined;
77
+ validThrough?: Date | undefined;
78
+ }>> & Omit<import("mongoose").FlatRecord<{
79
+ typeOf: string;
80
+ price: number;
81
+ name?: any;
82
+ project?: any;
83
+ priceCurrency?: string | undefined;
84
+ valueAddedTaxIncluded?: boolean | undefined;
85
+ appliesToCategoryCode?: any;
86
+ appliesToVideoFormat?: string | undefined;
87
+ appliesToMovieTicket?: any;
88
+ validFrom?: Date | undefined;
89
+ validThrough?: Date | undefined;
90
+ }> & {
91
+ _id: import("mongoose").Types.ObjectId;
92
+ }, never>>;
67
93
  export { modelName, schema };
@@ -27,7 +27,7 @@ declare const modelName = "Product";
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;
@@ -51,7 +51,7 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
51
51
  minimize: false;
52
52
  versionKey: false;
53
53
  };
54
- }>, {
54
+ }, {
55
55
  typeOf: string;
56
56
  additionalProperty: any[];
57
57
  offers: any[];
@@ -64,5 +64,33 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
64
64
  serviceType?: any;
65
65
  availableChannel?: any;
66
66
  hasOfferCatalog?: any;
67
- }>;
67
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
68
+ typeOf: string;
69
+ additionalProperty: any[];
70
+ offers: any[];
71
+ productID: string;
72
+ provider: any[];
73
+ name?: any;
74
+ project?: any;
75
+ description?: any;
76
+ serviceOutput?: any;
77
+ serviceType?: any;
78
+ availableChannel?: any;
79
+ hasOfferCatalog?: any;
80
+ }>> & Omit<import("mongoose").FlatRecord<{
81
+ typeOf: string;
82
+ additionalProperty: any[];
83
+ offers: any[];
84
+ productID: string;
85
+ provider: any[];
86
+ name?: any;
87
+ project?: any;
88
+ description?: any;
89
+ serviceOutput?: any;
90
+ serviceType?: any;
91
+ availableChannel?: any;
92
+ hasOfferCatalog?: any;
93
+ }> & {
94
+ _id: import("mongoose").Types.ObjectId;
95
+ }, never>>;
68
96
  export { modelName, schema };
@@ -27,7 +27,7 @@ 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;
@@ -51,7 +51,7 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
51
51
  minimize: false;
52
52
  versionKey: false;
53
53
  };
54
- }>, {
54
+ }, {
55
55
  typeOf: string;
56
56
  _id?: string | undefined;
57
57
  name?: string | undefined;
@@ -60,5 +60,25 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
60
60
  aggregateReservation?: any;
61
61
  settings?: any;
62
62
  subscription?: any;
63
- }>;
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>>;
64
84
  export { modelName, schema };