@chevre/domain 21.2.0-alpha.8 → 21.2.0-alpha.80
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.
- package/example/src/chevre/aggregation/aggregateSystem.ts +58 -31
- package/example/src/chevre/countDelayedTransactions.ts +60 -0
- package/example/src/chevre/createManyEventsIfNotExist.ts +4 -1
- package/example/src/chevre/deleteTasksByName.ts +10 -2
- package/example/src/chevre/importEventsFromCOA.ts +3 -4
- package/example/src/chevre/migrateOrderAdditionalProperties.ts +85 -0
- package/example/src/chevre/processReserve.ts +2 -1
- package/example/src/chevre/saveTasks.ts +13 -10
- package/example/src/chevre/searchAbortedTasks.ts +36 -0
- package/example/src/chevre/searchReservationNumbersByOrderNumbers.ts +37 -1
- package/example/src/chevre/searchSellers.ts +22 -0
- package/example/src/chevre/searchSendEmailActions.ts +44 -0
- package/example/src/chevre/task/executeTasks.ts +26 -0
- package/example/src/chevre/transaction/findCreditCard.ts +1 -1
- package/example/src/chevre/transaction/orderMembershipService.ts +1 -1
- package/example/src/chevre/transaction/processReturnOrder.ts +40 -0
- package/example/src/chevre/transaction/startExportTasks.ts +20 -0
- package/example/src/chevre/updateTransaction.ts +1 -1
- package/example/src/playOnMoment.ts +24 -0
- package/lib/chevre/credentials.d.ts +1 -0
- package/lib/chevre/credentials.js +2 -1
- package/lib/chevre/eventEmitter/assetTransaction.d.ts +21 -0
- package/lib/chevre/eventEmitter/assetTransaction.js +25 -0
- package/lib/chevre/eventEmitter/task.d.ts +18 -0
- package/lib/chevre/eventEmitter/task.js +25 -0
- package/lib/chevre/eventEmitter/transaction.d.ts +21 -0
- package/lib/chevre/eventEmitter/transaction.js +25 -0
- package/lib/chevre/eventEmitter.d.ts +4 -0
- package/lib/chevre/eventEmitter.js +9 -0
- package/lib/chevre/index.d.ts +3 -2
- package/lib/chevre/index.js +5 -3
- package/lib/chevre/repo/accountTransaction.d.ts +3 -11
- package/lib/chevre/repo/accountTransaction.js +1 -54
- package/lib/chevre/repo/action.d.ts +29 -1
- package/lib/chevre/repo/action.js +32 -25
- package/lib/chevre/repo/assetTransaction.d.ts +25 -9
- package/lib/chevre/repo/assetTransaction.js +237 -80
- package/lib/chevre/repo/comment.d.ts +4 -1
- package/lib/chevre/repo/comment.js +20 -5
- package/lib/chevre/repo/confirmationNumber.d.ts +0 -1
- package/lib/chevre/repo/confirmationNumber.js +3 -15
- package/lib/chevre/repo/creativeWork.d.ts +1 -3
- package/lib/chevre/repo/emailMessage.d.ts +1 -27
- package/lib/chevre/repo/event.d.ts +5 -1
- package/lib/chevre/repo/merchantReturnPolicy.d.ts +1 -3
- package/lib/chevre/repo/mongoose/schemas/account.d.ts +5 -2
- package/lib/chevre/repo/mongoose/schemas/account.js +1 -0
- package/lib/chevre/repo/mongoose/schemas/accountTitle.d.ts +30 -3
- package/lib/chevre/repo/mongoose/schemas/accountTitle.js +1 -0
- package/lib/chevre/repo/mongoose/schemas/accountTransaction.d.ts +32 -3
- package/lib/chevre/repo/mongoose/schemas/accountTransaction.js +2 -1
- package/lib/chevre/repo/mongoose/schemas/accountingReport.d.ts +14 -3
- package/lib/chevre/repo/mongoose/schemas/accountingReport.js +1 -0
- package/lib/chevre/repo/mongoose/schemas/action.d.ts +44 -3
- package/lib/chevre/repo/mongoose/schemas/action.js +2 -1
- package/lib/chevre/repo/mongoose/schemas/additionalProperty.d.ts +18 -3
- package/lib/chevre/repo/mongoose/schemas/additionalProperty.js +1 -0
- package/lib/chevre/repo/mongoose/schemas/aggregation.d.ts +5 -2
- package/lib/chevre/repo/mongoose/schemas/aggregation.js +1 -0
- package/lib/chevre/repo/mongoose/schemas/assetTransaction.d.ts +45 -3
- package/lib/chevre/repo/mongoose/schemas/assetTransaction.js +15 -19
- package/lib/chevre/repo/mongoose/schemas/authorization.d.ts +20 -3
- package/lib/chevre/repo/mongoose/schemas/authorization.js +2 -1
- package/lib/chevre/repo/mongoose/schemas/categoryCode.d.ts +26 -3
- package/lib/chevre/repo/mongoose/schemas/categoryCode.js +1 -0
- package/lib/chevre/repo/mongoose/schemas/comments.d.ts +28 -3
- package/lib/chevre/repo/mongoose/schemas/comments.js +2 -1
- package/lib/chevre/repo/mongoose/schemas/creativeWork.d.ts +44 -3
- package/lib/chevre/repo/mongoose/schemas/creativeWork.js +1 -0
- package/lib/chevre/repo/mongoose/schemas/customer.d.ts +26 -3
- package/lib/chevre/repo/mongoose/schemas/customer.js +1 -0
- package/lib/chevre/repo/mongoose/schemas/emailMessages.d.ts +22 -3
- package/lib/chevre/repo/mongoose/schemas/emailMessages.js +1 -0
- package/lib/chevre/repo/mongoose/schemas/event.d.ts +72 -3
- package/lib/chevre/repo/mongoose/schemas/event.js +1 -0
- package/lib/chevre/repo/mongoose/schemas/member.d.ts +14 -3
- package/lib/chevre/repo/mongoose/schemas/member.js +1 -0
- package/lib/chevre/repo/mongoose/schemas/merchantReturnPolicy.d.ts +22 -3
- package/lib/chevre/repo/mongoose/schemas/merchantReturnPolicy.js +1 -0
- package/lib/chevre/repo/mongoose/schemas/offer.d.ts +66 -3
- package/lib/chevre/repo/mongoose/schemas/offer.js +1 -0
- package/lib/chevre/repo/mongoose/schemas/offerCatalog.d.ts +28 -3
- package/lib/chevre/repo/mongoose/schemas/offerCatalog.js +1 -0
- package/lib/chevre/repo/mongoose/schemas/offerItemCondition.d.ts +74 -0
- package/lib/chevre/repo/mongoose/schemas/offerItemCondition.js +45 -0
- package/lib/chevre/repo/mongoose/schemas/order.d.ts +52 -3
- package/lib/chevre/repo/mongoose/schemas/order.js +2 -1
- package/lib/chevre/repo/mongoose/schemas/ownershipInfo.d.ts +26 -3
- package/lib/chevre/repo/mongoose/schemas/ownershipInfo.js +2 -1
- package/lib/chevre/repo/mongoose/schemas/place.d.ts +50 -3
- package/lib/chevre/repo/mongoose/schemas/place.js +1 -0
- package/lib/chevre/repo/mongoose/schemas/priceSpecification.d.ts +30 -3
- package/lib/chevre/repo/mongoose/schemas/priceSpecification.js +1 -0
- package/lib/chevre/repo/mongoose/schemas/product.d.ts +32 -3
- package/lib/chevre/repo/mongoose/schemas/product.js +1 -0
- package/lib/chevre/repo/mongoose/schemas/project.d.ts +24 -3
- package/lib/chevre/repo/mongoose/schemas/project.js +1 -0
- package/lib/chevre/repo/mongoose/schemas/reservation.d.ts +63 -4
- package/lib/chevre/repo/mongoose/schemas/reservation.js +2 -1
- package/lib/chevre/repo/mongoose/schemas/role.d.ts +12 -3
- package/lib/chevre/repo/mongoose/schemas/role.js +1 -0
- package/lib/chevre/repo/mongoose/schemas/seller.d.ts +32 -3
- package/lib/chevre/repo/mongoose/schemas/seller.js +7 -0
- package/lib/chevre/repo/mongoose/schemas/serviceOutput.d.ts +12 -3
- package/lib/chevre/repo/mongoose/schemas/serviceOutput.js +2 -1
- package/lib/chevre/repo/mongoose/schemas/task.d.ts +31 -3
- package/lib/chevre/repo/mongoose/schemas/task.js +3 -1
- package/lib/chevre/repo/mongoose/schemas/telemetry.d.ts +22 -3
- package/lib/chevre/repo/mongoose/schemas/telemetry.js +1 -0
- package/lib/chevre/repo/mongoose/schemas/transaction.d.ts +41 -3
- package/lib/chevre/repo/mongoose/schemas/transaction.js +3 -1
- package/lib/chevre/repo/mongoose/schemas/trip.d.ts +12 -3
- package/lib/chevre/repo/mongoose/schemas/trip.js +1 -0
- package/lib/chevre/repo/offerItemCondition.d.ts +22 -0
- package/lib/chevre/repo/offerItemCondition.js +120 -0
- package/lib/chevre/repo/order.d.ts +52 -2
- package/lib/chevre/repo/order.js +52 -4
- package/lib/chevre/repo/reservation.d.ts +8 -4
- package/lib/chevre/repo/reservation.js +8 -42
- package/lib/chevre/repo/seller.js +19 -19
- package/lib/chevre/repo/task.d.ts +42 -2
- package/lib/chevre/repo/task.js +90 -9
- package/lib/chevre/repo/transaction.d.ts +23 -3
- package/lib/chevre/repo/transaction.js +174 -54
- package/lib/chevre/repository.d.ts +5 -2
- package/lib/chevre/repository.js +8 -4
- package/lib/chevre/service/aggregation/system.d.ts +67 -22
- package/lib/chevre/service/aggregation/system.js +101 -89
- package/lib/chevre/service/assetTransaction/cancelReservation.js +1 -28
- package/lib/chevre/service/assetTransaction/moneyTransfer.js +1 -23
- package/lib/chevre/service/assetTransaction/pay/potentialActions.js +17 -1
- package/lib/chevre/service/assetTransaction/pay.js +10 -25
- package/lib/chevre/service/assetTransaction/refund.js +1 -23
- package/lib/chevre/service/assetTransaction/registerService.js +1 -25
- package/lib/chevre/service/assetTransaction/reserve/factory.d.ts +6 -2
- package/lib/chevre/service/assetTransaction/reserve/factory.js +24 -20
- package/lib/chevre/service/assetTransaction/reserve.d.ts +7 -1
- package/lib/chevre/service/assetTransaction/reserve.js +35 -40
- package/lib/chevre/service/assetTransaction.d.ts +6 -2
- package/lib/chevre/service/assetTransaction.js +9 -5
- package/lib/chevre/service/event.js +3 -1
- package/lib/chevre/service/notification/factory.js +2 -2
- package/lib/chevre/service/notification.d.ts +3 -1
- package/lib/chevre/service/notification.js +41 -7
- package/lib/chevre/service/offer/event/authorize.d.ts +1 -0
- package/lib/chevre/service/offer/event/authorize.js +5 -2
- package/lib/chevre/service/offer/event/factory.d.ts +2 -0
- package/lib/chevre/service/offer/event/factory.js +2 -2
- package/lib/chevre/service/offer/event/voidTransaction.d.ts +2 -0
- package/lib/chevre/service/offer/event/voidTransaction.js +17 -1
- package/lib/chevre/service/offer.js +1 -1
- package/lib/chevre/service/order/deleteOrder.d.ts +3 -1
- package/lib/chevre/service/order/deleteOrder.js +8 -8
- package/lib/chevre/service/order/onOrderStatusChanged/factory.d.ts +0 -1
- package/lib/chevre/service/order/onOrderStatusChanged/factory.js +1 -48
- package/lib/chevre/service/order/onOrderStatusChanged.js +1 -3
- package/lib/chevre/service/order/placeOrder.js +1 -1
- package/lib/chevre/service/order/returnOrder.js +1 -5
- package/lib/chevre/service/order/sendOrder.js +1 -1
- package/lib/chevre/service/payment/any/onPaid.js +1 -1
- package/lib/chevre/service/payment/any/onRefund.js +1 -1
- package/lib/chevre/service/payment/any.js +60 -10
- package/lib/chevre/service/payment/movieTicket/validation.d.ts +3 -2
- package/lib/chevre/service/payment/movieTicket/validation.js +12 -25
- package/lib/chevre/service/payment/movieTicket.d.ts +1 -1
- package/lib/chevre/service/payment/movieTicket.js +4 -3
- package/lib/chevre/service/product.js +1 -5
- package/lib/chevre/service/report/telemetry.d.ts +0 -11
- package/lib/chevre/service/report/telemetry.js +21 -24
- package/lib/chevre/service/reserve/cancelReservation.d.ts +4 -2
- package/lib/chevre/service/reserve/cancelReservation.js +2 -4
- package/lib/chevre/service/reserve/checkInReservation.d.ts +0 -3
- package/lib/chevre/service/reserve/checkInReservation.js +24 -0
- package/lib/chevre/service/reserve/confirmReservation.d.ts +2 -0
- package/lib/chevre/service/reserve/confirmReservation.js +45 -9
- package/lib/chevre/service/reserve/potentialActions/onReservationCanceled.d.ts +0 -3
- package/lib/chevre/service/reserve/potentialActions/onReservationCanceled.js +20 -20
- package/lib/chevre/service/reserve/potentialActions/onReservationCheckedIn.js +2 -3
- package/lib/chevre/service/reserve/potentialActions/onReservationConfirmed.js +2 -31
- package/lib/chevre/service/reserve/potentialActions/onReservationUsed.js +2 -3
- package/lib/chevre/service/reserve/useReservation.d.ts +4 -3
- package/lib/chevre/service/reserve/useReservation.js +14 -71
- package/lib/chevre/service/reserve/verifyToken4reservation.d.ts +15 -0
- package/lib/chevre/service/reserve/verifyToken4reservation.js +56 -0
- package/lib/chevre/service/reserve.d.ts +2 -1
- package/lib/chevre/service/reserve.js +3 -1
- package/lib/chevre/service/task/confirmRegisterServiceTransaction.js +1 -1
- package/lib/chevre/service/task/deleteTransaction.js +10 -8
- package/lib/chevre/service/task/importOffersFromCOA.js +4 -0
- package/lib/chevre/service/task/onAuthorizationCreated.d.ts +7 -0
- package/lib/chevre/service/task/onAuthorizationCreated.js +101 -0
- package/lib/chevre/service/task/reserve.js +5 -6
- package/lib/chevre/service/task/returnPayTransaction.js +2 -12
- package/lib/chevre/service/task/useReservation.d.ts +7 -0
- package/lib/chevre/service/task/{deleteOrder.js → useReservation.js} +11 -12
- package/lib/chevre/service/task/voidReserveTransaction.js +3 -1
- package/lib/chevre/service/task.d.ts +9 -0
- package/lib/chevre/service/task.js +43 -4
- package/lib/chevre/service/transaction/deleteTransaction.d.ts +21 -0
- package/lib/chevre/service/transaction/deleteTransaction.js +232 -0
- package/lib/chevre/service/transaction/moneyTransfer/exportTasks/factory.js +11 -1
- package/lib/chevre/service/transaction/moneyTransfer/factory.js +3 -1
- package/lib/chevre/service/transaction/moneyTransfer/potentialActions.d.ts +1 -0
- package/lib/chevre/service/transaction/moneyTransfer/potentialActions.js +1 -1
- package/lib/chevre/service/transaction/moneyTransfer.js +9 -12
- package/lib/chevre/service/transaction/placeOrder/exportTasks/factory.js +42 -30
- package/lib/chevre/service/transaction/placeOrder.js +1 -5
- package/lib/chevre/service/transaction/placeOrderInProgress/factory.js +1 -1
- package/lib/chevre/service/transaction/placeOrderInProgress/potentialActions/moneyTransfer.d.ts +1 -0
- package/lib/chevre/service/transaction/placeOrderInProgress/potentialActions/moneyTransfer.js +1 -1
- package/lib/chevre/service/transaction/placeOrderInProgress/potentialActions/registerService.d.ts +1 -0
- package/lib/chevre/service/transaction/placeOrderInProgress/potentialActions/registerService.js +1 -1
- package/lib/chevre/service/transaction/placeOrderInProgress/potentialActions.d.ts +1 -0
- package/lib/chevre/service/transaction/placeOrderInProgress/result/acceptedOffers.d.ts +3 -0
- package/lib/chevre/service/transaction/placeOrderInProgress/result/acceptedOffers.js +7 -3
- package/lib/chevre/service/transaction/placeOrderInProgress/result.d.ts +1 -0
- package/lib/chevre/service/transaction/placeOrderInProgress/result.js +2 -2
- package/lib/chevre/service/transaction/placeOrderInProgress/validation/validateMovieTicket.d.ts +1 -1
- package/lib/chevre/service/transaction/placeOrderInProgress/validation/validateMovieTicket.js +2 -2
- package/lib/chevre/service/transaction/placeOrderInProgress/validation.d.ts +2 -1
- package/lib/chevre/service/transaction/placeOrderInProgress/validation.js +23 -17
- package/lib/chevre/service/transaction/placeOrderInProgress.d.ts +0 -3
- package/lib/chevre/service/transaction/placeOrderInProgress.js +22 -11
- package/lib/chevre/service/transaction/returnOrder/exportTasks/factory.js +10 -1
- package/lib/chevre/service/transaction/returnOrder/potentialActions/returnPaymentMethod.js +25 -17
- package/lib/chevre/service/transaction/returnOrder.d.ts +4 -0
- package/lib/chevre/service/transaction/returnOrder.js +225 -35
- package/lib/chevre/service/transaction.d.ts +8 -13
- package/lib/chevre/service/transaction.js +12 -145
- package/lib/chevre/settings.d.ts +4 -1
- package/lib/chevre/settings.js +15 -5
- package/package.json +5 -5
- package/example/src/chevre/migrateMoneyTransferPendingTransactionIdentifier.ts +0 -96
- package/example/src/chevre/migrateMovieAdditionalProperties.ts +0 -98
- package/lib/chevre/service/task/deleteAssetTransaction.d.ts +0 -12
- package/lib/chevre/service/task/deleteAssetTransaction.js +0 -65
- package/lib/chevre/service/task/deleteOrder.d.ts +0 -6
|
@@ -27,12 +27,13 @@ declare const modelName = "Reservation";
|
|
|
27
27
|
/**
|
|
28
28
|
* 予約スキーマ
|
|
29
29
|
*/
|
|
30
|
-
declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any>, {}, {}, {}, {},
|
|
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
|
reservationNumber: string;
|
|
56
57
|
reservationStatus: string;
|
|
@@ -60,23 +61,81 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
|
|
|
60
61
|
project?: any;
|
|
61
62
|
additionalProperty?: any;
|
|
62
63
|
reservationFor?: any;
|
|
64
|
+
subReservation?: any;
|
|
65
|
+
broker?: any;
|
|
63
66
|
price?: any;
|
|
64
67
|
priceCurrency?: string | undefined;
|
|
68
|
+
underName?: any;
|
|
65
69
|
issuedThrough?: any;
|
|
66
70
|
reservedTicket?: any;
|
|
67
|
-
subReservation?: any;
|
|
68
71
|
additionalTicketText?: string | undefined;
|
|
69
72
|
bookingTime?: Date | undefined;
|
|
73
|
+
modifiedTime?: Date | undefined;
|
|
74
|
+
numSeats?: number | undefined;
|
|
75
|
+
programMembershipUsed?: any;
|
|
76
|
+
bookingAgent?: any;
|
|
77
|
+
cancelReservationUrl?: string | undefined;
|
|
78
|
+
checkinUrl?: string | undefined;
|
|
79
|
+
confirmReservationUrl?: string | undefined;
|
|
80
|
+
modifyReservationUrl?: string | undefined;
|
|
81
|
+
previousReservationStatus?: string | undefined;
|
|
82
|
+
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
83
|
+
typeOf: string;
|
|
84
|
+
reservationNumber: string;
|
|
85
|
+
reservationStatus: string;
|
|
86
|
+
checkedIn: boolean;
|
|
87
|
+
attended: boolean;
|
|
88
|
+
_id?: string | undefined;
|
|
89
|
+
project?: any;
|
|
90
|
+
additionalProperty?: any;
|
|
91
|
+
reservationFor?: any;
|
|
92
|
+
subReservation?: any;
|
|
70
93
|
broker?: any;
|
|
94
|
+
price?: any;
|
|
95
|
+
priceCurrency?: string | undefined;
|
|
96
|
+
underName?: any;
|
|
97
|
+
issuedThrough?: any;
|
|
98
|
+
reservedTicket?: any;
|
|
99
|
+
additionalTicketText?: string | undefined;
|
|
100
|
+
bookingTime?: Date | undefined;
|
|
71
101
|
modifiedTime?: Date | undefined;
|
|
72
102
|
numSeats?: number | undefined;
|
|
73
103
|
programMembershipUsed?: any;
|
|
104
|
+
bookingAgent?: any;
|
|
105
|
+
cancelReservationUrl?: string | undefined;
|
|
106
|
+
checkinUrl?: string | undefined;
|
|
107
|
+
confirmReservationUrl?: string | undefined;
|
|
108
|
+
modifyReservationUrl?: string | undefined;
|
|
109
|
+
previousReservationStatus?: string | undefined;
|
|
110
|
+
}>> & Omit<import("mongoose").FlatRecord<{
|
|
111
|
+
typeOf: string;
|
|
112
|
+
reservationNumber: string;
|
|
113
|
+
reservationStatus: string;
|
|
114
|
+
checkedIn: boolean;
|
|
115
|
+
attended: boolean;
|
|
116
|
+
_id?: string | undefined;
|
|
117
|
+
project?: any;
|
|
118
|
+
additionalProperty?: any;
|
|
119
|
+
reservationFor?: any;
|
|
120
|
+
subReservation?: any;
|
|
121
|
+
broker?: any;
|
|
122
|
+
price?: any;
|
|
123
|
+
priceCurrency?: string | undefined;
|
|
74
124
|
underName?: any;
|
|
125
|
+
issuedThrough?: any;
|
|
126
|
+
reservedTicket?: any;
|
|
127
|
+
additionalTicketText?: string | undefined;
|
|
128
|
+
bookingTime?: Date | undefined;
|
|
129
|
+
modifiedTime?: Date | undefined;
|
|
130
|
+
numSeats?: number | undefined;
|
|
131
|
+
programMembershipUsed?: any;
|
|
75
132
|
bookingAgent?: any;
|
|
76
133
|
cancelReservationUrl?: string | undefined;
|
|
77
134
|
checkinUrl?: string | undefined;
|
|
78
135
|
confirmReservationUrl?: string | undefined;
|
|
79
136
|
modifyReservationUrl?: string | undefined;
|
|
80
137
|
previousReservationStatus?: string | undefined;
|
|
81
|
-
}
|
|
138
|
+
}> & Required<{
|
|
139
|
+
_id: string;
|
|
140
|
+
}>, never>>;
|
|
82
141
|
export { modelName, schema };
|
|
@@ -48,9 +48,10 @@ const schema = new mongoose_1.Schema({
|
|
|
48
48
|
}, {
|
|
49
49
|
collection: 'reservations',
|
|
50
50
|
id: true,
|
|
51
|
-
read: '
|
|
51
|
+
read: 'primary',
|
|
52
52
|
writeConcern: writeConcern_1.writeConcern,
|
|
53
53
|
strict: true,
|
|
54
|
+
strictQuery: false,
|
|
54
55
|
useNestedStrict: true,
|
|
55
56
|
timestamps: {
|
|
56
57
|
createdAt: 'createdAt',
|
|
@@ -27,12 +27,13 @@ declare const modelName = "Role";
|
|
|
27
27
|
/**
|
|
28
28
|
* ロールスキーマ
|
|
29
29
|
*/
|
|
30
|
-
declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any>, {}, {}, {}, {},
|
|
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,8 +51,16 @@ 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
|
permissions: string[];
|
|
55
56
|
typeOf?: string | undefined;
|
|
56
|
-
}
|
|
57
|
+
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
58
|
+
permissions: string[];
|
|
59
|
+
typeOf?: string | undefined;
|
|
60
|
+
}>> & Omit<import("mongoose").FlatRecord<{
|
|
61
|
+
permissions: string[];
|
|
62
|
+
typeOf?: string | undefined;
|
|
63
|
+
}> & {
|
|
64
|
+
_id: import("mongoose").Types.ObjectId;
|
|
65
|
+
}, never>>;
|
|
57
66
|
export { modelName, schema };
|
|
@@ -27,12 +27,13 @@ declare const modelName = "Seller";
|
|
|
27
27
|
/**
|
|
28
28
|
* 販売者スキーマ
|
|
29
29
|
*/
|
|
30
|
-
declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any>, {}, {}, {}, {},
|
|
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
|
additionalProperty: any[];
|
|
56
57
|
hasMerchantReturnPolicy: any[];
|
|
@@ -63,5 +64,33 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
|
|
|
63
64
|
branchCode?: string | undefined;
|
|
64
65
|
telephone?: string | undefined;
|
|
65
66
|
parentOrganization?: any;
|
|
66
|
-
}
|
|
67
|
+
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
68
|
+
typeOf: string;
|
|
69
|
+
additionalProperty: any[];
|
|
70
|
+
hasMerchantReturnPolicy: any[];
|
|
71
|
+
areaServed: any[];
|
|
72
|
+
makesOffer: any[];
|
|
73
|
+
paymentAccepted: any[];
|
|
74
|
+
name?: any;
|
|
75
|
+
url?: string | undefined;
|
|
76
|
+
project?: any;
|
|
77
|
+
branchCode?: string | undefined;
|
|
78
|
+
telephone?: string | undefined;
|
|
79
|
+
parentOrganization?: any;
|
|
80
|
+
}>> & Omit<import("mongoose").FlatRecord<{
|
|
81
|
+
typeOf: string;
|
|
82
|
+
additionalProperty: any[];
|
|
83
|
+
hasMerchantReturnPolicy: any[];
|
|
84
|
+
areaServed: any[];
|
|
85
|
+
makesOffer: any[];
|
|
86
|
+
paymentAccepted: any[];
|
|
87
|
+
name?: any;
|
|
88
|
+
url?: string | undefined;
|
|
89
|
+
project?: any;
|
|
90
|
+
branchCode?: string | undefined;
|
|
91
|
+
telephone?: string | undefined;
|
|
92
|
+
parentOrganization?: any;
|
|
93
|
+
}> & {
|
|
94
|
+
_id: import("mongoose").Types.ObjectId;
|
|
95
|
+
}, never>>;
|
|
67
96
|
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',
|
|
@@ -74,3 +75,9 @@ schema.index({ additionalProperty: 1, branchCode: 1 }, {
|
|
|
74
75
|
additionalProperty: { $exists: true }
|
|
75
76
|
}
|
|
76
77
|
});
|
|
78
|
+
schema.index({ 'hasMerchantReturnPolicy.itemCondition.id': 1, branchCode: 1 }, {
|
|
79
|
+
name: 'searchByHasMerchantReturnPolicyItemConditionId',
|
|
80
|
+
partialFilterExpression: {
|
|
81
|
+
'hasMerchantReturnPolicy.itemCondition.id': { $exists: true }
|
|
82
|
+
}
|
|
83
|
+
});
|
|
@@ -27,12 +27,13 @@ declare const modelName = "ServiceOutput";
|
|
|
27
27
|
/**
|
|
28
28
|
* 許可証スキーマ
|
|
29
29
|
*/
|
|
30
|
-
declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any>, {}, {}, {}, {},
|
|
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,8 +51,16 @@ 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
|
project?: any;
|
|
56
|
-
}
|
|
57
|
+
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
58
|
+
typeOf: string;
|
|
59
|
+
project?: any;
|
|
60
|
+
}>> & Omit<import("mongoose").FlatRecord<{
|
|
61
|
+
typeOf: string;
|
|
62
|
+
project?: any;
|
|
63
|
+
}> & {
|
|
64
|
+
_id: import("mongoose").Types.ObjectId;
|
|
65
|
+
}, never>>;
|
|
57
66
|
export { modelName, schema };
|
|
@@ -17,9 +17,10 @@ const schema = new mongoose_1.Schema({
|
|
|
17
17
|
}, {
|
|
18
18
|
collection: 'serviceOutputs',
|
|
19
19
|
id: true,
|
|
20
|
-
read: '
|
|
20
|
+
read: 'primary',
|
|
21
21
|
writeConcern: writeConcern_1.writeConcern,
|
|
22
22
|
strict: false,
|
|
23
|
+
strictQuery: false,
|
|
23
24
|
useNestedStrict: true,
|
|
24
25
|
timestamps: {
|
|
25
26
|
createdAt: 'createdAt',
|
|
@@ -27,12 +27,13 @@ declare const modelName = "Task";
|
|
|
27
27
|
/**
|
|
28
28
|
* タスクスキーマ
|
|
29
29
|
*/
|
|
30
|
-
declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any>, {}, {}, {}, {},
|
|
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
|
executionResults: any[];
|
|
55
56
|
name?: string | undefined;
|
|
56
57
|
status?: string | undefined;
|
|
@@ -60,6 +61,33 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
|
|
|
60
61
|
remainingNumberOfTries?: number | undefined;
|
|
61
62
|
lastTriedAt?: Date | undefined;
|
|
62
63
|
numberOfTried?: number | undefined;
|
|
64
|
+
executor?: any;
|
|
63
65
|
dateAborted?: Date | undefined;
|
|
64
|
-
}
|
|
66
|
+
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
67
|
+
executionResults: any[];
|
|
68
|
+
name?: string | undefined;
|
|
69
|
+
status?: string | undefined;
|
|
70
|
+
data?: any;
|
|
71
|
+
project?: any;
|
|
72
|
+
runsAt?: Date | undefined;
|
|
73
|
+
remainingNumberOfTries?: number | undefined;
|
|
74
|
+
lastTriedAt?: Date | undefined;
|
|
75
|
+
numberOfTried?: number | undefined;
|
|
76
|
+
executor?: any;
|
|
77
|
+
dateAborted?: Date | undefined;
|
|
78
|
+
}>> & Omit<import("mongoose").FlatRecord<{
|
|
79
|
+
executionResults: any[];
|
|
80
|
+
name?: string | undefined;
|
|
81
|
+
status?: string | undefined;
|
|
82
|
+
data?: any;
|
|
83
|
+
project?: any;
|
|
84
|
+
runsAt?: Date | undefined;
|
|
85
|
+
remainingNumberOfTries?: number | undefined;
|
|
86
|
+
lastTriedAt?: Date | undefined;
|
|
87
|
+
numberOfTried?: number | undefined;
|
|
88
|
+
executor?: any;
|
|
89
|
+
dateAborted?: Date | undefined;
|
|
90
|
+
}> & {
|
|
91
|
+
_id: import("mongoose").Types.ObjectId;
|
|
92
|
+
}, never>>;
|
|
65
93
|
export { modelName, schema };
|
|
@@ -17,14 +17,16 @@ const schema = new mongoose_1.Schema({
|
|
|
17
17
|
lastTriedAt: Date,
|
|
18
18
|
numberOfTried: Number,
|
|
19
19
|
executionResults: [mongoose_1.SchemaTypes.Mixed],
|
|
20
|
+
executor: mongoose_1.SchemaTypes.Mixed,
|
|
20
21
|
data: mongoose_1.SchemaTypes.Mixed,
|
|
21
22
|
dateAborted: Date
|
|
22
23
|
}, {
|
|
23
24
|
collection: 'tasks',
|
|
24
25
|
id: true,
|
|
25
|
-
read: '
|
|
26
|
+
read: 'primary',
|
|
26
27
|
writeConcern: writeConcern_1.writeConcern,
|
|
27
28
|
strict: true,
|
|
29
|
+
strictQuery: false,
|
|
28
30
|
useNestedStrict: true,
|
|
29
31
|
timestamps: {
|
|
30
32
|
createdAt: 'createdAt',
|
|
@@ -27,12 +27,13 @@ declare const modelName = "Telemetry";
|
|
|
27
27
|
/**
|
|
28
28
|
* 測定スキーマ
|
|
29
29
|
*/
|
|
30
|
-
declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any>, {}, {}, {}, {},
|
|
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,13 +51,31 @@ 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
|
error?: any;
|
|
57
|
+
result?: any;
|
|
58
|
+
project?: any;
|
|
59
|
+
startDate?: Date | undefined;
|
|
60
|
+
endDate?: Date | undefined;
|
|
61
|
+
purpose?: any;
|
|
62
|
+
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
63
|
+
object?: any;
|
|
64
|
+
error?: any;
|
|
65
|
+
result?: any;
|
|
56
66
|
project?: any;
|
|
57
67
|
startDate?: Date | undefined;
|
|
58
68
|
endDate?: Date | undefined;
|
|
69
|
+
purpose?: any;
|
|
70
|
+
}>> & Omit<import("mongoose").FlatRecord<{
|
|
71
|
+
object?: any;
|
|
72
|
+
error?: any;
|
|
59
73
|
result?: any;
|
|
74
|
+
project?: any;
|
|
75
|
+
startDate?: Date | undefined;
|
|
76
|
+
endDate?: Date | undefined;
|
|
60
77
|
purpose?: any;
|
|
61
|
-
}
|
|
78
|
+
}> & {
|
|
79
|
+
_id: import("mongoose").Types.ObjectId;
|
|
80
|
+
}, never>>;
|
|
62
81
|
export { modelName, schema };
|
|
@@ -27,12 +27,13 @@ declare const modelName = "Transaction";
|
|
|
27
27
|
/**
|
|
28
28
|
* 取引スキーマ
|
|
29
29
|
*/
|
|
30
|
-
declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any>, {}, {}, {}, {},
|
|
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,29 @@ 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;
|
|
56
|
+
error?: any;
|
|
55
57
|
typeOf?: string | undefined;
|
|
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
|
+
tasksExportationStatus?: string | undefined;
|
|
68
|
+
tasksExportedAt?: Date | undefined;
|
|
69
|
+
seller?: any;
|
|
70
|
+
tasksExportAction?: any;
|
|
71
|
+
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
72
|
+
object?: any;
|
|
57
73
|
error?: any;
|
|
74
|
+
typeOf?: string | undefined;
|
|
75
|
+
status?: string | undefined;
|
|
76
|
+
result?: any;
|
|
58
77
|
expires?: Date | undefined;
|
|
59
78
|
project?: any;
|
|
60
79
|
agent?: any;
|
|
@@ -64,7 +83,26 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
|
|
|
64
83
|
potentialActions?: any;
|
|
65
84
|
tasksExportationStatus?: string | undefined;
|
|
66
85
|
tasksExportedAt?: Date | undefined;
|
|
86
|
+
seller?: any;
|
|
87
|
+
tasksExportAction?: any;
|
|
88
|
+
}>> & Omit<import("mongoose").FlatRecord<{
|
|
89
|
+
object?: any;
|
|
90
|
+
error?: any;
|
|
91
|
+
typeOf?: string | undefined;
|
|
92
|
+
status?: string | undefined;
|
|
67
93
|
result?: any;
|
|
94
|
+
expires?: Date | undefined;
|
|
95
|
+
project?: any;
|
|
96
|
+
agent?: any;
|
|
97
|
+
recipient?: any;
|
|
98
|
+
startDate?: Date | undefined;
|
|
99
|
+
endDate?: Date | undefined;
|
|
100
|
+
potentialActions?: any;
|
|
101
|
+
tasksExportationStatus?: string | undefined;
|
|
102
|
+
tasksExportedAt?: Date | undefined;
|
|
68
103
|
seller?: any;
|
|
69
|
-
|
|
104
|
+
tasksExportAction?: any;
|
|
105
|
+
}> & {
|
|
106
|
+
_id: import("mongoose").Types.ObjectId;
|
|
107
|
+
}, never>>;
|
|
70
108
|
export { modelName, schema };
|
|
@@ -22,15 +22,17 @@ const schema = new mongoose_1.Schema({
|
|
|
22
22
|
expires: Date,
|
|
23
23
|
startDate: Date,
|
|
24
24
|
endDate: Date,
|
|
25
|
+
tasksExportAction: mongoose_1.SchemaTypes.Mixed,
|
|
25
26
|
tasksExportedAt: Date,
|
|
26
27
|
tasksExportationStatus: String,
|
|
27
28
|
potentialActions: mongoose_1.SchemaTypes.Mixed
|
|
28
29
|
}, {
|
|
29
30
|
collection: 'transactions',
|
|
30
31
|
id: true,
|
|
31
|
-
read: '
|
|
32
|
+
read: 'primary',
|
|
32
33
|
writeConcern: writeConcern_1.writeConcern,
|
|
33
34
|
strict: true,
|
|
35
|
+
strictQuery: false,
|
|
34
36
|
useNestedStrict: true,
|
|
35
37
|
timestamps: {
|
|
36
38
|
createdAt: 'createdAt',
|
|
@@ -27,12 +27,13 @@ declare const modelName = "Trip";
|
|
|
27
27
|
/**
|
|
28
28
|
* トリップスキーマ
|
|
29
29
|
*/
|
|
30
|
-
declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any>, {}, {}, {}, {},
|
|
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,8 +51,16 @@ 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
|
project?: any;
|
|
56
|
-
}
|
|
57
|
+
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
58
|
+
typeOf: string;
|
|
59
|
+
project?: any;
|
|
60
|
+
}>> & Omit<import("mongoose").FlatRecord<{
|
|
61
|
+
typeOf: string;
|
|
62
|
+
project?: any;
|
|
63
|
+
}> & {
|
|
64
|
+
_id: import("mongoose").Types.ObjectId;
|
|
65
|
+
}, never>>;
|
|
57
66
|
export { modelName, schema };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Connection } from 'mongoose';
|
|
2
|
+
import * as factory from '../factory';
|
|
3
|
+
interface IProjection {
|
|
4
|
+
[key: string]: 0 | 1;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* アイテムコンディションリポジトリ
|
|
8
|
+
*/
|
|
9
|
+
export declare class MongoRepository {
|
|
10
|
+
private readonly offerItemConditionModel;
|
|
11
|
+
constructor(connection: Connection);
|
|
12
|
+
static CREATE_MONGO_CONDITIONS(params: factory.offerItemCondition.ISearchConditions): any[];
|
|
13
|
+
findById(params: {
|
|
14
|
+
id: string;
|
|
15
|
+
}): Promise<factory.offerItemCondition.IOfferItemCondition>;
|
|
16
|
+
search(params: factory.offerItemCondition.ISearchConditions, projection?: IProjection): Promise<factory.offerItemCondition.IOfferItemCondition[]>;
|
|
17
|
+
save(params: factory.offerItemCondition.IOfferItemCondition): Promise<factory.offerItemCondition.IOfferItemCondition>;
|
|
18
|
+
deleteById(params: {
|
|
19
|
+
id: string;
|
|
20
|
+
}): Promise<void>;
|
|
21
|
+
}
|
|
22
|
+
export {};
|