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

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 (235) 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/accountTransaction.d.ts +3 -11
  33. package/lib/chevre/repo/accountTransaction.js +1 -54
  34. package/lib/chevre/repo/action.d.ts +29 -1
  35. package/lib/chevre/repo/action.js +98 -55
  36. package/lib/chevre/repo/assetTransaction.d.ts +25 -9
  37. package/lib/chevre/repo/assetTransaction.js +256 -85
  38. package/lib/chevre/repo/comment.d.ts +4 -1
  39. package/lib/chevre/repo/comment.js +20 -5
  40. package/lib/chevre/repo/confirmationNumber.d.ts +0 -1
  41. package/lib/chevre/repo/confirmationNumber.js +3 -15
  42. package/lib/chevre/repo/creativeWork.d.ts +1 -3
  43. package/lib/chevre/repo/emailMessage.d.ts +1 -27
  44. package/lib/chevre/repo/event.d.ts +5 -1
  45. package/lib/chevre/repo/merchantReturnPolicy.d.ts +1 -3
  46. package/lib/chevre/repo/mongoose/schemas/account.d.ts +4 -2
  47. package/lib/chevre/repo/mongoose/schemas/accountTitle.d.ts +29 -3
  48. package/lib/chevre/repo/mongoose/schemas/accountTransaction.d.ts +31 -3
  49. package/lib/chevre/repo/mongoose/schemas/accountTransaction.js +1 -1
  50. package/lib/chevre/repo/mongoose/schemas/accountingReport.d.ts +13 -3
  51. package/lib/chevre/repo/mongoose/schemas/action.d.ts +43 -3
  52. package/lib/chevre/repo/mongoose/schemas/action.js +19 -1
  53. package/lib/chevre/repo/mongoose/schemas/additionalProperty.d.ts +17 -3
  54. package/lib/chevre/repo/mongoose/schemas/aggregation.d.ts +4 -2
  55. package/lib/chevre/repo/mongoose/schemas/assetTransaction.d.ts +44 -3
  56. package/lib/chevre/repo/mongoose/schemas/assetTransaction.js +32 -19
  57. package/lib/chevre/repo/mongoose/schemas/authorization.d.ts +19 -3
  58. package/lib/chevre/repo/mongoose/schemas/authorization.js +1 -1
  59. package/lib/chevre/repo/mongoose/schemas/categoryCode.d.ts +25 -3
  60. package/lib/chevre/repo/mongoose/schemas/comments.d.ts +27 -3
  61. package/lib/chevre/repo/mongoose/schemas/comments.js +1 -1
  62. package/lib/chevre/repo/mongoose/schemas/creativeWork.d.ts +43 -3
  63. package/lib/chevre/repo/mongoose/schemas/customer.d.ts +25 -3
  64. package/lib/chevre/repo/mongoose/schemas/emailMessages.d.ts +21 -3
  65. package/lib/chevre/repo/mongoose/schemas/event.d.ts +71 -3
  66. package/lib/chevre/repo/mongoose/schemas/member.d.ts +13 -3
  67. package/lib/chevre/repo/mongoose/schemas/merchantReturnPolicy.d.ts +21 -3
  68. package/lib/chevre/repo/mongoose/schemas/offer.d.ts +65 -3
  69. package/lib/chevre/repo/mongoose/schemas/offerCatalog.d.ts +27 -3
  70. package/lib/chevre/repo/mongoose/schemas/offerItemCondition.d.ts +74 -0
  71. package/lib/chevre/repo/mongoose/schemas/offerItemCondition.js +45 -0
  72. package/lib/chevre/repo/mongoose/schemas/order.d.ts +51 -3
  73. package/lib/chevre/repo/mongoose/schemas/order.js +1 -1
  74. package/lib/chevre/repo/mongoose/schemas/ownershipInfo.d.ts +25 -3
  75. package/lib/chevre/repo/mongoose/schemas/ownershipInfo.js +1 -1
  76. package/lib/chevre/repo/mongoose/schemas/place.d.ts +49 -3
  77. package/lib/chevre/repo/mongoose/schemas/priceSpecification.d.ts +29 -3
  78. package/lib/chevre/repo/mongoose/schemas/product.d.ts +31 -3
  79. package/lib/chevre/repo/mongoose/schemas/project.d.ts +23 -3
  80. package/lib/chevre/repo/mongoose/schemas/reservation.d.ts +63 -5
  81. package/lib/chevre/repo/mongoose/schemas/reservation.js +1 -1
  82. package/lib/chevre/repo/mongoose/schemas/role.d.ts +11 -3
  83. package/lib/chevre/repo/mongoose/schemas/seller.d.ts +31 -3
  84. package/lib/chevre/repo/mongoose/schemas/seller.js +6 -0
  85. package/lib/chevre/repo/mongoose/schemas/serviceOutput.d.ts +11 -3
  86. package/lib/chevre/repo/mongoose/schemas/serviceOutput.js +1 -1
  87. package/lib/chevre/repo/mongoose/schemas/task.d.ts +30 -3
  88. package/lib/chevre/repo/mongoose/schemas/task.js +2 -1
  89. package/lib/chevre/repo/mongoose/schemas/telemetry.d.ts +21 -3
  90. package/lib/chevre/repo/mongoose/schemas/transaction.d.ts +40 -3
  91. package/lib/chevre/repo/mongoose/schemas/transaction.js +2 -1
  92. package/lib/chevre/repo/mongoose/schemas/trip.d.ts +11 -3
  93. package/lib/chevre/repo/offerItemCondition.d.ts +22 -0
  94. package/lib/chevre/repo/offerItemCondition.js +120 -0
  95. package/lib/chevre/repo/order.d.ts +55 -3
  96. package/lib/chevre/repo/order.js +56 -5
  97. package/lib/chevre/repo/reservation.d.ts +12 -4
  98. package/lib/chevre/repo/reservation.js +16 -44
  99. package/lib/chevre/repo/seller.js +19 -19
  100. package/lib/chevre/repo/task.d.ts +42 -2
  101. package/lib/chevre/repo/task.js +90 -9
  102. package/lib/chevre/repo/transaction.d.ts +23 -3
  103. package/lib/chevre/repo/transaction.js +174 -54
  104. package/lib/chevre/repository.d.ts +5 -2
  105. package/lib/chevre/repository.js +8 -4
  106. package/lib/chevre/service/aggregation/system.d.ts +67 -22
  107. package/lib/chevre/service/aggregation/system.js +101 -89
  108. package/lib/chevre/service/assetTransaction/cancelReservation.js +1 -28
  109. package/lib/chevre/service/assetTransaction/moneyTransfer.js +1 -23
  110. package/lib/chevre/service/assetTransaction/pay/potentialActions.js +17 -1
  111. package/lib/chevre/service/assetTransaction/pay.d.ts +5 -1
  112. package/lib/chevre/service/assetTransaction/pay.js +18 -32
  113. package/lib/chevre/service/assetTransaction/refund.js +1 -23
  114. package/lib/chevre/service/assetTransaction/registerService.js +1 -25
  115. package/lib/chevre/service/assetTransaction/reserve/factory.d.ts +15 -5
  116. package/lib/chevre/service/assetTransaction/reserve/factory.js +122 -58
  117. package/lib/chevre/service/assetTransaction/reserve.d.ts +10 -1
  118. package/lib/chevre/service/assetTransaction/reserve.js +85 -69
  119. package/lib/chevre/service/assetTransaction.d.ts +6 -2
  120. package/lib/chevre/service/assetTransaction.js +9 -5
  121. package/lib/chevre/service/event.js +3 -1
  122. package/lib/chevre/service/notification/factory.js +2 -2
  123. package/lib/chevre/service/notification.d.ts +3 -1
  124. package/lib/chevre/service/notification.js +41 -7
  125. package/lib/chevre/service/offer/event/authorize.d.ts +3 -0
  126. package/lib/chevre/service/offer/event/authorize.js +8 -2
  127. package/lib/chevre/service/offer/event/factory.d.ts +3 -0
  128. package/lib/chevre/service/offer/event/factory.js +16 -5
  129. package/lib/chevre/service/offer/event/voidTransaction.d.ts +2 -0
  130. package/lib/chevre/service/offer/event/voidTransaction.js +17 -1
  131. package/lib/chevre/service/offer.js +1 -1
  132. package/lib/chevre/service/order/deleteOrder.d.ts +3 -1
  133. package/lib/chevre/service/order/deleteOrder.js +8 -8
  134. package/lib/chevre/service/order/onOrderStatusChanged/factory.d.ts +5 -2
  135. package/lib/chevre/service/order/onOrderStatusChanged/factory.js +41 -81
  136. package/lib/chevre/service/order/onOrderStatusChanged.js +1 -3
  137. package/lib/chevre/service/order/onOrderUpdated.d.ts +16 -0
  138. package/lib/chevre/service/order/onOrderUpdated.js +22 -0
  139. package/lib/chevre/service/order/placeOrder.d.ts +1 -0
  140. package/lib/chevre/service/order/placeOrder.js +41 -24
  141. package/lib/chevre/service/order/returnOrder.d.ts +1 -0
  142. package/lib/chevre/service/order/returnOrder.js +7 -12
  143. package/lib/chevre/service/order/sendOrder.d.ts +1 -0
  144. package/lib/chevre/service/order/sendOrder.js +7 -10
  145. package/lib/chevre/service/order.d.ts +2 -1
  146. package/lib/chevre/service/order.js +3 -1
  147. package/lib/chevre/service/payment/any/onPaid.js +1 -1
  148. package/lib/chevre/service/payment/any/onRefund.js +1 -1
  149. package/lib/chevre/service/payment/any.d.ts +9 -5
  150. package/lib/chevre/service/payment/any.js +80 -18
  151. package/lib/chevre/service/payment/creditCard.d.ts +1 -1
  152. package/lib/chevre/service/payment/creditCard.js +21 -15
  153. package/lib/chevre/service/payment/movieTicket/checkByIdentifier.d.ts +7 -6
  154. package/lib/chevre/service/payment/movieTicket/validation.d.ts +6 -6
  155. package/lib/chevre/service/payment/movieTicket/validation.js +54 -31
  156. package/lib/chevre/service/payment/movieTicket.d.ts +2 -2
  157. package/lib/chevre/service/payment/movieTicket.js +5 -4
  158. package/lib/chevre/service/product.js +1 -5
  159. package/lib/chevre/service/report/telemetry.d.ts +0 -11
  160. package/lib/chevre/service/report/telemetry.js +21 -24
  161. package/lib/chevre/service/reserve/cancelReservation.d.ts +5 -3
  162. package/lib/chevre/service/reserve/cancelReservation.js +147 -139
  163. package/lib/chevre/service/reserve/checkInReservation.d.ts +9 -4
  164. package/lib/chevre/service/reserve/checkInReservation.js +77 -3
  165. package/lib/chevre/service/reserve/confirmReservation.d.ts +7 -4
  166. package/lib/chevre/service/reserve/confirmReservation.js +125 -58
  167. package/lib/chevre/service/reserve/factory.d.ts +1 -1
  168. package/lib/chevre/service/reserve/potentialActions/onReservationCanceled.d.ts +17 -5
  169. package/lib/chevre/service/reserve/potentialActions/onReservationCanceled.js +26 -24
  170. package/lib/chevre/service/reserve/potentialActions/onReservationCheckedIn.js +2 -3
  171. package/lib/chevre/service/reserve/potentialActions/onReservationConfirmed.js +2 -31
  172. package/lib/chevre/service/reserve/potentialActions/onReservationUsed.js +2 -3
  173. package/lib/chevre/service/reserve/useReservation.d.ts +7 -3
  174. package/lib/chevre/service/reserve/useReservation.js +61 -71
  175. package/lib/chevre/service/reserve/verifyToken4reservation.d.ts +15 -0
  176. package/lib/chevre/service/reserve/verifyToken4reservation.js +56 -0
  177. package/lib/chevre/service/reserve.d.ts +3 -2
  178. package/lib/chevre/service/reserve.js +4 -2
  179. package/lib/chevre/service/task/cancelPendingReservation.js +5 -1
  180. package/lib/chevre/service/task/confirmRegisterServiceTransaction.js +1 -1
  181. package/lib/chevre/service/task/deleteTransaction.js +10 -8
  182. package/lib/chevre/service/task/importOffersFromCOA.js +4 -0
  183. package/lib/chevre/service/task/onAuthorizationCreated.d.ts +7 -0
  184. package/lib/chevre/service/task/onAuthorizationCreated.js +108 -0
  185. package/lib/chevre/service/task/placeOrder.js +1 -1
  186. package/lib/chevre/service/task/reserve.js +10 -7
  187. package/lib/chevre/service/task/returnOrder.js +1 -1
  188. package/lib/chevre/service/task/returnPayTransaction.js +2 -12
  189. package/lib/chevre/service/task/sendOrder.js +1 -1
  190. package/lib/chevre/service/task/useReservation.d.ts +7 -0
  191. package/lib/chevre/service/task/useReservation.js +36 -0
  192. package/lib/chevre/service/task/voidReserveTransaction.js +3 -1
  193. package/lib/chevre/service/task.d.ts +9 -0
  194. package/lib/chevre/service/task.js +43 -4
  195. package/lib/chevre/service/transaction/deleteTransaction.d.ts +21 -0
  196. package/lib/chevre/service/transaction/deleteTransaction.js +232 -0
  197. package/lib/chevre/service/transaction/moneyTransfer/exportTasks/factory.js +11 -1
  198. package/lib/chevre/service/transaction/moneyTransfer/factory.js +3 -1
  199. package/lib/chevre/service/transaction/moneyTransfer/potentialActions.d.ts +1 -0
  200. package/lib/chevre/service/transaction/moneyTransfer/potentialActions.js +1 -1
  201. package/lib/chevre/service/transaction/moneyTransfer.js +9 -12
  202. package/lib/chevre/service/transaction/orderProgramMembership.js +6 -2
  203. package/lib/chevre/service/transaction/placeOrder/exportTasks/factory.js +42 -30
  204. package/lib/chevre/service/transaction/placeOrder.js +1 -5
  205. package/lib/chevre/service/transaction/placeOrderInProgress/factory.js +1 -1
  206. package/lib/chevre/service/transaction/placeOrderInProgress/potentialActions/moneyTransfer.d.ts +1 -0
  207. package/lib/chevre/service/transaction/placeOrderInProgress/potentialActions/moneyTransfer.js +1 -1
  208. package/lib/chevre/service/transaction/placeOrderInProgress/potentialActions/registerService.d.ts +1 -0
  209. package/lib/chevre/service/transaction/placeOrderInProgress/potentialActions/registerService.js +1 -1
  210. package/lib/chevre/service/transaction/placeOrderInProgress/potentialActions.d.ts +1 -0
  211. package/lib/chevre/service/transaction/placeOrderInProgress/result/acceptedOffers.d.ts +3 -0
  212. package/lib/chevre/service/transaction/placeOrderInProgress/result/acceptedOffers.js +7 -3
  213. package/lib/chevre/service/transaction/placeOrderInProgress/result.d.ts +1 -0
  214. package/lib/chevre/service/transaction/placeOrderInProgress/result.js +2 -2
  215. package/lib/chevre/service/transaction/placeOrderInProgress/validation/validateMovieTicket.d.ts +1 -1
  216. package/lib/chevre/service/transaction/placeOrderInProgress/validation/validateMovieTicket.js +2 -2
  217. package/lib/chevre/service/transaction/placeOrderInProgress/validation.d.ts +2 -1
  218. package/lib/chevre/service/transaction/placeOrderInProgress/validation.js +23 -17
  219. package/lib/chevre/service/transaction/placeOrderInProgress.d.ts +0 -3
  220. package/lib/chevre/service/transaction/placeOrderInProgress.js +22 -11
  221. package/lib/chevre/service/transaction/returnOrder/exportTasks/factory.js +10 -1
  222. package/lib/chevre/service/transaction/returnOrder/potentialActions/returnPaymentMethod.js +25 -17
  223. package/lib/chevre/service/transaction/returnOrder.d.ts +4 -0
  224. package/lib/chevre/service/transaction/returnOrder.js +225 -35
  225. package/lib/chevre/service/transaction.d.ts +8 -13
  226. package/lib/chevre/service/transaction.js +12 -145
  227. package/lib/chevre/settings.d.ts +4 -1
  228. package/lib/chevre/settings.js +15 -5
  229. package/package.json +5 -5
  230. package/example/src/chevre/migrateMoneyTransferPendingTransactionIdentifier.ts +0 -96
  231. package/example/src/chevre/migrateMovieAdditionalProperties.ts +0 -98
  232. package/lib/chevre/service/task/deleteAssetTransaction.d.ts +0 -12
  233. package/lib/chevre/service/task/deleteAssetTransaction.js +0 -65
  234. package/lib/chevre/service/task/deleteOrder.d.ts +0 -6
  235. package/lib/chevre/service/task/deleteOrder.js +0 -35
