@chevre/domain 21.12.0 → 21.13.0-alpha.1

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 (219) hide show
  1. package/example/src/chevre/searchEvents.ts +1 -1
  2. package/example/src/chevre/searchOrders.ts +1 -1
  3. package/example/src/chevre/transaction/processReturnOrder.ts +8 -8
  4. package/example/src/chevre/transaction/startExportTasks.ts +1 -1
  5. package/example/src/chevre/unsetContainsInPlaceFromMovieTheater.ts +1 -1
  6. package/example/src/chevre/unsetUnnecessaryFields.ts +1 -1
  7. package/example/src/chevre/updateOfferCatalogs.ts +1 -1
  8. package/example/src/chevre/updateTransaction.ts +1 -1
  9. package/lib/chevre/index.d.ts +1 -2
  10. package/lib/chevre/index.js +2 -3
  11. package/lib/chevre/repo/account.js +1 -1
  12. package/lib/chevre/repo/accountTitle.js +1 -1
  13. package/lib/chevre/repo/accountTransaction.js +1 -1
  14. package/lib/chevre/repo/accountingReport.js +1 -1
  15. package/lib/chevre/repo/action.js +1 -1
  16. package/lib/chevre/repo/additionalProperty.js +1 -1
  17. package/lib/chevre/repo/aggregateOffer.js +1 -1
  18. package/lib/chevre/repo/aggregation.js +1 -1
  19. package/lib/chevre/repo/assetTransaction.js +1 -1
  20. package/lib/chevre/repo/categoryCode.js +1 -1
  21. package/lib/chevre/repo/code.js +1 -1
  22. package/lib/chevre/repo/comment.js +1 -1
  23. package/lib/chevre/repo/creativeWork.js +1 -1
  24. package/lib/chevre/repo/customer.js +1 -1
  25. package/lib/chevre/repo/emailMessage.js +1 -1
  26. package/lib/chevre/repo/event.d.ts +2 -2
  27. package/lib/chevre/repo/event.js +6 -2
  28. package/lib/chevre/repo/member.js +1 -1
  29. package/lib/chevre/repo/merchantReturnPolicy.js +1 -1
  30. package/lib/chevre/repo/mongoose/schemas/account.d.ts +4 -56
  31. package/lib/chevre/repo/mongoose/schemas/account.js +80 -32
  32. package/lib/chevre/repo/mongoose/schemas/accountTitle.d.ts +4 -90
  33. package/lib/chevre/repo/mongoose/schemas/accountTitle.js +81 -44
  34. package/lib/chevre/repo/mongoose/schemas/accountTransaction.d.ts +4 -95
  35. package/lib/chevre/repo/mongoose/schemas/accountTransaction.js +129 -62
  36. package/lib/chevre/repo/mongoose/schemas/accountingReport.d.ts +4 -68
  37. package/lib/chevre/repo/mongoose/schemas/accountingReport.js +108 -63
  38. package/lib/chevre/repo/mongoose/schemas/action.d.ts +4 -113
  39. package/lib/chevre/repo/mongoose/schemas/action.js +345 -215
  40. package/lib/chevre/repo/mongoose/schemas/additionalProperty.d.ts +4 -74
  41. package/lib/chevre/repo/mongoose/schemas/additionalProperty.js +65 -32
  42. package/lib/chevre/repo/mongoose/schemas/aggregateOffer.d.ts +4 -73
  43. package/lib/chevre/repo/mongoose/schemas/aggregateOffer.js +258 -155
  44. package/lib/chevre/repo/mongoose/schemas/aggregation.d.ts +4 -56
  45. package/lib/chevre/repo/mongoose/schemas/aggregation.js +28 -10
  46. package/lib/chevre/repo/mongoose/schemas/assetTransaction.d.ts +4 -113
  47. package/lib/chevre/repo/mongoose/schemas/assetTransaction.js +258 -146
  48. package/lib/chevre/repo/mongoose/schemas/authorization.d.ts +4 -77
  49. package/lib/chevre/repo/mongoose/schemas/authorization.js +110 -61
  50. package/lib/chevre/repo/mongoose/schemas/categoryCode.d.ts +4 -86
  51. package/lib/chevre/repo/mongoose/schemas/categoryCode.js +85 -46
  52. package/lib/chevre/repo/mongoose/schemas/comments.d.ts +4 -89
  53. package/lib/chevre/repo/mongoose/schemas/comments.js +59 -28
  54. package/lib/chevre/repo/mongoose/schemas/creativeWork.d.ts +4 -104
  55. package/lib/chevre/repo/mongoose/schemas/creativeWork.js +121 -70
  56. package/lib/chevre/repo/mongoose/schemas/customer.d.ts +4 -86
  57. package/lib/chevre/repo/mongoose/schemas/customer.js +56 -26
  58. package/lib/chevre/repo/mongoose/schemas/emailMessages.d.ts +4 -80
  59. package/lib/chevre/repo/mongoose/schemas/emailMessages.js +41 -17
  60. package/lib/chevre/repo/mongoose/schemas/event.d.ts +4 -158
  61. package/lib/chevre/repo/mongoose/schemas/event.js +307 -193
  62. package/lib/chevre/repo/mongoose/schemas/member.d.ts +4 -68
  63. package/lib/chevre/repo/mongoose/schemas/member.js +65 -37
  64. package/lib/chevre/repo/mongoose/schemas/merchantReturnPolicy.d.ts +4 -80
  65. package/lib/chevre/repo/mongoose/schemas/merchantReturnPolicy.js +29 -11
  66. package/lib/chevre/repo/mongoose/schemas/offerCatalog.d.ts +4 -91
  67. package/lib/chevre/repo/mongoose/schemas/offerCatalog.js +85 -45
  68. package/lib/chevre/repo/mongoose/schemas/offerCatalogItem.d.ts +4 -91
  69. package/lib/chevre/repo/mongoose/schemas/offerCatalogItem.js +29 -10
  70. package/lib/chevre/repo/mongoose/schemas/offerItemCondition.d.ts +4 -73
  71. package/lib/chevre/repo/mongoose/schemas/offerItemCondition.js +37 -12
  72. package/lib/chevre/repo/mongoose/schemas/order.d.ts +4 -128
  73. package/lib/chevre/repo/mongoose/schemas/order.js +407 -259
  74. package/lib/chevre/repo/mongoose/schemas/ownershipInfo.d.ts +4 -86
  75. package/lib/chevre/repo/mongoose/schemas/ownershipInfo.js +187 -111
  76. package/lib/chevre/repo/mongoose/schemas/place.d.ts +4 -128
  77. package/lib/chevre/repo/mongoose/schemas/place.js +159 -93
  78. package/lib/chevre/repo/mongoose/schemas/priceSpecification.d.ts +4 -92
  79. package/lib/chevre/repo/mongoose/schemas/priceSpecification.js +94 -49
  80. package/lib/chevre/repo/mongoose/schemas/product.d.ts +4 -95
  81. package/lib/chevre/repo/mongoose/schemas/product.js +109 -61
  82. package/lib/chevre/repo/mongoose/schemas/project.d.ts +4 -83
  83. package/lib/chevre/repo/mongoose/schemas/project.js +20 -9
  84. package/lib/chevre/repo/mongoose/schemas/reservation.d.ts +4 -143
  85. package/lib/chevre/repo/mongoose/schemas/reservation.js +377 -229
  86. package/lib/chevre/repo/mongoose/schemas/role.d.ts +4 -65
  87. package/lib/chevre/repo/mongoose/schemas/role.js +43 -19
  88. package/lib/chevre/repo/mongoose/schemas/seller.d.ts +4 -95
  89. package/lib/chevre/repo/mongoose/schemas/seller.js +96 -51
  90. package/lib/chevre/repo/mongoose/schemas/serviceOutput.d.ts +4 -65
  91. package/lib/chevre/repo/mongoose/schemas/serviceOutput.js +112 -63
  92. package/lib/chevre/repo/mongoose/schemas/task.d.ts +4 -95
  93. package/lib/chevre/repo/mongoose/schemas/task.js +214 -126
  94. package/lib/chevre/repo/mongoose/schemas/telemetry.d.ts +4 -80
  95. package/lib/chevre/repo/mongoose/schemas/telemetry.js +44 -24
  96. package/lib/chevre/repo/mongoose/schemas/transaction.d.ts +4 -107
  97. package/lib/chevre/repo/mongoose/schemas/transaction.js +291 -176
  98. package/lib/chevre/repo/mongoose/schemas/trip.d.ts +4 -65
  99. package/lib/chevre/repo/mongoose/schemas/trip.js +20 -9
  100. package/lib/chevre/repo/offer.js +5 -4
  101. package/lib/chevre/repo/offerCatalog.d.ts +1 -1
  102. package/lib/chevre/repo/offerCatalog.js +2 -2
  103. package/lib/chevre/repo/offerCatalogItem.js +1 -1
  104. package/lib/chevre/repo/offerItemCondition.js +1 -1
  105. package/lib/chevre/repo/order.js +1 -1
  106. package/lib/chevre/repo/ownershipInfo.js +1 -1
  107. package/lib/chevre/repo/paymentServiceProvider.js +1 -1
  108. package/lib/chevre/repo/permit.js +1 -1
  109. package/lib/chevre/repo/place/hasPOS.js +1 -1
  110. package/lib/chevre/repo/place.js +1 -1
  111. package/lib/chevre/repo/priceSpecification.js +1 -1
  112. package/lib/chevre/repo/product.js +1 -1
  113. package/lib/chevre/repo/productOffer.js +1 -1
  114. package/lib/chevre/repo/project.js +1 -1
  115. package/lib/chevre/repo/reservation.js +1 -1
  116. package/lib/chevre/repo/role.js +1 -1
  117. package/lib/chevre/repo/seller.js +1 -1
  118. package/lib/chevre/repo/serviceOutput.js +1 -1
  119. package/lib/chevre/repo/task.js +1 -1
  120. package/lib/chevre/repo/telemetry.js +1 -1
  121. package/lib/chevre/repo/transaction.js +1 -1
  122. package/lib/chevre/repo/trip.js +1 -1
  123. package/lib/chevre/repository.d.ts +160 -137
  124. package/lib/chevre/repository.js +531 -223
  125. package/lib/chevre/service/account.d.ts +2 -2
  126. package/lib/chevre/service/accountTransaction/deposit.d.ts +2 -2
  127. package/lib/chevre/service/accountTransaction/transfer.d.ts +2 -2
  128. package/lib/chevre/service/accountTransaction/withdraw.d.ts +2 -2
  129. package/lib/chevre/service/accountTransaction.d.ts +1 -1
  130. package/lib/chevre/service/aggregation/event/aggregateScreeningEvent.d.ts +7 -7
  131. package/lib/chevre/service/aggregation/event/aggregateUseActionsOnEvent.d.ts +6 -6
  132. package/lib/chevre/service/aggregation/event/findEventOffers.d.ts +4 -4
  133. package/lib/chevre/service/aggregation/event/importFromCOA.d.ts +1 -1
  134. package/lib/chevre/service/aggregation/project.d.ts +3 -3
  135. package/lib/chevre/service/aggregation/system.d.ts +5 -5
  136. package/lib/chevre/service/assetTransaction/cancelReservation.d.ts +4 -4
  137. package/lib/chevre/service/assetTransaction/moneyTransfer.d.ts +4 -4
  138. package/lib/chevre/service/assetTransaction/moneyTransfer.js +1 -1
  139. package/lib/chevre/service/assetTransaction/pay/account/validation.d.ts +1 -1
  140. package/lib/chevre/service/assetTransaction/pay.d.ts +10 -10
  141. package/lib/chevre/service/assetTransaction/refund.d.ts +4 -4
  142. package/lib/chevre/service/assetTransaction/registerService.d.ts +8 -8
  143. package/lib/chevre/service/assetTransaction/reserve.d.ts +14 -14
  144. package/lib/chevre/service/assetTransaction.d.ts +2 -2
  145. package/lib/chevre/service/code.d.ts +2 -2
  146. package/lib/chevre/service/code.js +1 -2
  147. package/lib/chevre/service/delivery.d.ts +5 -5
  148. package/lib/chevre/service/event/createEvent.d.ts +4 -4
  149. package/lib/chevre/service/event.d.ts +7 -7
  150. package/lib/chevre/service/iam.d.ts +2 -2
  151. package/lib/chevre/service/moneyTransfer.d.ts +5 -5
  152. package/lib/chevre/service/notification.d.ts +2 -2
  153. package/lib/chevre/service/offer/event/authorize.d.ts +15 -15
  154. package/lib/chevre/service/offer/event/cancel.d.ts +7 -7
  155. package/lib/chevre/service/offer/event/importFromCOA.d.ts +3 -3
  156. package/lib/chevre/service/offer/event/searchEventTicketOffers.d.ts +7 -7
  157. package/lib/chevre/service/offer/event/voidTransaction.d.ts +7 -7
  158. package/lib/chevre/service/offer/eventServiceByCOA/validateAcceptedOffers.d.ts +1 -1
  159. package/lib/chevre/service/offer/eventServiceByCOA.d.ts +5 -5
  160. package/lib/chevre/service/offer/moneyTransfer/authorize.d.ts +6 -6
  161. package/lib/chevre/service/offer/moneyTransfer/returnMoneyTransfer.d.ts +5 -5
  162. package/lib/chevre/service/offer/moneyTransfer/settleTransaction.d.ts +2 -2
  163. package/lib/chevre/service/offer/moneyTransfer/voidTransaction.d.ts +3 -3
  164. package/lib/chevre/service/offer/product/searchProductOffers.d.ts +3 -3
  165. package/lib/chevre/service/offer/product.d.ts +14 -14
  166. package/lib/chevre/service/offer.d.ts +6 -6
  167. package/lib/chevre/service/order/confirmPayTransaction.d.ts +10 -10
  168. package/lib/chevre/service/order/deleteOrder.d.ts +5 -5
  169. package/lib/chevre/service/order/findPlaceOrderTransaction.d.ts +1 -1
  170. package/lib/chevre/service/order/onAssetTransactionStatusChanged.d.ts +5 -5
  171. package/lib/chevre/service/order/onOrderStatusChanged.d.ts +2 -2
  172. package/lib/chevre/service/order/onOrderUpdated.d.ts +1 -1
  173. package/lib/chevre/service/order/payOrder.d.ts +4 -4
  174. package/lib/chevre/service/order/placeOrder.d.ts +6 -6
  175. package/lib/chevre/service/order/returnOrder.d.ts +6 -6
  176. package/lib/chevre/service/order/sendOrder.d.ts +6 -6
  177. package/lib/chevre/service/payment/any/onPaid.d.ts +3 -3
  178. package/lib/chevre/service/payment/any/onPaymentStatusChanged/onPaid.d.ts +1 -1
  179. package/lib/chevre/service/payment/any/onPaymentStatusChanged/onRefunded.d.ts +1 -1
  180. package/lib/chevre/service/payment/any/onPaymentStatusChanged.d.ts +2 -2
  181. package/lib/chevre/service/payment/any/onRefund.d.ts +3 -3
  182. package/lib/chevre/service/payment/any.d.ts +10 -10
  183. package/lib/chevre/service/payment/creditCard.d.ts +6 -6
  184. package/lib/chevre/service/payment/faceToFace.d.ts +6 -6
  185. package/lib/chevre/service/payment/movieTicket/checkByIdentifier.d.ts +2 -2
  186. package/lib/chevre/service/payment/movieTicket/getCredentials.d.ts +1 -1
  187. package/lib/chevre/service/payment/movieTicket/validation.d.ts +5 -5
  188. package/lib/chevre/service/payment/movieTicket.d.ts +6 -6
  189. package/lib/chevre/service/payment/paymentCard.d.ts +7 -7
  190. package/lib/chevre/service/payment.d.ts +9 -9
  191. package/lib/chevre/service/permit.d.ts +2 -2
  192. package/lib/chevre/service/product.d.ts +3 -3
  193. package/lib/chevre/service/project.d.ts +16 -16
  194. package/lib/chevre/service/report/telemetry.d.ts +19 -16
  195. package/lib/chevre/service/reserve/cancelReservation.d.ts +3 -3
  196. package/lib/chevre/service/reserve/checkInReservation.d.ts +5 -5
  197. package/lib/chevre/service/reserve/confirmReservation.d.ts +4 -4
  198. package/lib/chevre/service/reserve/potentialActions/onReservationCanceled.d.ts +1 -1
  199. package/lib/chevre/service/reserve/potentialActions/onReservationCheckedIn.d.ts +2 -2
  200. package/lib/chevre/service/reserve/potentialActions/onReservationConfirmed.d.ts +1 -1
  201. package/lib/chevre/service/reserve/potentialActions/onReservationUsed.d.ts +1 -1
  202. package/lib/chevre/service/reserve/useReservation.d.ts +5 -5
  203. package/lib/chevre/service/reserve/verifyToken4reservation.d.ts +1 -1
  204. package/lib/chevre/service/task/onResourceUpdated/onHasPOSUpdated.d.ts +2 -2
  205. package/lib/chevre/service/task/onResourceUpdated/onOfferCatalogUpdated.d.ts +3 -3
  206. package/lib/chevre/service/task/onResourceUpdated/onResourceDeleted.d.ts +15 -15
  207. package/lib/chevre/service/task/onResourceUpdated/syncOfferCatalog.d.ts +2 -2
  208. package/lib/chevre/service/task.d.ts +1 -1
  209. package/lib/chevre/service/task.js +3 -4
  210. package/lib/chevre/service/transaction/deleteTransaction.d.ts +9 -9
  211. package/lib/chevre/service/transaction/moneyTransfer.d.ts +9 -9
  212. package/lib/chevre/service/transaction/orderProgramMembership/findPaymentCardPermit.d.ts +2 -2
  213. package/lib/chevre/service/transaction/placeOrder.d.ts +2 -2
  214. package/lib/chevre/service/transaction/placeOrderInProgress.d.ts +7 -7
  215. package/lib/chevre/service/transaction/returnOrder.d.ts +10 -10
  216. package/lib/chevre/service/transaction.d.ts +2 -2
  217. package/lib/chevre/settings.d.ts +1 -0
  218. package/lib/chevre/settings.js +2 -1
  219. package/package.json +1 -1
