@chevre/domain 21.13.0-alpha.0 → 21.13.0-alpha.2

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 (161) hide show
  1. package/example/src/chevre/searchEvents.ts +5 -2
  2. package/example/src/chevre/searchOrders.ts +1 -1
  3. package/example/src/chevre/task/executeTasks.ts +1 -1
  4. package/example/src/chevre/transaction/findPaymentCardPermit.ts +2 -2
  5. package/example/src/chevre/transaction/processReturnOrder.ts +9 -9
  6. package/example/src/chevre/transaction/startExportTasks.ts +1 -1
  7. package/example/src/chevre/unsetContainsInPlaceFromMovieTheater.ts +1 -1
  8. package/example/src/chevre/unsetUnnecessaryFields.ts +1 -1
  9. package/example/src/chevre/updateOfferCatalogs.ts +1 -1
  10. package/example/src/chevre/updateTransaction.ts +1 -1
  11. package/lib/chevre/errorHandler.d.ts +2 -2
  12. package/lib/chevre/errorHandler.js +38 -19
  13. package/lib/chevre/index.d.ts +5 -5
  14. package/lib/chevre/index.js +31 -12
  15. package/lib/chevre/repo/account.d.ts +1 -1
  16. package/lib/chevre/repo/accountTitle.d.ts +1 -1
  17. package/lib/chevre/repo/accountTransaction.d.ts +1 -1
  18. package/lib/chevre/repo/accountingReport.d.ts +1 -1
  19. package/lib/chevre/repo/accountingReport.js +1 -1
  20. package/lib/chevre/repo/action.d.ts +1 -1
  21. package/lib/chevre/repo/additionalProperty.d.ts +1 -1
  22. package/lib/chevre/repo/aggregateOffer.d.ts +1 -1
  23. package/lib/chevre/repo/aggregation.d.ts +1 -1
  24. package/lib/chevre/repo/assetTransaction.d.ts +1 -1
  25. package/lib/chevre/repo/categoryCode.d.ts +1 -1
  26. package/lib/chevre/repo/code.d.ts +1 -1
  27. package/lib/chevre/repo/comment.d.ts +1 -1
  28. package/lib/chevre/repo/creativeWork.d.ts +1 -1
  29. package/lib/chevre/repo/customer.d.ts +1 -1
  30. package/lib/chevre/repo/emailMessage.d.ts +1 -1
  31. package/lib/chevre/repo/event.d.ts +2 -2
  32. package/lib/chevre/repo/event.js +7 -3
  33. package/lib/chevre/repo/member.d.ts +1 -1
  34. package/lib/chevre/repo/merchantReturnPolicy.d.ts +1 -1
  35. package/lib/chevre/repo/mongoose/writeConcern.d.ts +1 -1
  36. package/lib/chevre/repo/offer.js +2 -1
  37. package/lib/chevre/repo/offerCatalog.d.ts +1 -1
  38. package/lib/chevre/repo/offerCatalog.js +1 -1
  39. package/lib/chevre/repo/offerItemCondition.d.ts +1 -1
  40. package/lib/chevre/repo/order.d.ts +1 -1
  41. package/lib/chevre/repo/order.js +1 -1
  42. package/lib/chevre/repo/ownershipInfo.d.ts +1 -1
  43. package/lib/chevre/repo/ownershipInfo.js +1 -1
  44. package/lib/chevre/repo/permit.d.ts +1 -1
  45. package/lib/chevre/repo/place.d.ts +1 -1
  46. package/lib/chevre/repo/priceSpecification.d.ts +1 -1
  47. package/lib/chevre/repo/product.d.ts +1 -1
  48. package/lib/chevre/repo/project.d.ts +1 -1
  49. package/lib/chevre/repo/reservation.d.ts +1 -1
  50. package/lib/chevre/repo/role.d.ts +1 -1
  51. package/lib/chevre/repo/serviceOutput.d.ts +1 -1
  52. package/lib/chevre/repo/stockHolder.d.ts +2 -2
  53. package/lib/chevre/repo/task.d.ts +1 -1
  54. package/lib/chevre/repo/telemetry.d.ts +1 -1
  55. package/lib/chevre/repo/transaction.d.ts +1 -1
  56. package/lib/chevre/repo/trip.d.ts +1 -1
  57. package/lib/chevre/repository.d.ts +203 -171
  58. package/lib/chevre/repository.js +646 -269
  59. package/lib/chevre/service/account.d.ts +2 -2
  60. package/lib/chevre/service/accountTransaction/deposit.d.ts +2 -2
  61. package/lib/chevre/service/accountTransaction/transfer.d.ts +2 -2
  62. package/lib/chevre/service/accountTransaction/withdraw.d.ts +2 -2
  63. package/lib/chevre/service/accountTransaction.d.ts +1 -1
  64. package/lib/chevre/service/aggregation/event/aggregateScreeningEvent.d.ts +7 -7
  65. package/lib/chevre/service/aggregation/event/aggregateUseActionsOnEvent.d.ts +6 -6
  66. package/lib/chevre/service/aggregation/event/findEventOffers.d.ts +4 -4
  67. package/lib/chevre/service/aggregation/event/importFromCOA.d.ts +1 -1
  68. package/lib/chevre/service/aggregation/project.d.ts +3 -3
  69. package/lib/chevre/service/aggregation/system.d.ts +5 -5
  70. package/lib/chevre/service/assetTransaction/cancelReservation.d.ts +4 -4
  71. package/lib/chevre/service/assetTransaction/cancelReservation.js +2 -2
  72. package/lib/chevre/service/assetTransaction/moneyTransfer.d.ts +4 -4
  73. package/lib/chevre/service/assetTransaction/moneyTransfer.js +1 -1
  74. package/lib/chevre/service/assetTransaction/pay/account/validation.d.ts +1 -1
  75. package/lib/chevre/service/assetTransaction/pay.d.ts +10 -10
  76. package/lib/chevre/service/assetTransaction/refund.d.ts +4 -4
  77. package/lib/chevre/service/assetTransaction/registerService.d.ts +8 -8
  78. package/lib/chevre/service/assetTransaction/reserve.d.ts +14 -14
  79. package/lib/chevre/service/assetTransaction.d.ts +2 -2
  80. package/lib/chevre/service/code.d.ts +2 -2
  81. package/lib/chevre/service/code.js +1 -2
  82. package/lib/chevre/service/delivery.d.ts +5 -5
  83. package/lib/chevre/service/event/createEvent.d.ts +4 -4
  84. package/lib/chevre/service/event.d.ts +7 -7
  85. package/lib/chevre/service/iam.d.ts +2 -2
  86. package/lib/chevre/service/moneyTransfer.d.ts +5 -5
  87. package/lib/chevre/service/notification.d.ts +2 -2
  88. package/lib/chevre/service/offer/event/authorize.d.ts +15 -15
  89. package/lib/chevre/service/offer/event/cancel.d.ts +7 -7
  90. package/lib/chevre/service/offer/event/importFromCOA.d.ts +3 -3
  91. package/lib/chevre/service/offer/event/searchEventTicketOffers.d.ts +7 -7
  92. package/lib/chevre/service/offer/event/voidTransaction.d.ts +7 -7
  93. package/lib/chevre/service/offer/eventServiceByCOA/validateAcceptedOffers.d.ts +1 -1
  94. package/lib/chevre/service/offer/eventServiceByCOA.d.ts +5 -5
  95. package/lib/chevre/service/offer/moneyTransfer/authorize.d.ts +6 -6
  96. package/lib/chevre/service/offer/moneyTransfer/returnMoneyTransfer.d.ts +5 -5
  97. package/lib/chevre/service/offer/moneyTransfer/settleTransaction.d.ts +2 -2
  98. package/lib/chevre/service/offer/moneyTransfer/voidTransaction.d.ts +3 -3
  99. package/lib/chevre/service/offer/product/searchProductOffers.d.ts +3 -3
  100. package/lib/chevre/service/offer/product.d.ts +14 -14
  101. package/lib/chevre/service/offer.d.ts +6 -6
  102. package/lib/chevre/service/order/confirmPayTransaction.d.ts +10 -10
  103. package/lib/chevre/service/order/deleteOrder.d.ts +5 -5
  104. package/lib/chevre/service/order/findPlaceOrderTransaction.d.ts +1 -1
  105. package/lib/chevre/service/order/onAssetTransactionStatusChanged.d.ts +5 -5
  106. package/lib/chevre/service/order/onOrderStatusChanged.d.ts +2 -2
  107. package/lib/chevre/service/order/onOrderUpdated.d.ts +1 -1
  108. package/lib/chevre/service/order/payOrder.d.ts +4 -4
  109. package/lib/chevre/service/order/placeOrder.d.ts +6 -6
  110. package/lib/chevre/service/order/returnOrder.d.ts +6 -6
  111. package/lib/chevre/service/order/sendOrder.d.ts +6 -6
  112. package/lib/chevre/service/payment/any/onPaid.d.ts +3 -3
  113. package/lib/chevre/service/payment/any/onPaymentStatusChanged/onPaid.d.ts +1 -1
  114. package/lib/chevre/service/payment/any/onPaymentStatusChanged/onRefunded.d.ts +1 -1
  115. package/lib/chevre/service/payment/any/onPaymentStatusChanged.d.ts +2 -2
  116. package/lib/chevre/service/payment/any/onRefund.d.ts +3 -3
  117. package/lib/chevre/service/payment/any.d.ts +10 -10
  118. package/lib/chevre/service/payment/creditCard.d.ts +6 -6
  119. package/lib/chevre/service/payment/faceToFace.d.ts +6 -6
  120. package/lib/chevre/service/payment/movieTicket/checkByIdentifier.d.ts +2 -2
  121. package/lib/chevre/service/payment/movieTicket/getCredentials.d.ts +1 -1
  122. package/lib/chevre/service/payment/movieTicket/validation.d.ts +5 -5
  123. package/lib/chevre/service/payment/movieTicket.d.ts +6 -6
  124. package/lib/chevre/service/payment/paymentCard.d.ts +7 -7
  125. package/lib/chevre/service/payment.d.ts +9 -9
  126. package/lib/chevre/service/permit.d.ts +2 -2
  127. package/lib/chevre/service/product.d.ts +3 -3
  128. package/lib/chevre/service/project.d.ts +16 -16
  129. package/lib/chevre/service/report/telemetry.d.ts +19 -16
  130. package/lib/chevre/service/reserve/cancelReservation.d.ts +3 -3
  131. package/lib/chevre/service/reserve/checkInReservation.d.ts +5 -5
  132. package/lib/chevre/service/reserve/confirmReservation.d.ts +4 -4
  133. package/lib/chevre/service/reserve/potentialActions/onReservationCanceled.d.ts +1 -1
  134. package/lib/chevre/service/reserve/potentialActions/onReservationCheckedIn.d.ts +2 -2
  135. package/lib/chevre/service/reserve/potentialActions/onReservationConfirmed.d.ts +1 -1
  136. package/lib/chevre/service/reserve/potentialActions/onReservationUsed.d.ts +1 -1
  137. package/lib/chevre/service/reserve/useReservation.d.ts +5 -5
  138. package/lib/chevre/service/reserve/verifyToken4reservation.d.ts +1 -1
  139. package/lib/chevre/service/task/onResourceUpdated/onHasPOSUpdated.d.ts +2 -2
  140. package/lib/chevre/service/task/onResourceUpdated/onOfferCatalogUpdated.d.ts +3 -3
  141. package/lib/chevre/service/task/onResourceUpdated/onResourceDeleted.d.ts +15 -15
  142. package/lib/chevre/service/task/onResourceUpdated/syncOfferCatalog.d.ts +2 -2
  143. package/lib/chevre/service/task.d.ts +3 -3
  144. package/lib/chevre/service/task.js +12 -7
  145. package/lib/chevre/service/transaction/deleteTransaction.d.ts +9 -9
  146. package/lib/chevre/service/transaction/moneyTransfer.d.ts +9 -9
  147. package/lib/chevre/service/transaction/orderProgramMembership/findPaymentCardPermit.d.ts +2 -2
  148. package/lib/chevre/service/transaction/placeOrder.d.ts +2 -2
  149. package/lib/chevre/service/transaction/placeOrderInProgress.d.ts +7 -7
  150. package/lib/chevre/service/transaction/placeOrderInProgress.js +2 -2
  151. package/lib/chevre/service/transaction/returnOrder.d.ts +10 -10
  152. package/lib/chevre/service/transaction/returnOrder.js +1 -1
  153. package/lib/chevre/service/transaction.d.ts +2 -2
  154. package/lib/chevre/service.d.ts +73 -39
  155. package/lib/chevre/service.js +255 -39
  156. package/package.json +1 -1
  157. package/example/src/chevre/searchSendEmailActions.ts +0 -44
  158. package/example/src/chevre/searchTasks.ts +0 -31
  159. package/example/src/chevre/searchTransactions.ts +0 -25
  160. package/example/src/chevre/sendEmailMessage.ts +0 -80
  161. package/example/src/chevre/syncCatalogs2aggregateOffers.ts +0 -87