@@ -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 };
@@ -27,7 +27,7 @@ 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;
@@ -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
  reservationNumber: string;
57
57
  reservationStatus: string;
@@ -61,23 +61,81 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
61
61
  project?: any;
62
62
  additionalProperty?: any;
63
63
  reservationFor?: any;
64
+ underName?: any;
65
+ issuedThrough?: any;
66
+ subReservation?: any;
67
+ broker?: any;
64
68
  price?: any;
65
69
  priceCurrency?: string | undefined;
66
- issuedThrough?: any;
67
70
  reservedTicket?: any;
68
- subReservation?: any;
69
71
  additionalTicketText?: string | undefined;
70
72
  bookingTime?: Date | undefined;
73
+ modifiedTime?: Date | undefined;
74
+ numSeats?: number | undefined;
75
+ programMembershipUsed?: any;
76
+ bookingAgent?: any;
77
+ cancelReservationUrl?: string | undefined;
78
+ checkinUrl?: string | undefined;
79
+ confirmReservationUrl?: string | undefined;
80
+ modifyReservationUrl?: string | undefined;
81
+ previousReservationStatus?: string | undefined;
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
+ underName?: any;
93
+ issuedThrough?: any;
94
+ subReservation?: any;
71
95
  broker?: any;
96
+ price?: any;
97
+ priceCurrency?: string | undefined;
98
+ reservedTicket?: any;
99
+ additionalTicketText?: string | undefined;
100
+ bookingTime?: Date | undefined;
72
101
  modifiedTime?: Date | undefined;
