@chevre/domain 21.2.0-alpha.49 → 21.2.0-alpha.50
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/lib/chevre/service/transaction/orderProgramMembership.js +2 -1
- package/lib/chevre/service/transaction/placeOrderInProgress/factory.js +1 -1
- package/lib/chevre/service/transaction/placeOrderInProgress.d.ts +1 -0
- package/lib/chevre/service/transaction/placeOrderInProgress.js +2 -2
- package/package.json +2 -2
- package/example/src/chevre/transaction/makeExpired.ts +0 -18
|
@@ -4,7 +4,7 @@ exports.createStartParams = void 0;
|
|
|
4
4
|
const factory = require("../../../factory");
|
|
5
5
|
function createStartParams(params, passport, seller, broker) {
|
|
6
6
|
var _a, _b, _c, _d;
|
|
7
|
-
const transactionObject = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ passportToken: (typeof ((_a = params.object.passport) === null || _a === void 0 ? void 0 : _a.token) === 'string') ? params.object.passport.token : undefined
|
|
7
|
+
const transactionObject = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ passportToken: (typeof ((_a = params.object.passport) === null || _a === void 0 ? void 0 : _a.token) === 'string') ? params.object.passport.token : undefined }, (passport !== undefined) ? { passport } : undefined), (params.object.clientUser !== undefined && params.object.clientUser !== null)
|
|
8
8
|
? { clientUser: params.object.clientUser }
|
|
9
9
|
: undefined), (typeof ((_b = params.object) === null || _b === void 0 ? void 0 : _b.name) === 'string') ? { name: (_c = params.object) === null || _c === void 0 ? void 0 : _c.name } : undefined), (typeof (broker === null || broker === void 0 ? void 0 : broker.typeOf) === 'string') ? { broker: broker } : undefined), (typeof ((_d = params.object.customer) === null || _d === void 0 ? void 0 : _d.typeOf) === 'string') ? { customer: params.object.customer } : undefined);
|
|
10
10
|
if (typeof seller.id !== 'string') {
|
|
@@ -128,8 +128,8 @@ function confirm(params) {
|
|
|
128
128
|
yield repos.transaction.confirm({
|
|
129
129
|
typeOf: transaction.typeOf,
|
|
130
130
|
id: transaction.id,
|
|
131
|
-
//
|
|
132
|
-
authorizeActions,
|
|
131
|
+
// 保管有無を設定化(2023-05-16~)
|
|
132
|
+
authorizeActions: (params.saveAuthorizeActions) ? authorizeActions : [],
|
|
133
133
|
result: result,
|
|
134
134
|
potentialActions: potentialActions
|
|
135
135
|
});
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
}
|
|
10
10
|
],
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@chevre/factory": "4.
|
|
12
|
+
"@chevre/factory": "4.313.0-alpha.0",
|
|
13
13
|
"@cinerino/sdk": "3.156.0",
|
|
14
14
|
"@motionpicture/coa-service": "9.2.0",
|
|
15
15
|
"@motionpicture/gmo-service": "5.2.0",
|
|
@@ -117,5 +117,5 @@
|
|
|
117
117
|
"postversion": "git push origin --tags",
|
|
118
118
|
"prepublishOnly": "npm run clean && npm run build && npm test && npm run doc"
|
|
119
119
|
},
|
|
120
|
-
"version": "21.2.0-alpha.
|
|
120
|
+
"version": "21.2.0-alpha.50"
|
|
121
121
|
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
// tslint:disable:no-console
|
|
2
|
-
import * as mongoose from 'mongoose';
|
|
3
|
-
|
|
4
|
-
import { chevre } from '../../../../lib/index';
|
|
5
|
-
|
|
6
|
-
async function main() {
|
|
7
|
-
await mongoose.connect(<string>process.env.MONGOLAB_URI, { autoIndex: false });
|
|
8
|
-
|
|
9
|
-
const transactionRepo = new chevre.repository.Transaction(mongoose.connection);
|
|
10
|
-
const result = await transactionRepo.makeExpired({
|
|
11
|
-
expires: new Date()
|
|
12
|
-
});
|
|
13
|
-
console.log(result);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
main()
|
|
17
|
-
.then(console.log)
|
|
18
|
-
.catch(console.error);
|