@@ -667,7 +667,7 @@ class MongoRepository {
667
667
  }
668
668
  catch (error) {
669
669
  let throwsError = true;
670
- if ((0, errorHandler_1.isMongoError)(error)) {
670
+ if (yield (0, errorHandler_1.isMongoError)(error)) {
671
671
  // すでにorderNumberが存在する場合ok
672
672
  if (error.code === errorHandler_1.MongoErrorCode.DuplicateKey) {
673
673
  throwsError = false;
@@ -22,7 +22,7 @@
22
22
  /// <reference types="mongoose/types/validation" />
23
23
  /// <reference types="mongoose/types/virtuals" />
24
24
  /// <reference types="mongoose/types/inferschematype" />
25
- import { Connection } from 'mongoose';
25
+ import type { Connection } from 'mongoose';
26
26
  import * as factory from '../factory';
27
27
  export type IOwnershipInfo = factory.ownershipInfo.IOwnershipInfo<factory.ownershipInfo.IGood>;
28
28
  /**
@@ -242,7 +242,7 @@ class MongoRepository {
242
242
  .exec();
243
243
  }
244
244
  catch (error) {
245
- if ((0, errorHandler_1.isMongoError)(error)) {
245
+ if (yield (0, errorHandler_1.isMongoError)(error)) {
246
246
  // すでに所有権が存在する場合ok
247
247
  if (error.code === errorHandler_1.MongoErrorCode.DuplicateKey) {
248
248
  duplicate = true;
@@ -1,4 +1,4 @@
1
- import { Connection } from 'mongoose';
1
+ import type { Connection } from 'mongoose';
2
2
  import * as factory from '../factory';
3
3
  /**
4
4
  * 許可証リポジトリ
@@ -22,7 +22,7 @@
22
22
  /// <reference types="mongoose/types/validation" />
23
23
  /// <reference types="mongoose/types/virtuals" />
24
24
  /// <reference types="mongoose/types/inferschematype" />
25
- import { Connection } from 'mongoose';
25
+ import type { Connection } from 'mongoose';
26
26
  import * as factory from '../factory';
27
27
  type IScreeningRoomSectionWithoutContainsPlace = Omit<factory.place.screeningRoomSection.IPlace, 'containsPlace'>;
28
28
  export type IScreeningRoomFoundByBranchCode = Pick<factory.place.screeningRoom.IPlace, 'typeOf' | 'branchCode' | 'name' | 'containsPlace' | 'seatCount' | 'parentOrganization'>;
@@ -22,7 +22,7 @@
22
22
  /// <reference types="mongoose/types/validation" />
23
23
  /// <reference types="mongoose/types/virtuals" />
24
24
  /// <reference types="mongoose/types/inferschematype" />
25
- import { Connection } from 'mongoose';
25
+ import type { Connection } from 'mongoose';
26
26
  import * as factory from '../factory';
27
27
  /**
28
28
  * 価格仕様リポジトリ
@@ -22,7 +22,7 @@
22
22
  /// <reference types="mongoose/types/validation" />
23
23
  /// <reference types="mongoose/types/virtuals" />
24
24
  /// <reference types="mongoose/types/inferschematype" />
25
- import { Connection } from 'mongoose';
25
+ import type { Connection } from 'mongoose';
26
26
  import * as factory from '../factory';
27
27
  export type IProduct = factory.product.IProduct | factory.service.paymentService.IService;
28
28
  export type IPaymentServiceByProvider = Pick<factory.service.paymentService.IService, 'name' | 'description' | 'typeOf' | 'id' | 'productID' | 'serviceType' | 'serviceOutput' | 'additionalProperty'> & {
@@ -22,7 +22,7 @@
22
22
  /// <reference types="mongoose/types/validation" />
23
23
  /// <reference types="mongoose/types/virtuals" />
24
24
  /// <reference types="mongoose/types/inferschematype" />
25
- import { Connection } from 'mongoose';
25
+ import type { Connection } from 'mongoose';
26
26
  import * as factory from '../factory';
27
27
  /**
28
28
  * プロジェクトリポジトリ
@@ -23,7 +23,7 @@
23
23
  /// <reference types="mongoose/types/virtuals" />
24
24
  /// <reference types="mongoose/types/inferschematype" />
25
25
  import { BulkWriteResult as BulkWriteOpResultObject } from 'mongodb';
26
- import { Connection, UpdateWriteOpResult } from 'mongoose';
26
+ import type { Connection, UpdateWriteOpResult } from 'mongoose';
27
27
  import * as factory from '../factory';
28
28
  export interface IUpdatePartiallyParams {
29
29
  additionalTicketText?: string;
@@ -1,4 +1,4 @@
1
- import { Connection } from 'mongoose';
1
+ import type { Connection } from 'mongoose';
2
2
  import * as factory from '../factory';
3
3
  export declare enum RoleType {
4
4
  OrganizationRole = "OrganizationRole"
@@ -1,4 +1,4 @@
1
- import { Connection } from 'mongoose';
1
+ import type { Connection } from 'mongoose';
2
2
  import * as factory from '../factory';
3
3
  /**
4
4
  * サービスアウトプットリポジトリ
@@ -1,5 +1,5 @@
1
- import { Connection } from 'mongoose';
2
- import { RedisClientType } from 'redis';
1
+ import type { Connection } from 'mongoose';
2
+ import type { RedisClientType } from 'redis';
3
3
  import * as factory from '../factory';
4
4
  export interface IOffer {
5
5
  itemOffered?: {
@@ -1,4 +1,4 @@
1
- import { Connection, Model } from 'mongoose';
1
+ import type { Connection, Model } from 'mongoose';
2
2
  import * as factory from '../factory';
3
3
  interface IAggregationByStatus {
4
4
  taskCount: number;
@@ -1,4 +1,4 @@
1
- import { Connection, Model } from 'mongoose';
1
+ import type { Connection, Model } from 'mongoose';
2
2
  /**
3
3
  * 測定リポジトリ
4
4
  */
@@ -22,7 +22,7 @@
22
22
  /// <reference types="mongoose/types/validation" />
23
23
  /// <reference types="mongoose/types/virtuals" />
24
24
  /// <reference types="mongoose/types/inferschematype" />
25
- import { Connection } from 'mongoose';
25
+ import type { Connection } from 'mongoose';
26
26
  import * as factory from '../factory';
27
27
  interface IAggregationByStatus {
28
28
  transactionCount: number;
@@ -1,4 +1,4 @@
1
- import { Connection } from 'mongoose';
1
+ import type { Connection } from 'mongoose';
2
2
  import * as factory from '../factory';
3
3
  export type ISearchConditions<T extends factory.tripType> = factory.trip.ISearchConditions<T>;
4
4
  export interface IAttributes4patchUpdate<T extends factory.tripType> {
@@ -1,227 +1,259 @@
1
1
  /**
2
2
  * リポジトリ
3
3
  */
4
- import { MongoRepository as AccountRepo } from './repo/account';
5
- import { MongoRepository as AccountingReportRepo } from './repo/accountingReport';
6
- import { MongoRepository as AccountTitleRepo } from './repo/accountTitle';
7
- import { MongoRepository as AccountTransactionRepo } from './repo/accountTransaction';
8
- import { MongoRepository as ActionRepo } from './repo/action';
9
- import { MongoRepository as AdditionalPropertyRepo } from './repo/additionalProperty';
10
- import { MongoRepository as AggregateOfferRepo } from './repo/aggregateOffer';
11
- import { MongoRepository as AggregationRepo } from './repo/aggregation';
12
- import { MongoRepository as AssetTransactionRepo } from './repo/assetTransaction';
13
- import { MongoRepository as CategoryCodeRepo } from './repo/categoryCode';
14
- import { MongoRepository as CodeRepo } from './repo/code';
15
- import { MongoRepository as CommentRepo } from './repo/comment';
16
- import { MongoRepository as CreativeWorkRepo } from './repo/creativeWork';
17
- import { MongoRepository as CustomerRepo } from './repo/customer';
18
- import { MongoRepository as EmailMessageRepo } from './repo/emailMessage';
19
- import { MongoRepository as EventRepo } from './repo/event';
20
- import { MongoRepository as MemberRepo } from './repo/member';
21
- import { MongoRepository as MerchantReturnPolicyRepo } from './repo/merchantReturnPolicy';
22
- import { MongoRepository as OfferRepo } from './repo/offer';
23
- import { MongoRepository as OfferCatalogRepo } from './repo/offerCatalog';
24
- import { MongoRepository as OfferCatalogItemRepo } from './repo/offerCatalogItem';
25
- import { MongoRepository as OfferItemConditionRepo } from './repo/offerItemCondition';
26
- import { MongoRepository as OrderRepo } from './repo/order';
27
- import { MongoRepository as OwnershipInfoRepo } from './repo/ownershipInfo';
28
- import { MongoRepository as PaymentServiceProviderRepo } from './repo/paymentServiceProvider';
29
- import { MongoRepository as PermitRepo } from './repo/permit';
30
- import { MongoRepository as PlaceRepo } from './repo/place';
31
- import { MongoRepository as HasPOSRepo } from './repo/place/hasPOS';
32
- import { MongoRepository as PriceSpecificationRepo } from './repo/priceSpecification';
33
- import { MongoRepository as ProductRepo } from './repo/product';
34
- import { MongoRepository as ProductOfferRepo } from './repo/productOffer';
35
- import { MongoRepository as ProjectRepo } from './repo/project';
36
- import { RedisRepository as OfferRateLimitRepo } from './repo/rateLimit/offer';
37
- import { MongoRepository as ReservationRepo } from './repo/reservation';
38
- import { MongoRepository as RoleRepo } from './repo/role';
39
- import { MongoRepository as SellerRepo } from './repo/seller';
40
- import { MongoRepository as ServiceOutputRepo } from './repo/serviceOutput';
41
- import { RedisRepository as ServiceOutputIdentifierRepo } from './repo/serviceOutputIdentifier';
42
- import { StockHolderRepository as StockHolderRepo } from './repo/stockHolder';
43
- import { MongoRepository as TaskRepo } from './repo/task';
44
- import { MongoRepository as TelemetryRepo } from './repo/telemetry';
45
- import { MongoRepository as TransactionRepo } from './repo/transaction';
46
- import { RedisRepository as TransactionNumberRepo } from './repo/transactionNumber';
47
- import { MongoRepository as TripRepo } from './repo/trip';
48
- import { RedisRepository as RegisterServiceActionInProgress } from './repo/action/registerServiceInProgress';
49
- import { RedisRepository as ConfirmationNumberRepo } from './repo/confirmationNumber';
50
- import { RedisRepository as OrderNumberRepo } from './repo/orderNumber';
51
- import { GMORepository as CreditCardRepo } from './repo/paymentMethod/creditCard';
52
- import { CognitoRepository as PersonRepo } from './repo/person';
53
- /**
54
- * 口座リポジトリ
55
- */
56
- export declare class Account extends AccountRepo {
57
- }
58
- /**
59
- * 経理レポートリポジトリ
60
- */
61
- export declare class AccountingReport extends AccountingReportRepo {
62
- }
63
- export declare class AccountTitle extends AccountTitleRepo {
64
- }
65
- /**
66
- * 口座取引リポジトリ
67
- */
68
- export declare class AccountTransaction extends AccountTransactionRepo {
69
- }
70
- export declare class Action extends ActionRepo {
71
- }
72
- /**
73
- * 追加特性リポジトリ
74
- */
75
- export declare class AdditionalProperty extends AdditionalPropertyRepo {
76
- }
77
- export declare class AggregateOffer extends AggregateOfferRepo {
78
- }
79
- export declare class Aggregation extends AggregationRepo {
4
+ import type { MongoRepository as AccountRepo } from './repo/account';
5
+ import type { MongoRepository as AccountingReportRepo } from './repo/accountingReport';
6
+ import type { MongoRepository as AccountTitleRepo } from './repo/accountTitle';
7
+ import type { MongoRepository as AccountTransactionRepo } from './repo/accountTransaction';
8
+ import type { MongoRepository as ActionRepo } from './repo/action';
9
+ import type { MongoRepository as AdditionalPropertyRepo } from './repo/additionalProperty';
10
+ import type { MongoRepository as AggregateOfferRepo } from './repo/aggregateOffer';
11
+ import type { MongoRepository as AggregationRepo } from './repo/aggregation';
12
+ import type { MongoRepository as AssetTransactionRepo } from './repo/assetTransaction';
13
+ import type { MongoRepository as CategoryCodeRepo } from './repo/categoryCode';
14
+ import type { MongoRepository as CodeRepo } from './repo/code';
15
+ import type { MongoRepository as CommentRepo } from './repo/comment';
16
+ import type { MongoRepository as CreativeWorkRepo } from './repo/creativeWork';
17
+ import type { MongoRepository as CustomerRepo } from './repo/customer';
18
+ import type { MongoRepository as EmailMessageRepo } from './repo/emailMessage';
19
+ import type { MongoRepository as EventRepo } from './repo/event';
20
+ import type { MongoRepository as MemberRepo } from './repo/member';
21
+ import type { MongoRepository as MerchantReturnPolicyRepo } from './repo/merchantReturnPolicy';
22
+ import type { MongoRepository as OfferRepo } from './repo/offer';
23
+ import type { MongoRepository as OfferCatalogRepo } from './repo/offerCatalog';
24
+ import type { MongoRepository as OfferCatalogItemRepo } from './repo/offerCatalogItem';
25
+ import type { MongoRepository as OfferItemConditionRepo } from './repo/offerItemCondition';
26
+ import type { MongoRepository as OrderRepo } from './repo/order';
27
+ import type { MongoRepository as OwnershipInfoRepo } from './repo/ownershipInfo';
28
+ import type { MongoRepository as PaymentServiceProviderRepo } from './repo/paymentServiceProvider';
29
+ import type { MongoRepository as PermitRepo } from './repo/permit';
30
+ import type { MongoRepository as PlaceRepo } from './repo/place';
31
+ import type { MongoRepository as HasPOSRepo } from './repo/place/hasPOS';
32
+ import type { MongoRepository as PriceSpecificationRepo } from './repo/priceSpecification';
33
+ import type { MongoRepository as ProductRepo } from './repo/product';
34
+ import type { MongoRepository as ProductOfferRepo } from './repo/productOffer';
35
+ import type { MongoRepository as ProjectRepo } from './repo/project';
36
+ import type { RedisRepository as OfferRateLimitRepo } from './repo/rateLimit/offer';
37
+ import type { MongoRepository as ReservationRepo } from './repo/reservation';
38
+ import type { MongoRepository as RoleRepo } from './repo/role';
39
+ import type { MongoRepository as SellerRepo } from './repo/seller';
40
+ import type { MongoRepository as ServiceOutputRepo } from './repo/serviceOutput';
41
+ import type { RedisRepository as ServiceOutputIdentifierRepo } from './repo/serviceOutputIdentifier';
42
+ import type { StockHolderRepository as StockHolderRepo } from './repo/stockHolder';
43
+ import type { MongoRepository as TaskRepo } from './repo/task';
44
+ import type { MongoRepository as TelemetryRepo } from './repo/telemetry';
45
+ import type { MongoRepository as TransactionRepo } from './repo/transaction';
46
+ import type { RedisRepository as TransactionNumberRepo } from './repo/transactionNumber';
47
+ import type { MongoRepository as TripRepo } from './repo/trip';
48
+ import type { RedisRepository as RegisterServiceActionInProgress } from './repo/action/registerServiceInProgress';
49
+ import type { RedisRepository as ConfirmationNumberRepo } from './repo/confirmationNumber';
50
+ import type { RedisRepository as OrderNumberRepo } from './repo/orderNumber';
51
+ import type { GMORepository as CreditCardRepo } from './repo/paymentMethod/creditCard';
52
+ import type { CognitoRepository as PersonRepo } from './repo/person';
53
+ export type Account = AccountRepo;
54
+ export declare namespace Account {
55
+ function createInstance(...params: ConstructorParameters<typeof AccountRepo>): Promise<AccountRepo>;
56
+ }
57
+ export type AccountingReport = AccountingReportRepo;
58
+ export declare namespace AccountingReport {
59
+ function createInstance(...params: ConstructorParameters<typeof AccountingReportRepo>): Promise<AccountingReportRepo>;
60
+ }
61
+ export type AccountTitle = AccountTitleRepo;
62
+ export declare namespace AccountTitle {
63
+ function createInstance(...params: ConstructorParameters<typeof AccountTitleRepo>): Promise<AccountTitleRepo>;
64
+ }
65
+ export type AccountTransaction = AccountTransactionRepo;
66
+ export declare namespace AccountTransaction {
67
+ function createInstance(...params: ConstructorParameters<typeof AccountTransactionRepo>): Promise<AccountTransactionRepo>;
68
+ }
69
+ export type Action = ActionRepo;
70
+ export declare namespace Action {
71
+ function createInstance(...params: ConstructorParameters<typeof ActionRepo>): Promise<ActionRepo>;
72
+ }
73
+ export type AdditionalProperty = AdditionalPropertyRepo;
74
+ export declare namespace AdditionalProperty {
75
+ function createInstance(...params: ConstructorParameters<typeof AdditionalPropertyRepo>): Promise<AdditionalPropertyRepo>;
76
+ }
77
+ export type AggregateOffer = AggregateOfferRepo;
78
+ export declare namespace AggregateOffer {
79
+ function createInstance(...params: ConstructorParameters<typeof AggregateOfferRepo>): Promise<AggregateOfferRepo>;
80
+ }
81
+ export type Aggregation = AggregationRepo;
82
+ export declare namespace Aggregation {
83
+ function createInstance(...params: ConstructorParameters<typeof AggregationRepo>): Promise<AggregationRepo>;
80
84
  }
81
85
  export declare namespace action {
82
- class RegisterServiceInProgress extends RegisterServiceActionInProgress {
86
+ type RegisterServiceInProgress = RegisterServiceActionInProgress;
87
+ namespace RegisterServiceInProgress {
88
+ function createInstance(...params: ConstructorParameters<typeof RegisterServiceActionInProgress>): Promise<RegisterServiceActionInProgress>;
83
89
  }
84
90
  }
85
- export declare class AssetTransaction extends AssetTransactionRepo {
91
+ export type AssetTransaction = AssetTransactionRepo;
92
+ export declare namespace AssetTransaction {
93
+ function createInstance(...params: ConstructorParameters<typeof AssetTransactionRepo>): Promise<AssetTransactionRepo>;
86
94
  }
87
- export declare class CategoryCode extends CategoryCodeRepo {
95
+ export type CategoryCode = CategoryCodeRepo;
96
+ export declare namespace CategoryCode {
97
+ function createInstance(...params: ConstructorParameters<typeof CategoryCodeRepo>): Promise<CategoryCodeRepo>;
88
98
  }
89
- /**
90
- * 所有権コードリポジトリ
91
- */
92
- export declare class Code extends CodeRepo {
99
+ export type Code = CodeRepo;
100
+ export declare namespace Code {
101
+ function createInstance(...params: ConstructorParameters<typeof CodeRepo>): Promise<CodeRepo>;
93
102
  }
94
- /**
95
- * コメントリポジトリ
96
- */
97
- export declare class Comment extends CommentRepo {
103
+ export type Comment = CommentRepo;
104
+ export declare namespace Comment {
105
+ function createInstance(...params: ConstructorParameters<typeof CommentRepo>): Promise<CommentRepo>;
98
106
  }
99
- /**
100
- * 確認番号リポジトリ
101
- */
102
- export declare class ConfirmationNumber extends ConfirmationNumberRepo {
107
+ export type ConfirmationNumber = ConfirmationNumberRepo;
108
+ export declare namespace ConfirmationNumber {
109
+ function createInstance(...params: ConstructorParameters<typeof ConfirmationNumberRepo>): Promise<ConfirmationNumberRepo>;
103
110
  }
104
- /**
105
- * コンテンツリポジトリ
106
- */
107
- export declare class CreativeWork extends CreativeWorkRepo {
111
+ export type CreativeWork = CreativeWorkRepo;
112
+ export declare namespace CreativeWork {
113
+ function createInstance(...params: ConstructorParameters<typeof CreativeWorkRepo>): Promise<CreativeWorkRepo>;
108
114
  }
109
- /**
110
- * 顧客リポジトリ
111
- */
112
- export declare class Customer extends CustomerRepo {
115
+ export type Customer = CustomerRepo;
116
+ export declare namespace Customer {
117
+ function createInstance(...params: ConstructorParameters<typeof CustomerRepo>): Promise<CustomerRepo>;
113
118
  }
114
- /**
115
- * Eメールメッセージリポジトリ
116
- */
117
- export declare class EmailMessage extends EmailMessageRepo {
119
+ export type EmailMessage = EmailMessageRepo;
120
+ export declare namespace EmailMessage {
121
+ function createInstance(...params: ConstructorParameters<typeof EmailMessageRepo>): Promise<EmailMessageRepo>;
118
122
  }
119
- /**
120
- * イベントリポジトリ
121
- */
122
- export declare class Event extends EventRepo {
123
+ export type Event = EventRepo;
124
+ export declare namespace Event {
125
+ function createInstance(...params: ConstructorParameters<typeof EventRepo>): Promise<EventRepo>;
123
126
  }
124
- /**
125
- * プロジェクトメンバーリポジトリ
126
- */
127
- export declare class Member extends MemberRepo {
127
+ export type Member = MemberRepo;
128
+ export declare namespace Member {
129
+ function createInstance(...params: ConstructorParameters<typeof MemberRepo>): Promise<MemberRepo>;
128
130
  }
129
- /**
130
- * 返品ポリシーリポジトリ
131
- */
132
- export declare class MerchantReturnPolicy extends MerchantReturnPolicyRepo {
131
+ export type MerchantReturnPolicy = MerchantReturnPolicyRepo;
132
+ export declare namespace MerchantReturnPolicy {
133
+ function createInstance(...params: ConstructorParameters<typeof MerchantReturnPolicyRepo>): Promise<MerchantReturnPolicyRepo>;
133
134
  }
134
- export declare class OfferCatalog extends OfferCatalogRepo {
135
+ export type OfferCatalog = OfferCatalogRepo;
136
+ export declare namespace OfferCatalog {
137
+ function createInstance(...params: ConstructorParameters<typeof OfferCatalogRepo>): Promise<OfferCatalogRepo>;
135
138
  }
136
- export declare class OfferCatalogItem extends OfferCatalogItemRepo {
139
+ export type OfferCatalogItem = OfferCatalogItemRepo;
140
+ export declare namespace OfferCatalogItem {
141
+ function createInstance(...params: ConstructorParameters<typeof OfferCatalogItemRepo>): Promise<OfferCatalogItemRepo>;
137
142
  }
138
- export declare class OfferItemCondition extends OfferItemConditionRepo {
143
+ export type OfferItemCondition = OfferItemConditionRepo;
144
+ export declare namespace OfferItemCondition {
145
+ function createInstance(...params: ConstructorParameters<typeof OfferItemConditionRepo>): Promise<OfferItemConditionRepo>;
139
146
  }
140
- export declare class Offer extends OfferRepo {
147
+ export type Offer = OfferRepo;
148
+ export declare namespace Offer {
149
+ function createInstance(...params: ConstructorParameters<typeof OfferRepo>): Promise<OfferRepo>;
141
150
  }
142
- /**
143
- * 注文リポジトリ
144
- */
145
- export declare class Order extends OrderRepo {
151
+ export type Order = OrderRepo;
152
+ export declare namespace Order {
153
+ function createInstance(...params: ConstructorParameters<typeof OrderRepo>): Promise<OrderRepo>;
146
154
  }
147
- /**
148
- * 注文番号リポジトリ
149
- */
150
- export declare class OrderNumber extends OrderNumberRepo {
155
+ export type OrderNumber = OrderNumberRepo;
156
+ export declare namespace OrderNumber {
157
+ function createInstance(...params: ConstructorParameters<typeof OrderNumberRepo>): Promise<OrderNumberRepo>;
151
158
  }
152
- /**
153
- * 所有権リポジトリ
154
- */
155
- export declare class OwnershipInfo extends OwnershipInfoRepo {
159
+ export type OwnershipInfo = OwnershipInfoRepo;
160
+ export declare namespace OwnershipInfo {
161
+ function createInstance(...params: ConstructorParameters<typeof OwnershipInfoRepo>): Promise<OwnershipInfoRepo>;
156
162
  }
157
- /**
158
- * 決済サービスプロバイダー
159
- */
160
- export declare class PaymentServiceProvider extends PaymentServiceProviderRepo {
163
+ export type PaymentServiceProvider = PaymentServiceProviderRepo;
164
+ export declare namespace PaymentServiceProvider {
165
+ function createInstance(...params: ConstructorParameters<typeof PaymentServiceProviderRepo>): Promise<PaymentServiceProviderRepo>;
161
166
  }
162
167
  export declare namespace paymentMethod {
163
168
  /**
164
169
  * クレジットカードリポジトリ
165
170
  */
166
- class CreditCard extends CreditCardRepo {
171
+ type CreditCard = CreditCardRepo;
172
+ namespace CreditCard {
173
+ function createInstance(...params: ConstructorParameters<typeof CreditCardRepo>): Promise<CreditCardRepo>;
167
174
  }
168
175
  }
169
- /**
170
- * 会員リポジトリ
171
- */
172
- export declare class Person extends PersonRepo {
176
+ export type Person = PersonRepo;
177
+ export declare namespace Person {
178
+ function createInstance(...params: ConstructorParameters<typeof PersonRepo>): Promise<PersonRepo>;
173
179
  }
174
- /**
175
- * 許可証リポジトリ
176
- */
177
- export declare class Permit extends PermitRepo {
180
+ export type Permit = PermitRepo;
181
+ export declare namespace Permit {
182
+ function createInstance(...params: ConstructorParameters<typeof PermitRepo>): Promise<PermitRepo>;
178
183
  }
179
- export declare class Place extends PlaceRepo {
184
+ export type Place = PlaceRepo;
185
+ export declare namespace Place {
186
+ function createInstance(...params: ConstructorParameters<typeof PlaceRepo>): Promise<PlaceRepo>;
180
187
  }
181
188
  export declare namespace place {
182
- /**
183
- * 施設のPoints-of-Salesリポジトリ
184
- */
185
- class HasPOS extends HasPOSRepo {
189
+ type HasPOS = HasPOSRepo;
190
+ namespace HasPOS {
191
+ function createInstance(...params: ConstructorParameters<typeof HasPOSRepo>): Promise<HasPOSRepo>;
186
192
  }
187
193
  }
188
- export declare class PriceSpecification extends PriceSpecificationRepo {
194
+ export type PriceSpecification = PriceSpecificationRepo;
195
+ export declare namespace PriceSpecification {
196
+ function createInstance(...params: ConstructorParameters<typeof PriceSpecificationRepo>): Promise<PriceSpecificationRepo>;
189
197
  }
190
- export declare class Product extends ProductRepo {
198
+ export type Product = ProductRepo;
199
+ export declare namespace Product {
200
+ function createInstance(...params: ConstructorParameters<typeof ProductRepo>): Promise<ProductRepo>;
191
201
  }
192
- export declare class ProductOffer extends ProductOfferRepo {
202
+ export type ProductOffer = ProductOfferRepo;
203
+ export declare namespace ProductOffer {
204
+ function createInstance(...params: ConstructorParameters<typeof ProductOfferRepo>): Promise<ProductOfferRepo>;
193
205
  }
194
- export declare class Project extends ProjectRepo {
206
+ export type Project = ProjectRepo;
207
+ export declare namespace Project {
208
+ function createInstance(...params: ConstructorParameters<typeof ProjectRepo>): Promise<ProjectRepo>;
195
209
  }
196
- export declare class Reservation extends ReservationRepo {
210
+ export type Reservation = ReservationRepo;
211
+ export declare namespace Reservation {
212
+ function createInstance(...params: ConstructorParameters<typeof ReservationRepo>): Promise<ReservationRepo>;
197
213
  }
198
- /**
199
- * ロールリポジトリ
200
- */
201
- export declare class Role extends RoleRepo {
214
+ export type Role = RoleRepo;
215
+ export declare namespace Role {
216
+ function createInstance(...params: ConstructorParameters<typeof RoleRepo>): Promise<RoleRepo>;
202
217
  }
203
- /**
204
- * 販売者リポジトリ
205
- */
206
- export declare class Seller extends SellerRepo {
218
+ export type Seller = SellerRepo;
219
+ export declare namespace Seller {
220
+ function createInstance(...params: ConstructorParameters<typeof SellerRepo>): Promise<SellerRepo>;
207
221
  }
208
- export declare class ServiceOutput extends ServiceOutputRepo {
222
+ export type ServiceOutput = ServiceOutputRepo;
223
+ export declare namespace ServiceOutput {
224
+ function createInstance(...params: ConstructorParameters<typeof ServiceOutputRepo>): Promise<ServiceOutputRepo>;
209
225
  }
210
- export declare class ServiceOutputIdentifier extends ServiceOutputIdentifierRepo {
226
+ export type ServiceOutputIdentifier = ServiceOutputIdentifierRepo;
227
+ export declare namespace ServiceOutputIdentifier {
228
+ function createInstance(...params: ConstructorParameters<typeof ServiceOutputIdentifierRepo>): Promise<ServiceOutputIdentifierRepo>;
211
229
  }
212
- export declare class StockHolder extends StockHolderRepo {
230
+ export type StockHolder = StockHolderRepo;
231
+ export declare namespace StockHolder {
232
+ function createInstance(...params: ConstructorParameters<typeof StockHolderRepo>): Promise<StockHolderRepo>;
213
233
  }
214
- export declare class Task extends TaskRepo {
234
+ export type Task = TaskRepo;
235
+ export declare namespace Task {
236
+ function createInstance(...params: ConstructorParameters<typeof TaskRepo>): Promise<TaskRepo>;
215
237
  }
216
- export declare class Telemetry extends TelemetryRepo {
238
+ export type Telemetry = TelemetryRepo;
239
+ export declare namespace Telemetry {
240
+ function createInstance(...params: ConstructorParameters<typeof TelemetryRepo>): Promise<TelemetryRepo>;
217
241
  }
218
- export declare class Transaction extends TransactionRepo {
242
+ export type Transaction = TransactionRepo;
243
+ export declare namespace Transaction {
244
+ function createInstance(...params: ConstructorParameters<typeof TransactionRepo>): Promise<TransactionRepo>;
219
245
  }
220
- export declare class TransactionNumber extends TransactionNumberRepo {
246
+ export type TransactionNumber = TransactionNumberRepo;
247
+ export declare namespace TransactionNumber {
248
+ function createInstance(...params: ConstructorParameters<typeof TransactionNumberRepo>): Promise<TransactionNumberRepo>;
221
249
  }
222
- export declare class Trip extends TripRepo {
250
+ export type Trip = TripRepo;
251
+ export declare namespace Trip {
252
+ function createInstance(...params: ConstructorParameters<typeof TripRepo>): Promise<TripRepo>;
223
253
  }
224
254
  export declare namespace rateLimit {
225
- class Offer extends OfferRateLimitRepo {
255
+ type Offer = OfferRateLimitRepo;
256
+ namespace Offer {
257
+ function createInstance(...params: ConstructorParameters<typeof OfferRateLimitRepo>): Promise<OfferRateLimitRepo>;
226
258
  }
227
259
  }