73
102
  numSeats?: number | undefined;
74
103
  programMembershipUsed?: 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;
75
120
  underName?: any;
121
+ issuedThrough?: any;
122
+ subReservation?: any;
123
+ broker?: any;
124
+ price?: any;
125
+ priceCurrency?: string | undefined;
126
+ reservedTicket?: any;
127
+ additionalTicketText?: string | undefined;
128
+ bookingTime?: Date | undefined;
129
+ modifiedTime?: Date | undefined;
130
+ numSeats?: number | undefined;
131
+ programMembershipUsed?: any;
76
132
  bookingAgent?: any;
77
133
  cancelReservationUrl?: string | undefined;
78
134
  checkinUrl?: string | undefined;
79
135
  confirmReservationUrl?: string | undefined;
80
136
  modifyReservationUrl?: string | undefined;
81
137
  previousReservationStatus?: string | undefined;
82
- }>;
138
+ }> & Required<{
139
+ _id: string;
140
+ }>, never>>;
83
141
  export { modelName, schema };
@@ -48,7 +48,7 @@ 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
54
  strictQuery: false,
@@ -27,7 +27,7 @@ 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;
@@ -51,8 +51,16 @@ 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
  permissions: string[];
56
56
  typeOf?: string | undefined;
57
- }>;
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>>;
58
66
  export { modelName, schema };
