@chevre/domain 21.2.0-alpha.2 → 21.2.0-alpha.21

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 (187) hide show
  1. package/example/src/chevre/aggregateEventReservation.ts +1 -1
  2. package/example/src/chevre/countDelayedTasks.ts +17 -0
  3. package/example/src/chevre/countDelayedTransactions.ts +60 -0
  4. package/example/src/chevre/countMoneyTransferTransaction.ts +36 -0
  5. package/example/src/chevre/createManyEventsIfNotExist.ts +4 -1
  6. package/example/src/chevre/lockStockHolder.ts +48 -0
  7. package/example/src/chevre/migrateOrderAdditionalProperties.ts +85 -0
  8. package/example/src/chevre/migrateStockHolderKeys.ts +89 -0
  9. package/example/src/chevre/processReserve.ts +2 -2
  10. package/example/src/chevre/searchEventSeats.ts +42 -0
  11. package/example/src/chevre/transaction/findCreditCard.ts +1 -1
  12. package/example/src/chevre/transaction/makeExpired.ts +18 -0
  13. package/example/src/chevre/transaction/orderMembershipService.ts +1 -1
  14. package/example/src/chevre/transaction/startExportTasks.ts +19 -0
  15. package/example/src/chevre/updateTransaction.ts +1 -1
  16. package/lib/chevre/eventEmitter/task.d.ts +18 -0
  17. package/lib/chevre/eventEmitter/task.js +28 -0
  18. package/lib/chevre/eventEmitter/transaction.d.ts +21 -0
  19. package/lib/chevre/eventEmitter/transaction.js +28 -0
  20. package/lib/chevre/eventEmitter.d.ts +3 -0
  21. package/lib/chevre/eventEmitter.js +7 -0
  22. package/lib/chevre/index.d.ts +3 -2
  23. package/lib/chevre/index.js +5 -3
  24. package/lib/chevre/repo/account.js +0 -4
  25. package/lib/chevre/repo/accountTitle.js +0 -4
  26. package/lib/chevre/repo/accountTransaction.d.ts +0 -10
  27. package/lib/chevre/repo/accountTransaction.js +0 -57
  28. package/lib/chevre/repo/accountingReport.js +0 -4
  29. package/lib/chevre/repo/action.js +0 -4
  30. package/lib/chevre/repo/additionalProperty.js +0 -4
  31. package/lib/chevre/repo/aggregation.js +0 -4
  32. package/lib/chevre/repo/assetTransaction.d.ts +4 -6
  33. package/lib/chevre/repo/assetTransaction.js +69 -45
  34. package/lib/chevre/repo/categoryCode.js +0 -4
  35. package/lib/chevre/repo/code.js +0 -4
  36. package/lib/chevre/repo/comment.js +0 -4
  37. package/lib/chevre/repo/confirmationNumber.js +1 -1
  38. package/lib/chevre/repo/creativeWork.d.ts +1 -3
  39. package/lib/chevre/repo/creativeWork.js +0 -4
  40. package/lib/chevre/repo/customer.js +0 -4
  41. package/lib/chevre/repo/emailMessage.d.ts +1 -27
  42. package/lib/chevre/repo/emailMessage.js +0 -4
  43. package/lib/chevre/repo/event.d.ts +5 -1
  44. package/lib/chevre/repo/event.js +0 -4
  45. package/lib/chevre/repo/member.js +0 -4
  46. package/lib/chevre/repo/merchantReturnPolicy.d.ts +1 -3
  47. package/lib/chevre/repo/merchantReturnPolicy.js +0 -4
  48. package/lib/chevre/repo/mongoose/schemas/account.d.ts +5 -2
  49. package/lib/chevre/repo/mongoose/schemas/account.js +1 -0
  50. package/lib/chevre/repo/mongoose/schemas/accountTitle.d.ts +30 -3
  51. package/lib/chevre/repo/mongoose/schemas/accountTitle.js +1 -0
  52. package/lib/chevre/repo/mongoose/schemas/accountTransaction.d.ts +32 -3
  53. package/lib/chevre/repo/mongoose/schemas/accountTransaction.js +2 -1
  54. package/lib/chevre/repo/mongoose/schemas/accountingReport.d.ts +14 -3
  55. package/lib/chevre/repo/mongoose/schemas/accountingReport.js +1 -0
  56. package/lib/chevre/repo/mongoose/schemas/action.d.ts +44 -3
  57. package/lib/chevre/repo/mongoose/schemas/action.js +2 -1
  58. package/lib/chevre/repo/mongoose/schemas/additionalProperty.d.ts +18 -3
  59. package/lib/chevre/repo/mongoose/schemas/additionalProperty.js +1 -0
  60. package/lib/chevre/repo/mongoose/schemas/aggregation.d.ts +5 -2
  61. package/lib/chevre/repo/mongoose/schemas/aggregation.js +1 -0
  62. package/lib/chevre/repo/mongoose/schemas/assetTransaction.d.ts +42 -3
  63. package/lib/chevre/repo/mongoose/schemas/assetTransaction.js +2 -1
  64. package/lib/chevre/repo/mongoose/schemas/authorization.d.ts +20 -3
  65. package/lib/chevre/repo/mongoose/schemas/authorization.js +2 -1
  66. package/lib/chevre/repo/mongoose/schemas/categoryCode.d.ts +26 -3
  67. package/lib/chevre/repo/mongoose/schemas/categoryCode.js +1 -0
  68. package/lib/chevre/repo/mongoose/schemas/comments.d.ts +28 -3
  69. package/lib/chevre/repo/mongoose/schemas/comments.js +2 -1
  70. package/lib/chevre/repo/mongoose/schemas/creativeWork.d.ts +44 -3
  71. package/lib/chevre/repo/mongoose/schemas/creativeWork.js +1 -0
  72. package/lib/chevre/repo/mongoose/schemas/customer.d.ts +26 -3
  73. package/lib/chevre/repo/mongoose/schemas/customer.js +1 -0
  74. package/lib/chevre/repo/mongoose/schemas/emailMessages.d.ts +22 -3
  75. package/lib/chevre/repo/mongoose/schemas/emailMessages.js +1 -0
  76. package/lib/chevre/repo/mongoose/schemas/event.d.ts +72 -3
  77. package/lib/chevre/repo/mongoose/schemas/event.js +1 -0
  78. package/lib/chevre/repo/mongoose/schemas/member.d.ts +14 -3
  79. package/lib/chevre/repo/mongoose/schemas/member.js +1 -0
  80. package/lib/chevre/repo/mongoose/schemas/merchantReturnPolicy.d.ts +22 -3
  81. package/lib/chevre/repo/mongoose/schemas/merchantReturnPolicy.js +1 -0
  82. package/lib/chevre/repo/mongoose/schemas/offer.d.ts +66 -3
  83. package/lib/chevre/repo/mongoose/schemas/offer.js +1 -0
  84. package/lib/chevre/repo/mongoose/schemas/offerCatalog.d.ts +28 -3
  85. package/lib/chevre/repo/mongoose/schemas/offerCatalog.js +1 -0
  86. package/lib/chevre/repo/mongoose/schemas/order.d.ts +52 -3
  87. package/lib/chevre/repo/mongoose/schemas/order.js +2 -1
  88. package/lib/chevre/repo/mongoose/schemas/ownershipInfo.d.ts +26 -3
  89. package/lib/chevre/repo/mongoose/schemas/ownershipInfo.js +2 -1
  90. package/lib/chevre/repo/mongoose/schemas/place.d.ts +50 -3
  91. package/lib/chevre/repo/mongoose/schemas/place.js +1 -0
  92. package/lib/chevre/repo/mongoose/schemas/priceSpecification.d.ts +30 -3
  93. package/lib/chevre/repo/mongoose/schemas/priceSpecification.js +1 -0
  94. package/lib/chevre/repo/mongoose/schemas/product.d.ts +32 -3
  95. package/lib/chevre/repo/mongoose/schemas/product.js +1 -0
  96. package/lib/chevre/repo/mongoose/schemas/project.d.ts +24 -3
  97. package/lib/chevre/repo/mongoose/schemas/project.js +1 -0
  98. package/lib/chevre/repo/mongoose/schemas/reservation.d.ts +62 -3
  99. package/lib/chevre/repo/mongoose/schemas/reservation.js +2 -1
  100. package/lib/chevre/repo/mongoose/schemas/role.d.ts +12 -3
  101. package/lib/chevre/repo/mongoose/schemas/role.js +1 -0
  102. package/lib/chevre/repo/mongoose/schemas/seller.d.ts +32 -3
  103. package/lib/chevre/repo/mongoose/schemas/seller.js +1 -0
  104. package/lib/chevre/repo/mongoose/schemas/serviceOutput.d.ts +12 -3
  105. package/lib/chevre/repo/mongoose/schemas/serviceOutput.js +2 -1
  106. package/lib/chevre/repo/mongoose/schemas/task.d.ts +31 -3
  107. package/lib/chevre/repo/mongoose/schemas/task.js +3 -1
  108. package/lib/chevre/repo/mongoose/schemas/telemetry.d.ts +22 -3
  109. package/lib/chevre/repo/mongoose/schemas/telemetry.js +1 -0
  110. package/lib/chevre/repo/mongoose/schemas/transaction.d.ts +38 -3
  111. package/lib/chevre/repo/mongoose/schemas/transaction.js +2 -1
  112. package/lib/chevre/repo/mongoose/schemas/trip.d.ts +12 -3
  113. package/lib/chevre/repo/mongoose/schemas/trip.js +1 -0
  114. package/lib/chevre/repo/offer.js +0 -5
  115. package/lib/chevre/repo/offerCatalog.js +0 -4
  116. package/lib/chevre/repo/order.d.ts +25 -0
  117. package/lib/chevre/repo/order.js +5 -4
  118. package/lib/chevre/repo/orderNumber.d.ts +0 -1
  119. package/lib/chevre/repo/orderNumber.js +2 -12
  120. package/lib/chevre/repo/ownershipInfo.js +0 -4
  121. package/lib/chevre/repo/permit.js +0 -4
  122. package/lib/chevre/repo/place.d.ts +5 -1
  123. package/lib/chevre/repo/place.js +1 -10
  124. package/lib/chevre/repo/priceSpecification.js +0 -4
  125. package/lib/chevre/repo/product.js +0 -4
  126. package/lib/chevre/repo/project.js +0 -4
  127. package/lib/chevre/repo/rateLimit/offer.d.ts +3 -2
  128. package/lib/chevre/repo/rateLimit/offer.js +14 -14
  129. package/lib/chevre/repo/reservation.js +0 -4
  130. package/lib/chevre/repo/role.js +0 -4
  131. package/lib/chevre/repo/seller.js +0 -4
  132. package/lib/chevre/repo/serviceOutput.js +0 -4
  133. package/lib/chevre/repo/serviceOutputIdentifier.d.ts +2 -1
  134. package/lib/chevre/repo/serviceOutputIdentifier.js +14 -15
  135. package/lib/chevre/repo/{itemAvailability/screeningEvent.d.ts → stockHolder.d.ts} +5 -6
  136. package/lib/chevre/repo/stockHolder.js +273 -0
  137. package/lib/chevre/repo/task.d.ts +17 -2
  138. package/lib/chevre/repo/task.js +61 -10
  139. package/lib/chevre/repo/telemetry.js +0 -4
  140. package/lib/chevre/repo/transaction.d.ts +3 -2
  141. package/lib/chevre/repo/transaction.js +116 -54
  142. package/lib/chevre/repo/transactionNumber.d.ts +2 -1
  143. package/lib/chevre/repo/transactionNumber.js +14 -15
  144. package/lib/chevre/repo/trip.js +0 -4
  145. package/lib/chevre/repository.d.ts +3 -5
  146. package/lib/chevre/repository.js +5 -8
  147. package/lib/chevre/service/aggregation/event/aggregateScreeningEvent.d.ts +2 -2
  148. package/lib/chevre/service/aggregation/event/aggregateScreeningEvent.js +4 -3
  149. package/lib/chevre/service/assetTransaction/cancelReservation.js +1 -5
  150. package/lib/chevre/service/assetTransaction/moneyTransfer.js +1 -1
  151. package/lib/chevre/service/assetTransaction/pay.js +2 -2
  152. package/lib/chevre/service/assetTransaction/refund.js +1 -1
  153. package/lib/chevre/service/assetTransaction/registerService.js +1 -2
  154. package/lib/chevre/service/assetTransaction/reserve.d.ts +4 -4
  155. package/lib/chevre/service/assetTransaction/reserve.js +8 -5
  156. package/lib/chevre/service/assetTransaction.d.ts +0 -2
  157. package/lib/chevre/service/assetTransaction.js +0 -1
  158. package/lib/chevre/service/offer/event/authorize.d.ts +2 -2
  159. package/lib/chevre/service/offer/event/cancel.d.ts +2 -2
  160. package/lib/chevre/service/offer/event/voidTransaction.d.ts +2 -2
  161. package/lib/chevre/service/offer.d.ts +2 -2
  162. package/lib/chevre/service/offer.js +5 -2
  163. package/lib/chevre/service/order/onOrderStatusChanged.js +1 -1
  164. package/lib/chevre/service/order/placeOrder.js +1 -1
  165. package/lib/chevre/service/order/returnOrder.js +1 -5
  166. package/lib/chevre/service/order/sendOrder.js +1 -1
  167. package/lib/chevre/service/payment/any.js +1 -1
  168. package/lib/chevre/service/reserve/cancelReservation.d.ts +3 -3
  169. package/lib/chevre/service/reserve/cancelReservation.js +6 -6
  170. package/lib/chevre/service/task/aggregateScreeningEvent.js +2 -2
  171. package/lib/chevre/service/task/cancelPendingReservation.js +3 -3
  172. package/lib/chevre/service/task/cancelReservation.js +3 -3
  173. package/lib/chevre/service/task/voidReserveTransaction.js +3 -3
  174. package/lib/chevre/service/task.d.ts +9 -0
  175. package/lib/chevre/service/task.js +22 -1
  176. package/lib/chevre/service/transaction/moneyTransfer.js +1 -3
  177. package/lib/chevre/service/transaction/placeOrder.js +1 -5
  178. package/lib/chevre/service/transaction/placeOrderInProgress.js +2 -2
  179. package/lib/chevre/service/transaction/returnOrder.js +1 -5
  180. package/lib/chevre/service/transaction.d.ts +1 -0
  181. package/lib/chevre/service/transaction.js +1 -7
  182. package/lib/chevre/settings.d.ts +2 -1
  183. package/lib/chevre/settings.js +5 -4
  184. package/package.json +4 -4
  185. package/example/src/chevre/migrateMoneyTransferPendingTransactionIdentifier.ts +0 -96
  186. package/example/src/chevre/migrateMovieAdditionalProperties.ts +0 -98
  187. package/lib/chevre/repo/itemAvailability/screeningEvent.js +0 -193