@@ -1,74 +1,5 @@
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';
1
+ import { IndexDefinition, IndexOptions, Schema } from 'mongoose';
26
2
  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
- typeOf?: string | undefined;
55
- name?: any;
56
- project?: any;
57
- identifier?: string | undefined;
58
- itemOffered?: any;
59
- }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
60
- typeOf?: string | undefined;
61
- name?: any;
62
- project?: any;
63
- identifier?: string | undefined;
64
- itemOffered?: any;
65
- }>> & Omit<import("mongoose").FlatRecord<{
66
- typeOf?: string | undefined;
67
- name?: any;
68
- project?: any;
69
- identifier?: string | undefined;
70
- itemOffered?: any;
71
- }> & {
72
- _id: import("mongoose").Types.ObjectId;
73
- }, never>>;
74
- export { modelName, schema };
3
+ declare function createSchema(): Schema;
4
+ declare const indexes: [d: IndexDefinition, o: IndexOptions][];
5
+ export { modelName, indexes, createSchema };
@@ -1,21 +1,21 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.schema = exports.modelName = void 0;
3
+ exports.createSchema = exports.indexes = exports.modelName = void 0;
4
4
  const mongoose_1 = require("mongoose");
5
5
  const writeConcern_1 = require("../writeConcern");
6
6
  const settings_1 = require("../../../settings");