@@ -27,7 +27,7 @@ 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;
@@ -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
  hasMerchantReturnPolicy: any[];
@@ -64,5 +64,33 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
64
64
  branchCode?: string | undefined;
65
65
  telephone?: string | undefined;
66
66
  parentOrganization?: any;
67
- }>;
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>>;
68
96
  export { modelName, schema };
@@ -75,3 +75,9 @@ schema.index({ additionalProperty: 1, branchCode: 1 }, {
75
75
  additionalProperty: { $exists: true }
76
76
  }
77
77
  });
78
+ schema.index({ 'hasMerchantReturnPolicy.itemCondition.id': 1, branchCode: 1 }, {
79
+ name: 'searchByHasMerchantReturnPolicyItemConditionId',
80
+ partialFilterExpression: {
81
+ 'hasMerchantReturnPolicy.itemCondition.id': { $exists: true }
82
+ }
83
+ });
@@ -27,7 +27,7 @@ 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;
@@ -51,8 +51,16 @@ 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
  project?: any;
57
- }>;
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>>;
58
66
  export { modelName, schema };
@@ -17,7 +17,7 @@ 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
23
  strictQuery: false,
@@ -27,7 +27,7 @@ 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;
@@ -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
  executionResults: any[];
56
56
  name?: string | undefined;
57
57
  status?: string | undefined;
@@ -61,6 +61,33 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
61
61
  remainingNumberOfTries?: number | undefined;
62
62
  lastTriedAt?: Date | undefined;
63
63
  numberOfTried?: number | undefined;
64
+ executor?: any;
64
65
  dateAborted?: Date | undefined;
65
- }>;
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>>;
66
93
  export { modelName, schema };
@@ -17,12 +17,13 @@ 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,
28
29
  strictQuery: false,