@@ -23,7 +23,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
23
23
  exports.MongoRepository = exports.PROJECTION_MINIMIZED_EVENT = void 0;
24
24
  const uniqid = require("uniqid");
25
25
  const factory = require("../factory");
26
- const onIndexCreated_1 = require("./mongoose/onIndexCreated");
27
26
  const event_1 = require("./mongoose/schemas/event");
28
27
  const errorHandler_1 = require("../errorHandler");
29
28
  exports.PROJECTION_MINIMIZED_EVENT = {
@@ -48,9 +47,6 @@ exports.PROJECTION_MINIMIZED_EVENT = {
48
47
  class MongoRepository {
49
48
  constructor(connection) {
50
49
  this.eventModel = connection.model(event_1.modelName, event_1.schema);
51
- if (connection.get('autoIndex') === true) {
52
- this.eventModel.on(onIndexCreated_1.INDEX_EVENT, onIndexCreated_1.onIndexCreated);
53
- }
54
50
  }
55
51
  // tslint:disable-next-line:cyclomatic-complexity max-func-body-length
56
52
  static CREATE_MONGO_CONDITIONS(conditions) {
@@ -11,7 +11,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.MongoRepository = void 0;
13
13
  const factory = require("../factory");
14
- const onIndexCreated_1 = require("./mongoose/onIndexCreated");
15
14
  const member_1 = require("./mongoose/schemas/member");
16
15
  /**
17
16
  * IAMメンバーリポジトリ
@@ -19,9 +18,6 @@ const member_1 = require("./mongoose/schemas/member");
19
18
  class MongoRepository {
20
19
  constructor(connection) {
21
20
  this.memberModel = connection.model(member_1.modelName, member_1.schema);
22
- if (connection.get('autoIndex') === true) {
23
- this.memberModel.on(onIndexCreated_1.INDEX_EVENT, onIndexCreated_1.onIndexCreated);
24
- }
25
21
  }
26
22
  // tslint:disable-next-line:cyclomatic-complexity max-func-body-length
27
23
  static CREATE_MONGO_CONDITIONS(params) {
@@ -31,9 +31,7 @@ export declare class MongoRepository {
31
31
  private readonly merchantReturnPolicyModel;
32
32
  constructor(connection: Connection);
33
33
  static CREATE_MONGO_CONDITIONS(params: factory.unitPriceOffer.IOfferMerchantReturnPolicySearchConditions): any[];
34
- save(params: factory.unitPriceOffer.IOfferMerchantReturnPolicy): Promise<import("mongoose").LeanDocument<any> & Required<{
35
- _id: unknown;
36
- }>>;
34
+ save(params: factory.unitPriceOffer.IOfferMerchantReturnPolicy): Promise<any>;
37
35
  findById(params: {
38
36
  id: string;
39
37
  }): Promise<factory.unitPriceOffer.IOfferMerchantReturnPolicy>;
@@ -21,7 +21,6 @@ var __rest = (this && this.__rest) || function (s, e) {
21
21
  };
22
22
  Object.defineProperty(exports, "__esModule", { value: true });
23
23
  exports.MongoRepository = void 0;
24
- const onIndexCreated_1 = require("./mongoose/onIndexCreated");
25
24
  const merchantReturnPolicy_1 = require("./mongoose/schemas/merchantReturnPolicy");
26
25
  const factory = require("../factory");
27
26
  /**
@@ -30,9 +29,6 @@ const factory = require("../factory");
30
29
  class MongoRepository {
31
30
  constructor(connection) {
32
31
  this.merchantReturnPolicyModel = connection.model(merchantReturnPolicy_1.modelName, merchantReturnPolicy_1.schema);
33
- if (connection.get('autoIndex') === true) {
34
- this.merchantReturnPolicyModel.on(onIndexCreated_1.INDEX_EVENT, onIndexCreated_1.onIndexCreated);
35
- }
36
32
  }
37
33
  // tslint:disable-next-line:max-func-body-length
38
34
  static CREATE_MONGO_CONDITIONS(params) {
@@ -27,12 +27,13 @@ declare const modelName = "Account";
27
27
  /**
28
28
  * 口座スキーマ
29
29
  */
30
- declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").ResolveSchemaOptions<{
30
+ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
31
31
  collection: string;
32
32
  id: true;
33
33
  read: string;
34
34
  writeConcern: import("mongodb").WriteConcern;
35
35
  strict: false;
36
+ strictQuery: false;
36
37
  useNestedStrict: boolean;
37
38
  timestamps: {
38
39
  createdAt: string;
@@ -50,5 +51,7 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
50
51
  minimize: false;
51
52
  versionKey: false;
52
53
  };
53
- }>, {}>;
54
+ }, {}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{}>> & Omit<import("mongoose").FlatRecord<{}> & Required<{
55
+ _id: unknown;
56
+ }>, never>>;
54
57
  export { modelName, schema };
@@ -14,6 +14,7 @@ const schema = new mongoose_1.Schema({}, {
14
14
  read: 'primaryPreferred',
15
15
  writeConcern: writeConcern_1.writeConcern,
16
16
  strict: false,
17
+ strictQuery: false,
17
18
  useNestedStrict: true,
18
19
  timestamps: {
19
20
  createdAt: 'createdAt',
@@ -27,11 +27,12 @@ declare const modelName = "AccountTitle";
27
27
  /**
28
28
  * 勘定科目スキーマ
29
29
  */
30
- declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").ResolveSchemaOptions<{
30
+ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
31
31
  collection: string;
32
32
  id: true;
33
33
  read: string;
34
34
  writeConcern: import("mongodb").WriteConcern;
35
+ strictQuery: false;
35
36
  timestamps: {
36
37
  createdAt: string;
37
38
  updatedAt: string;
@@ -48,7 +49,7 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
48
49
  minimize: false;
49
50
  versionKey: false;
50
51
  };
51
- }>, {
52
+ }, {
52
53
  typeOf: string;
53
54
  name?: string | undefined;
54
55
  project?: any;
@@ -60,5 +61,31 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
60
61
  inDefinedTermSet?: any;
61
62
  hasDefinedTerm?: any;
62
63
  additionalProperty?: any;
63
- }>;
64
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
65
+ typeOf: string;
66
+ name?: string | undefined;
67
+ project?: any;
68
+ codeValue?: string | undefined;
69
+ alternateName?: string | undefined;
70
+ description?: string | undefined;
71
+ inCodeSet?: any;
72
+ hasCategoryCode?: any;
73
+ inDefinedTermSet?: any;
74
+ hasDefinedTerm?: any;
75
+ additionalProperty?: any;
76
+ }>> & Omit<import("mongoose").FlatRecord<{
77
+ typeOf: string;
78
+ name?: string | undefined;
79
+ project?: any;
80
+ codeValue?: string | undefined;
81
+ alternateName?: string | undefined;
82
+ description?: string | undefined;
83
+ inCodeSet?: any;
84
+ hasCategoryCode?: any;
85
+ inDefinedTermSet?: any;
86
+ hasDefinedTerm?: any;
87
+ additionalProperty?: any;
88
+ }> & {
89
+ _id: import("mongoose").Types.ObjectId;
90
+ }, never>>;
64
91
  export { modelName, schema };
@@ -28,6 +28,7 @@ const schema = new mongoose_1.Schema({
28
28
  id: true,
29
29
  read: 'primaryPreferred',
30
30
  writeConcern: writeConcern_1.writeConcern,
31
+ strictQuery: false,
31
32
  timestamps: {
32
33
  createdAt: 'createdAt',
33
34
  updatedAt: 'updatedAt'
@@ -27,12 +27,13 @@ declare const modelName = "AccountTransaction";
27
27
  /**
28
28
  * 口座取引スキーマ
29
29
  */
30
- declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").ResolveSchemaOptions<{
30
+ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
31
31
  collection: string;
32
32
  id: true;
33
33
  read: string;
34
34
  writeConcern: import("mongodb").WriteConcern;
35
35
  strict: true;
36
+ strictQuery: false;
36
37
  useNestedStrict: boolean;
37
38
  timestamps: {
38
39
  createdAt: string;
@@ -50,7 +51,7 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
50
51
  minimize: false;
51
52
  versionKey: false;
52
53
  };
53
- }>, {
54
+ }, {
54
55
  typeOf: string;
55
56
  status: string;
56
57
  transactionNumber: string;
@@ -63,5 +64,33 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
63
64
  startDate?: Date | undefined;
64
65
  endDate?: Date | undefined;
65
66
  potentialActions?: any;
66
- }>;
67
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
68
+ typeOf: string;
69
+ status: string;
70
+ transactionNumber: string;
71
+ object?: any;
72
+ expires?: Date | undefined;
73
+ project?: any;
74
+ identifier?: string | undefined;
75
+ agent?: any;
76
+ recipient?: any;
77
+ startDate?: Date | undefined;
78
+ endDate?: Date | undefined;
79
+ potentialActions?: any;
80
+ }>> & Omit<import("mongoose").FlatRecord<{
81
+ typeOf: string;
82
+ status: string;
83
+ transactionNumber: string;
84
+ object?: any;
85
+ expires?: Date | undefined;
86
+ project?: any;
87
+ identifier?: string | undefined;
88
+ agent?: any;
89
+ recipient?: any;
90
+ startDate?: Date | undefined;
91
+ endDate?: Date | undefined;
92
+ potentialActions?: any;
93
+ }> & {
94
+ _id: import("mongoose").Types.ObjectId;
95
+ }, never>>;
67
96
  export { modelName, schema };
@@ -33,9 +33,10 @@ const schema = new mongoose_1.Schema({
33
33
  }, {
34
34
  collection: 'accountTransactions',
35
35
  id: true,
36
- read: 'primaryPreferred',
36
+ read: 'primary',
37
37
  writeConcern: writeConcern_1.writeConcern,
38
38
  strict: true,
39
+ strictQuery: false,
39
40
  useNestedStrict: true,
40
41
  timestamps: {
41
42
  createdAt: 'createdAt',
@@ -27,12 +27,13 @@ declare const modelName = "AccountingReport";
27
27
  /**
28
28
  * 経理レポートスキーマ
29
29
  */
30
- declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").ResolveSchemaOptions<{
30
+ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
31
31
  collection: string;
32
32
  id: true;
33
33
  read: string;
34
34
  writeConcern: import("mongodb").WriteConcern;
35
35
  strict: false;
36
+ strictQuery: false;
36
37
  useNestedStrict: boolean;
37
38
  timestamps: {
38
39
  createdAt: string;
@@ -50,9 +51,19 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
50
51
  minimize: false;
51
52
  versionKey: false;
52
53
  };
53
- }>, {
54
+ }, {
54
55
  hasPart: (typeof Schema.Types.Mixed)[];
55
56
  mainEntity: typeof Schema.Types.Mixed;
56
57
  project: typeof Schema.Types.Mixed;
57
- }>;
58
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
59
+ hasPart: (typeof Schema.Types.Mixed)[];
60
+ mainEntity: typeof Schema.Types.Mixed;
61
+ project: typeof Schema.Types.Mixed;
62
+ }>> & Omit<import("mongoose").FlatRecord<{
63
+ hasPart: (typeof Schema.Types.Mixed)[];
64
+ mainEntity: typeof Schema.Types.Mixed;
65
+ project: typeof Schema.Types.Mixed;
66
+ }> & {
67
+ _id: import("mongoose").Types.ObjectId;
68
+ }, never>>;
58
69
  export { modelName, schema };
@@ -18,6 +18,7 @@ const schema = new mongoose_1.Schema({
18
18
  read: 'primaryPreferred',
19
19
  writeConcern: writeConcern_1.writeConcern,
20
20
  strict: false,
21
+ strictQuery: false,
21
22
  useNestedStrict: true,
22
23
  timestamps: {
23
24
  createdAt: 'createdAt',
@@ -27,12 +27,13 @@ declare const modelName = "Action";
27
27
  /**
28
28
  * アクションスキーマ
29
29
  */
30
- declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").ResolveSchemaOptions<{
30
+ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
31
31
  collection: string;
32
32
  id: true;
33
33
  read: string;
34
34
  writeConcern: import("mongodb").WriteConcern;
35
35
  strict: true;
36
+ strictQuery: false;
36
37
  useNestedStrict: boolean;
37
38
  timestamps: {
38
39
  createdAt: string;
@@ -50,10 +51,30 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
50
51
  minimize: false;
51
52
  versionKey: false;
52
53
  };
53
- }>, {
54
+ }, {
54
55
  object?: any;
55
56
  typeOf?: string | undefined;
56
57
  error?: any;
58
+ result?: any;
59
+ project?: any;
60
+ description?: string | undefined;
61
+ agent?: any;
62
+ recipient?: any;
63
+ startDate?: Date | undefined;
64
+ endDate?: Date | undefined;
65
+ potentialActions?: any;
66
+ fromLocation?: any;
67
+ toLocation?: any;
68
+ actionStatus?: string | undefined;
69
+ purpose?: any;
70
+ amount?: any;
71
+ instrument?: any;
72
+ location?: any;
73
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
74
+ object?: any;
75
+ typeOf?: string | undefined;
76
+ error?: any;
77
+ result?: any;
57
78
  project?: any;
58
79
  description?: string | undefined;
59
80
  agent?: any;
@@ -64,10 +85,30 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
64
85
  fromLocation?: any;
65
86
  toLocation?: any;
66
87
  actionStatus?: string | undefined;
88
+ purpose?: any;
89
+ amount?: any;
90
+ instrument?: any;
91
+ location?: any;
92
+ }>> & Omit<import("mongoose").FlatRecord<{
93
+ object?: any;
94
+ typeOf?: string | undefined;
95
+ error?: any;
67
96
  result?: any;
97
+ project?: any;
98
+ description?: string | undefined;
99
+ agent?: any;
100
+ recipient?: any;
101
+ startDate?: Date | undefined;
102
+ endDate?: Date | undefined;
103
+ potentialActions?: any;
104
+ fromLocation?: any;
105
+ toLocation?: any;
106
+ actionStatus?: string | undefined;
68
107
  purpose?: any;
69
108
  amount?: any;
70
109
  instrument?: any;
71
110
  location?: any;
72
- }>;
111
+ }> & {
112
+ _id: import("mongoose").Types.ObjectId;
113
+ }, never>>;
73
114
  export { modelName, schema };
@@ -31,10 +31,11 @@ const schema = new mongoose_1.Schema({
31
31
  }, {
32
32
  collection: 'actions',
33
33
  id: true,
34
- read: 'primaryPreferred',
34
+ read: 'primary',
35
35
  writeConcern: writeConcern_1.writeConcern,
36
36
  // true化(2022-11-12~)
37
37
  strict: true,
38
+ strictQuery: false,
38
39
  useNestedStrict: true,
39
40
  timestamps: {
40
41
  createdAt: 'createdAt',
@@ -27,12 +27,13 @@ declare const modelName = "AdditionalProperty";
27
27
  /**
28
28
  * 追加特性スキーマ
29
29
  */
30
- declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").ResolveSchemaOptions<{
30
+ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
31
31
  collection: string;
32
32
  id: true;
33
33
  read: string;
34
34
  writeConcern: import("mongodb").WriteConcern;
35
35
  strict: true;
36
+ strictQuery: false;
36
37
  useNestedStrict: boolean;
37
38
  timestamps: {
38
39
  createdAt: string;
@@ -50,11 +51,25 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
50
51
  minimize: false;
51
52
  versionKey: false;
52
53
  };
53
- }>, {
54
+ }, {
54
55
  typeOf: string;
55
56
  codeValue: string;
56
57
  name?: any;
57
58
  project?: any;
58
59
  inCodeSet?: any;
59
- }>;
60
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
61
+ typeOf: string;
62
+ codeValue: string;
63
+ name?: any;
64
+ project?: any;
65
+ inCodeSet?: any;
66
+ }>> & Omit<import("mongoose").FlatRecord<{
67
+ typeOf: string;
68
+ codeValue: string;
69
+ name?: any;
70
+ project?: any;
71
+ inCodeSet?: any;
72
+ }> & {
73
+ _id: import("mongoose").Types.ObjectId;
74
+ }, never>>;
60
75
  export { modelName, schema };
@@ -26,6 +26,7 @@ const schema = new mongoose_1.Schema({
26
26
  read: 'primaryPreferred',
27
27
  writeConcern: writeConcern_1.writeConcern,
28
28
  strict: true,
29
+ strictQuery: false,
29
30
  useNestedStrict: true,
30
31
  timestamps: {
31
32
  createdAt: 'createdAt',
@@ -27,12 +27,13 @@ declare const modelName = "Aggregation";
27
27
  /**
28
28
  * 集計スキーマ
29
29
  */
30
- declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").ResolveSchemaOptions<{
30
+ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
31
31
  collection: string;
32
32
  id: true;
33
33
  read: string;
34
34
  writeConcern: import("mongodb").WriteConcern;
35
35
  strict: false;
36
+ strictQuery: false;
36
37
  useNestedStrict: boolean;
37
38
  timestamps: {
38
39
  createdAt: string;
@@ -50,5 +51,7 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
50
51
  minimize: false;
51
52
  versionKey: false;
52
53
  };
53
- }>, {}>;
54
+ }, {}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{}>> & Omit<import("mongoose").FlatRecord<{}> & Required<{
55
+ _id: unknown;
56
+ }>, never>>;
54
57
  export { modelName, schema };
@@ -14,6 +14,7 @@ const schema = new mongoose_1.Schema({}, {
14
14
  read: 'primaryPreferred',
15
15
  writeConcern: writeConcern_1.writeConcern,
16
16
  strict: false,
17
+ strictQuery: false,
17
18
  useNestedStrict: true,
18
19
  timestamps: {
19
20
  createdAt: 'createdAt',
@@ -27,12 +27,13 @@ declare const modelName = "AssetTransaction";
27
27
  /**
28
28
  * 資産取引スキーマ
29
29
  */
30
- declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").ResolveSchemaOptions<{
30
+ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
31
31
  collection: string;
32
32
  id: true;
33
33
  read: string;
34
34
  writeConcern: import("mongodb").WriteConcern;
35
35
  strict: true;
36
+ strictQuery: false;
36
37
  useNestedStrict: boolean;
37
38
  timestamps: {
38
39
  createdAt: string;
@@ -50,11 +51,30 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
50
51
  minimize: false;
51
52
  versionKey: false;
52
53
  };
53
- }>, {
54
+ }, {
54
55
  object?: any;
55
56
  typeOf?: string | undefined;
57
+ error?: any;
56
58
  status?: string | undefined;
59
+ result?: any;
60
+ expires?: Date | undefined;
61
+ project?: any;
62
+ agent?: any;
63
+ recipient?: any;
64
+ startDate?: Date | undefined;
65
+ endDate?: Date | undefined;
66
+ potentialActions?: any;
67
+ transactionNumber?: string | undefined;
68
+ tasksExportationStatus?: string | undefined;
69
+ tasksExportedAt?: Date | undefined;
70
+ location?: any;
71
+ seller?: any;
72
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
73
+ object?: any;
74
+ typeOf?: string | undefined;
57
75
  error?: any;
76
+ status?: string | undefined;
77
+ result?: any;
58
78
  expires?: Date | undefined;
59
79
  project?: any;
60
80
  agent?: any;
@@ -65,8 +85,27 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
65
85
  transactionNumber?: string | undefined;
66
86
  tasksExportationStatus?: string | undefined;
67
87
  tasksExportedAt?: Date | undefined;
88
+ location?: any;
89
+ seller?: any;
90
+ }>> & Omit<import("mongoose").FlatRecord<{
91
+ object?: any;
92
+ typeOf?: string | undefined;
93
+ error?: any;
94
+ status?: string | undefined;
68
95
  result?: any;
96
+ expires?: Date | undefined;
97
+ project?: any;
98
+ agent?: any;
99
+ recipient?: any;
100
+ startDate?: Date | undefined;
101
+ endDate?: Date | undefined;
102
+ potentialActions?: any;
103
+ transactionNumber?: string | undefined;
104
+ tasksExportationStatus?: string | undefined;
105
+ tasksExportedAt?: Date | undefined;
69
106
  location?: any;
70
107
  seller?: any;
71
- }>;
108
+ }> & {
109
+ _id: import("mongoose").Types.ObjectId;
110
+ }, never>>;
72
111
  export { modelName, schema };
@@ -30,9 +30,10 @@ const schema = new mongoose_1.Schema({
30
30
  }, {
31
31
  collection: 'assetTransactions',
32
32
  id: true,
33
- read: 'primaryPreferred',
33
+ read: 'primary',
34
34
  writeConcern: writeConcern_1.writeConcern,
35
35
  strict: true,
36
+ strictQuery: false,
36
37
  useNestedStrict: true,
37
38
  timestamps: {
38
39
  createdAt: 'createdAt',
@@ -27,12 +27,13 @@ declare const modelName = "Authorization";
27
27
  /**
28
28
  * 認可スキーマ
29
29
  */
30
- declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").ResolveSchemaOptions<{
30
+ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
31
31
  collection: string;
32
32
  id: true;
33
33
  read: string;
34
34
  writeConcern: import("mongodb").WriteConcern;
35
35
  strict: true;
36
+ strictQuery: false;
36
37
  useNestedStrict: boolean;
37
38
  timestamps: {
38
39
  createdAt: string;
@@ -50,12 +51,28 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
50
51
  minimize: false;
51
52
  versionKey: false;
52
53
  };
53
- }>, {
54
+ }, {
54
55
  object?: any;
55
56
  typeOf?: string | undefined;
56
57
  project?: any;
57
58
  code?: string | undefined;
58
59
  validFrom?: Date | undefined;
59
60
  validUntil?: Date | undefined;
60
- }>;
61
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
62
+ object?: any;
63
+ typeOf?: string | undefined;
64
+ project?: any;
65
+ code?: string | undefined;
66
+ validFrom?: Date | undefined;
67
+ validUntil?: Date | undefined;
68
+ }>> & Omit<import("mongoose").FlatRecord<{
69
+ object?: any;
70
+ typeOf?: string | undefined;
71
+ project?: any;
72
+ code?: string | undefined;
73
+ validFrom?: Date | undefined;
74
+ validUntil?: Date | undefined;
75
+ }> & {
76
+ _id: import("mongoose").Types.ObjectId;
77
+ }, never>>;
61
78
  export { modelName, schema };
@@ -18,9 +18,10 @@ const schema = new mongoose_1.Schema({
18
18
  }, {
19
19
  collection: 'authorizations',
20
20
  id: true,
21
- read: 'primaryPreferred',
21
+ read: 'primary',
22
22
  writeConcern: writeConcern_1.writeConcern,
23
23
  strict: true,
24
+ strictQuery: false,
24
25
  useNestedStrict: true,
25
26
  timestamps: {
26
27
  createdAt: 'createdAt',
@@ -27,12 +27,13 @@ declare const modelName = "CategoryCode";
27
27
  /**
28
28
  * カテゴリーコードスキーマ
29
29
  */
30
- declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").ResolveSchemaOptions<{
30
+ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
31
31
  collection: string;
32
32
  id: true;
33
33
  read: string;
34
34
  writeConcern: import("mongodb").WriteConcern;
35
35
  strict: true;
36
+ strictQuery: false;
36
37
  useNestedStrict: boolean;
37
38
  timestamps: {
38
39
  createdAt: string;
@@ -50,7 +51,7 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
50
51
  minimize: false;
51
52
  versionKey: false;
52
53
  };
53
- }>, {
54
+ }, {
54
55
  typeOf: string;
55
56
  codeValue: string;
56
57
  additionalProperty: any[];
@@ -60,5 +61,27 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
60
61
  paymentMethod?: any;
61
62
  color?: string | undefined;
62
63
  image?: string | undefined;
63
- }>;
64
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
65
+ typeOf: string;
66
+ codeValue: string;
67
+ additionalProperty: any[];
68
+ name?: any;
69
+ project?: any;
70
+ inCodeSet?: any;
71
+ paymentMethod?: any;
72
+ color?: string | undefined;
73
+ image?: string | undefined;
74
+ }>> & Omit<import("mongoose").FlatRecord<{
75
+ typeOf: string;
76
+ codeValue: string;
77
+ additionalProperty: any[];
78
+ name?: any;
79
+ project?: any;
80
+ inCodeSet?: any;
81
+ paymentMethod?: any;
82
+ color?: string | undefined;
83
+ image?: string | undefined;
84
+ }> & {
85
+ _id: import("mongoose").Types.ObjectId;
86
+ }, never>>;
64
87
  export { modelName, schema };
@@ -30,6 +30,7 @@ const schema = new mongoose_1.Schema({
30
30
  read: 'primaryPreferred',
31
31
  writeConcern: writeConcern_1.writeConcern,
32
32
  strict: true,
33
+ strictQuery: false,
33
34
  useNestedStrict: true,
34
35
  timestamps: {
35
36
  createdAt: 'createdAt',