7
7
  const modelName = 'OfferItemCondition';
8
8
  exports.modelName = modelName;
9
- /**
10
- * アイテムコンディションスキーマ
11
- */
12
- const schema = new mongoose_1.Schema({
9
+ const schemaDefinition = {
13
10
  project: mongoose_1.SchemaTypes.Mixed,
14
11
  identifier: String,
15
12
  typeOf: String,
16
13
  name: mongoose_1.SchemaTypes.Mixed,
17
14
  itemOffered: mongoose_1.SchemaTypes.Mixed
18
- }, {
15
+ };
16
+ const schemaOptions = {
17
+ autoIndex: settings_1.MONGO_AUTO_INDEX,
18
+ autoCreate: false,
19
19
  collection: 'offerItemConditions',
20
20
  id: true,
21
21
  read: settings_1.MONGO_READ_PREFERENCE,
@@ -38,9 +38,34 @@ const schema = new mongoose_1.Schema({
38
38
  minimize: false,
39
39
  versionKey: false
40
40
  }
41
- });
42
- exports.schema = schema;
43
- schema.index({ createdAt: 1 }, { name: 'searchByCreatedAt' });
44
- schema.index({ updatedAt: 1 }, { name: 'searchByUpdatedAt' });
45
- schema.index({ identifier: 1 }, { name: 'searchByIdentifier' });
46
- schema.index({ 'project.id': 1, identifier: 1 }, { name: 'searchByProjectId' });
41
+ };
42
+ /**
43
+ * アイテムコンディションスキーマ
44
+ */
45
+ let schema;
46
+ function createSchema() {
47
+ if (schema === undefined) {
48
+ schema = new mongoose_1.Schema(schemaDefinition, schemaOptions);
49
+ }
50
+ return schema;
51
+ }
52
+ exports.createSchema = createSchema;
53
+ const indexes = [
54
+ [
55
+ { createdAt: 1 },
56
+ { name: 'searchByCreatedAt' }
57
+ ],
58
+ [
59
+ { updatedAt: 1 },
60
+ { name: 'searchByUpdatedAt' }
61
+ ],
62
+ [
63
+ { identifier: 1 },
64
+ { name: 'searchByIdentifier' }
65
+ ],
66
+ [
67
+ { 'project.id': 1, identifier: 1 },
68
+ { name: 'searchByProjectId' }
69
+ ]
70
+ ];
71
+ exports.indexes = indexes;
@@ -1,129 +1,5 @@
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';
1
+ import { IndexDefinition, IndexOptions, Schema } from 'mongoose';
26
2
  declare const modelName = "Order";
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
- useNestedStrict: boolean;
38
- timestamps: {
39
- createdAt: string;
40
- updatedAt: string;
41
- };
42
- toJSON: {
43
- getters: false;
44
- virtuals: false;
45
- minimize: false;
46
- versionKey: false;
47
- };
48
- toObject: {
49
- getters: false;
50
- virtuals: true;
51
- minimize: false;
52
- versionKey: false;
53
- };
54
- }, {
55
- typeOf: string;
56
- acceptedOffers: any[];
57
- orderedItem: any[];
58
- paymentMethods: any[];
59
- additionalProperty: any[];
60
- identifier: any[];
61
- discounts: any[];
62
- name?: string | undefined;
63
- url?: string | undefined;
64
- project?: any;
65
- broker?: any;
66
- confirmationNumber?: string | undefined;
67
- orderDate?: Date | undefined;
68
- orderNumber?: string | undefined;
69
- price?: number | undefined;
70
- priceCurrency?: string | undefined;
71
- seller?: any;
72
- customer?: any;
73
- returner?: any;
74
- orderStatus?: string | undefined;
75
- previousOrderStatus?: string | undefined;
76
- isGift?: boolean | undefined;
77
- dateReturned?: Date | undefined;
78
- }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
79
- typeOf: string;
80
- acceptedOffers: any[];
81
- orderedItem: any[];
82
- paymentMethods: any[];
83
- additionalProperty: any[];
84
- identifier: any[];
85
- discounts: any[];
86
- name?: string | undefined;
87
- url?: string | undefined;
88
- project?: any;
89
- broker?: any;
90
- confirmationNumber?: string | undefined;
91
- orderDate?: Date | undefined;
92
- orderNumber?: string | undefined;
93
- price?: number | undefined;
94
- priceCurrency?: string | undefined;
95
- seller?: any;
96
- customer?: any;
97
- returner?: any;
98
- orderStatus?: string | undefined;
99
- previousOrderStatus?: string | undefined;
100
- isGift?: boolean | undefined;
101
- dateReturned?: Date | undefined;
102
- }>> & Omit<import("mongoose").FlatRecord<{
103
- typeOf: string;
104
- acceptedOffers: any[];
105
- orderedItem: any[];
106
- paymentMethods: any[];
107
- additionalProperty: any[];
108
- identifier: any[];
109
- discounts: any[];
110
- name?: string | undefined;
111
- url?: string | undefined;
112
- project?: any;
113
- broker?: any;
114
- confirmationNumber?: string | undefined;
115
- orderDate?: Date | undefined;
116
- orderNumber?: string | undefined;
117
- price?: number | undefined;
118
- priceCurrency?: string | undefined;
119
- seller?: any;
120
- customer?: any;
121
- returner?: any;
122
- orderStatus?: string | undefined;
123
- previousOrderStatus?: string | undefined;
124
- isGift?: boolean | undefined;
125
- dateReturned?: Date | undefined;
126
- }> & {
127
- _id: import("mongoose").Types.ObjectId;
128
- }, never>>;
129
- export { modelName, schema };
3
+ declare function createSchema(): Schema;
4
+ declare const indexes: [d: IndexDefinition, o: IndexOptions][];
5
+ export { modelName, indexes, createSchema };